Skip to content

Commit

Permalink
Merge pull request #2579 from verilog-to-routing/use_pb_name_in_place…
Browse files Browse the repository at this point in the history
…ment_file

Use top level pb name as cluster name when printing a .place file.
  • Loading branch information
KA7E authored Jun 5, 2024
2 parents e819ff7 + 2842494 commit a76e61b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vpr/src/base/read_place.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ void print_place(const char* net_file,

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

fprintf(fp, "%d\t%d\t%d\t%d",
Expand Down

0 comments on commit a76e61b

Please sign in to comment.