Skip to content

Commit 6f291c7

Browse files
committed
error message updated for flat_routing
1 parent 6b1a381 commit 6f291c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vpr/src/base/read_route.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static void process_nets(const Netlist<>& net_list, std::ifstream& fp, ClusterNe
192192

193193
if (0 != net_list.net_name(inet).compare(name)) {
194194
vpr_throw(VPR_ERROR_ROUTE, filename, lineno,
195-
"Net name %s for net number %lu specified in the routing file does not match given %s. if route_file generated by flat router, you need to specifiy flat_routing true in command-line option",
195+
"Net name %s for net number %lu specified in the routing file does not match given %s. Running without flat routing; if this file was created with flat routing, re-run vpr with the --flat_routing option",
196196
name.c_str(), size_t(inet), net_list.net_name(inet).c_str());
197197
}
198198

@@ -207,7 +207,7 @@ static void process_nets(const Netlist<>& net_list, std::ifstream& fp, ClusterNe
207207

208208
if (0 != net_list.net_name(inet).compare(name)) {
209209
vpr_throw(VPR_ERROR_ROUTE, filename, lineno,
210-
"Net name %s for net number %lu specified in the routing file does not match given %s. if route_file generated by flat router, you need to specifiy flat_routing true in command-line option",
210+
"Net name %s for net number %lu specified in the routing file does not match given %s. Running without flat routing; if this file was created with flat routing, re-run vpr with the --flat_routing option",
211211
name.c_str(), size_t(inet), net_list.net_name(inet).c_str());
212212
}
213213

@@ -323,7 +323,7 @@ static void process_nodes(const Netlist<>& net_list, std::ifstream& fp, ClusterN
323323
ptc = atoi(tokens[5 + offset].c_str());
324324
if (rr_graph.node_ptc_num(RRNodeId(inode)) != ptc) {
325325
vpr_throw(VPR_ERROR_ROUTE, filename, lineno,
326-
"The ptc num of node %d does not match the rr graph, if route_file generated by flat router, you need to specifiy flat_routing true in command-line option", inode);
326+
"The ptc num of node %d does not match the rr graph, Running without flat routing; if this file was created with flat routing, re-run vpr with the --flat_routing option", inode);
327327
}
328328

329329
/*Process switches and pb pin info if it is ipin or opin type*/

0 commit comments

Comments
 (0)