@@ -45,7 +45,6 @@ void FasmWriterVisitor::visit_clb_impl(ClusterBlockId blk_id, const t_pb* clb) {
45
45
46
46
root_clb_ = clb->pb_graph_node ;
47
47
48
- auto *pb_type = clb->pb_graph_node ->pb_type ;
49
48
int x = place_ctx.block_locs [blk_id].x ;
50
49
int y = place_ctx.block_locs [blk_id].y ;
51
50
auto &grid_loc = device_ctx.grid [x][y];
@@ -59,13 +58,6 @@ void FasmWriterVisitor::visit_clb_impl(ClusterBlockId blk_id, const t_pb* clb) {
59
58
current_blk_has_prefix_= false ;
60
59
}
61
60
62
- std::string pb_type_prefix;
63
- if (pb_type->meta != nullptr && pb_type->meta ->has (" fasm_prefix" )) {
64
- pb_type_prefix = pb_type->meta ->get (" fasm_prefix" )->front ().as_string ();
65
- } else {
66
- current_blk_has_prefix_ = false ;
67
- }
68
-
69
61
if (current_blk_has_prefix_) {
70
62
blk_prefix_ = grid_prefix + " ." ;
71
63
}
@@ -103,13 +95,9 @@ void FasmWriterVisitor::check_interconnect(const t_pb_route *pb_route, int inode
103
95
}
104
96
105
97
std::string FasmWriterVisitor::build_clb_prefix (const t_pb_graph_node* pb_graph_node) const {
106
- if (pb_graph_node == root_clb_) {
107
- return " " ;
108
- }
109
-
110
98
std::string clb_prefix = " " ;
111
99
112
- if (pb_graph_node->parent_pb_graph_node != root_clb_) {
100
+ if (root_clb_ != pb_graph_node && pb_graph_node->parent_pb_graph_node != root_clb_) {
113
101
VTR_ASSERT (pb_graph_node->parent_pb_graph_node != nullptr );
114
102
clb_prefix = build_clb_prefix (pb_graph_node->parent_pb_graph_node );
115
103
}
0 commit comments