Skip to content

Commit 620fd73

Browse files
committed
[vpr][router] print layer num of to block
1 parent 006675f commit 620fd73

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

vpr/src/base/read_route.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,9 @@ static void process_global_blocks(const Netlist<>& net_list, std::ifstream& fp,
459459

460460
if (block_loc.loc.x != x || block_loc.loc.y != y) {
461461
vpr_throw(VPR_ERROR_ROUTE, filename, lineno,
462-
"The placement coordinates (%d, %d) of %d block does not match given (%d, %d)",
463-
x, y, block_loc.loc.x, block_loc.loc.y);
462+
"The placement coordinates (%d,%d,%d) of %d block does not match given (%d,%d,%d)",
463+
layer_num, x, y,
464+
block_loc.loc.layer, block_loc.loc.x, block_loc.loc.y);
464465
}
465466

466467
auto pin_class = get_class_range_for_block(bnum, is_flat);
@@ -601,7 +602,7 @@ void print_route(const Netlist<>& net_list,
601602

602603
if ((ilow != rr_graph.node_xhigh(inode))
603604
|| (jlow != rr_graph.node_yhigh(inode)))
604-
fprintf(fp, "to (%d,%d) ", rr_graph.node_xhigh(inode),
605+
fprintf(fp, "to (%d,%d,%d) ", layer_num, rr_graph.node_xhigh(inode),
605606
rr_graph.node_yhigh(inode));
606607

607608
switch (rr_type) {
@@ -685,9 +686,10 @@ void print_route(const Netlist<>& net_list,
685686
int iclass = get_block_pin_class_num(block_id, pin_id, is_flat);
686687
t_block_loc blk_loc;
687688
blk_loc = get_block_loc(block_id, is_flat);
688-
fprintf(fp, "Block %s (#%zu) at (%d,%d), Pin class %d.\n",
689+
fprintf(fp, "Block %s (#%zu) at (%d,%d,%d), Pin class %d.\n",
689690
net_list.block_name(block_id).c_str(),
690691
size_t(block_id),
692+
blk_loc.loc.layer,
691693
blk_loc.loc.x,
692694
blk_loc.loc.y,
693695
iclass);

0 commit comments

Comments
 (0)