Skip to content

Commit a76e61b

Browse files
authored
Merge pull request #2579 from verilog-to-routing/use_pb_name_in_placement_file
Use top level pb name as cluster name when printing a .place file.
2 parents e819ff7 + 2842494 commit a76e61b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/base/read_place.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ void print_place(const char* net_file,
327327

328328
if (!place_ctx.block_locs.empty()) { //Only if placement exists
329329
for (auto blk_id : cluster_ctx.clb_nlist.blocks()) {
330-
fprintf(fp, "%s\t", cluster_ctx.clb_nlist.block_name(blk_id).c_str());
331-
if (strlen(cluster_ctx.clb_nlist.block_name(blk_id).c_str()) < 8)
330+
fprintf(fp, "%s\t", cluster_ctx.clb_nlist.block_pb(blk_id)->name);
331+
if (strlen(cluster_ctx.clb_nlist.block_pb(blk_id)->name) < 8)
332332
fprintf(fp, "\t");
333333

334334
fprintf(fp, "%d\t%d\t%d\t%d",

0 commit comments

Comments
 (0)