Skip to content

Commit 876311a

Browse files
committed
[core] fix the bug where skip sync-routing results are not applicable to flat routing
1 parent a3b55ea commit 876311a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

vpr/src/base/vpr_api.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,19 +1482,19 @@ bool vpr_analysis_flow(const Netlist<>& net_list,
14821482
* for packer (default verbosity is set to 2 for compact logs)
14831483
*/
14841484
if (route_status.success()) {
1485-
if (is_flat) {
1486-
sync_netlists_to_routing_flat();
1487-
} else {
1488-
if (!analysis_opts.skip_sync_clustering_and_routing_results) {
1489-
sync_netlists_to_routing(net_list,
1490-
g_vpr_ctx.device(),
1491-
g_vpr_ctx.mutable_atom(),
1492-
g_vpr_ctx.mutable_clustering(),
1493-
g_vpr_ctx.placement(),
1494-
vpr_setup.PackerOpts.pack_verbosity > 2);
1485+
if (!analysis_opts.skip_sync_clustering_and_routing_results) {
1486+
if (is_flat) {
1487+
sync_netlists_to_routing_flat();
14951488
} else {
1496-
VTR_LOG_WARN("Sychronization between packing and routing results is not applied due to users select to skip it\n");
1489+
sync_netlists_to_routing(net_list,
1490+
g_vpr_ctx.device(),
1491+
g_vpr_ctx.mutable_atom(),
1492+
g_vpr_ctx.mutable_clustering(),
1493+
g_vpr_ctx.placement(),
1494+
vpr_setup.PackerOpts.pack_verbosity > 2);
14971495
}
1496+
} else {
1497+
VTR_LOG_WARN("Sychronization between packing and routing results is not applied due to users select to skip it\n");
14981498
}
14991499

15001500
std::string post_routing_packing_output_file_name = vpr_setup.PackerOpts.output_file + ".post_routing";

0 commit comments

Comments
 (0)