Skip to content

Commit c83c160

Browse files
committed
Use top level pb name as cluster name when printing a .place file.
1 parent 1f4ded5 commit c83c160

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)