File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1107,12 +1107,12 @@ class t_rr_graph_view {
1107
1107
}
1108
1108
1109
1109
// / @brief Retrieve the lowest layer (die) number where the given RRNodeId is located.
1110
- short node_layer_low (RRNodeId id) const {
1110
+ char node_layer_low (RRNodeId id) const {
1111
1111
return node_layer_low_[id];
1112
1112
}
1113
1113
1114
1114
// / @brief Retrieve the highest layer (die) number where the given RRNodeId is located.
1115
- short node_layer_high (RRNodeId id) const {
1115
+ char node_layer_high (RRNodeId id) const {
1116
1116
return node_layer_high_[id];
1117
1117
}
1118
1118
Original file line number Diff line number Diff line change @@ -229,12 +229,12 @@ class RRGraphView {
229
229
}
230
230
231
231
// / @brief Returns the highest layer where a node is located at.
232
- inline short node_layer_high (RRNodeId node) const {
232
+ inline char node_layer_high (RRNodeId node) const {
233
233
return node_storage_.node_layer_high (node);
234
234
}
235
235
236
236
// / @brief Returns the lowest layer where a node is located at.
237
- inline short node_layer_low (RRNodeId node) const {
237
+ inline char node_layer_low (RRNodeId node) const {
238
238
return node_storage_.node_layer_low (node);
239
239
}
240
240
Original file line number Diff line number Diff line change @@ -744,15 +744,18 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
744
744
auto node = (*rr_nodes_)[inode];
745
745
RRNodeId node_id = node.id ();
746
746
747
- VTR_ASSERT (layer_num >= 0 );
747
+ // Currently, we only support two layers
748
+ VTR_ASSERT (layer_num >= 0 && layer_num <= 1 );
748
749
rr_graph_builder_->set_node_layer_low (node_id, layer_num);
749
750
}
750
751
751
752
inline void set_node_loc_layer_high (int layer_num, int & inode) final {
752
753
auto node = (*rr_nodes_)[inode];
753
754
RRNodeId node_id = node.id ();
754
755
755
- VTR_ASSERT (layer_num >= 0 );
756
+ // Currently, we only support two layers
757
+ VTR_ASSERT (layer_num >= 0 && layer_num <= 1 );
758
+ VTR_ASSERT (layer_num >= 0 && layer_num <= 1 );
756
759
rr_graph_builder_->set_node_layer_high (node_id, layer_num);
757
760
}
758
761
You can’t perform that action at this time.
0 commit comments