@@ -66,6 +66,7 @@ static void update_noc_reachability_partitions(const std::vector<AtomBlockId>& n
66
66
const auto & atom_ctx = g_vpr_ctx.atom ();
67
67
auto & constraints = g_vpr_ctx.mutable_floorplanning ().constraints ;
68
68
const auto & high_fanout_thresholds = g_vpr_ctx.cl_helper ().high_fanout_thresholds ;
69
+ const auto & device_ctx = g_vpr_ctx.device ();
69
70
70
71
const size_t high_fanout_threshold = high_fanout_thresholds.get_threshold (" " );
71
72
@@ -76,10 +77,10 @@ static void update_noc_reachability_partitions(const std::vector<AtomBlockId>& n
76
77
77
78
int exclusivity_cnt = 0 ;
78
79
79
- RegionRectCoord unconstrained_rect{std::numeric_limits< int >:: min () ,
80
- std::numeric_limits< int >:: min () ,
81
- std::numeric_limits< int >:: max () ,
82
- std::numeric_limits< int >:: max () ,
80
+ RegionRectCoord unconstrained_rect{0 ,
81
+ 0 ,
82
+ ( int )device_ctx. grid . width () - 1 ,
83
+ ( int )device_ctx. grid . height () - 1 ,
83
84
-1 };
84
85
Region unconstrained_region;
85
86
unconstrained_region.set_region_rect (unconstrained_rect);
@@ -121,13 +122,14 @@ static void update_noc_reachability_partitions(const std::vector<AtomBlockId>& n
121
122
AtomBlockId current_atom = q.front ();
122
123
q.pop ();
123
124
124
- PartitionId atom_partition_id = constraints.get_atom_partition (noc_atom_id );
125
+ PartitionId atom_partition_id = constraints.get_atom_partition (current_atom );
125
126
if (atom_partition_id == PartitionId::INVALID ()) {
126
127
constraints.add_constrained_atom (current_atom, associated_noc_partition_id);
127
128
} else {
128
129
auto & atom_partition = constraints.get_mutable_partition (atom_partition_id);
129
130
auto & atom_partition_region = atom_partition.get_mutable_part_region ();
130
- VTR_ASSERT (atom_partition_region.get_exclusivity_index () < 0 );
131
+ // std::cout << "ss" << atom_partition_region.get_exclusivity_index() << std::endl;
132
+ VTR_ASSERT (atom_partition_region.get_exclusivity_index () < 0 || current_atom == noc_atom_id);
131
133
atom_partition_region.set_exclusivity_index (exclusivity_cnt);
132
134
}
133
135
0 commit comments