Skip to content

Commit 9d4ed2e

Browse files
committed
Moved the declaration for the NO_SUBTILE constant to region.h, and included that file in any file which uses NO_SUBTILE
1 parent b07b9de commit 9d4ed2e

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

vpr/src/base/gen/vpr_constraints_uxsdcxx.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
#include "pugixml.hpp"
2626

2727
#include "vpr_constraints_uxsdcxx_interface.h"
28-
29-
//sentinel value for indicating that a subtile has not been specified
30-
constexpr int NO_SUBTILE = -1;
28+
#include "region.h"
3129

3230
/* All uxsdcxx functions and structs live in this namespace. */
3331
namespace uxsd {

vpr/src/base/region.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#include "region.h"
22

3-
/// @brief sentinel value for indicating that a subtile has not been specified
4-
constexpr int NO_SUBTILE = -1;
5-
63
Region::Region() {
74
sub_tile = NO_SUBTILE;
85

vpr/src/base/region.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
*
1414
*/
1515

16+
/// @brief sentinel value for indicating that a subtile has not been specified
17+
constexpr int NO_SUBTILE = -1;
18+
1619
class Region {
1720
public:
1821
/**

vpr/src/place/place_constraints.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
#include "globals.h"
1212
#include "place_constraints.h"
1313

14-
/// @brief sentinel value for indicating that a subtile has not been specified
15-
constexpr int NO_SUBTILE = -1;
16-
1714
/*checks that each block's location is compatible with its floorplanning constraints if it has any*/
1815
int check_placement_floorplanning() {
1916
int error = 0;

vpr/src/place/place_constraints.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Author: khalid88
77
*/
88
#include "move_transactions.h"
9+
#include "region.h"
910

1011
#ifndef VPR_SRC_PLACE_PLACE_CONSTRAINTS_H_
1112
# define VPR_SRC_PLACE_PLACE_CONSTRAINTS_H_

0 commit comments

Comments
 (0)