Skip to content

Commit b7f2bb1

Browse files
committed
Better error messages when parsing packing results.
1 parent c2a723e commit b7f2bb1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vpr/SRC/base/read_netlist.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -625,24 +625,24 @@ static void processPorts(INOUTP ezxml_t Parent, INOUTP t_pb* pb, INOUTP t_pb_rou
625625
if (0 == strcmp(Parent->name, "inputs")) {
626626
if (num_tokens != pb->pb_graph_node->num_input_pins[in_port]) {
627627
vpr_throw(VPR_ERROR_NET_F, netlist_file_name, Cur->line,
628-
"Incorrect # pins %d found for port %s for pb %s[%d].\n",
629-
num_tokens, Prop, pb->pb_graph_node->pb_type->name,
628+
"Incorrect # pins %d found (expected %d) for input port %s for pb %s[%d].\n",
629+
num_tokens, pb->pb_graph_node->num_input_pins[in_port], Prop, pb->pb_graph_node->pb_type->name,
630630
pb->pb_graph_node->placement_index);
631631
}
632632
} else if (0 == strcmp(Parent->name, "outputs")) {
633633
if (num_tokens
634634
!= pb->pb_graph_node->num_output_pins[out_port]) {
635635
vpr_throw(VPR_ERROR_NET_F, netlist_file_name, Cur->line,
636-
"Incorrect # pins %d found for port %s for pb %s[%d].\n",
637-
num_tokens, Prop, pb->pb_graph_node->pb_type->name,
636+
"Incorrect # pins %d (expected %d) found for output port %s for pb %s[%d].\n",
637+
num_tokens, pb->pb_graph_node->num_output_pins[out_port], Prop, pb->pb_graph_node->pb_type->name,
638638
pb->pb_graph_node->placement_index);
639639
}
640640
} else {
641641
if (num_tokens
642642
!= pb->pb_graph_node->num_clock_pins[clock_port]) {
643643
vpr_throw(VPR_ERROR_NET_F, netlist_file_name, Cur->line,
644-
"Incorrect # pins %d found for port %s for pb %s[%d].\n",
645-
num_tokens, Prop, pb->pb_graph_node->pb_type->name,
644+
"Incorrect # pins %d found for clock port %s for pb %s[%d].\n",
645+
num_tokens, pb->pb_graph_node->num_clock_pins[clock_port], Prop, pb->pb_graph_node->pb_type->name,
646646
pb->pb_graph_node->placement_index);
647647
}
648648
}

0 commit comments

Comments
 (0)