Skip to content

Commit d290f47

Browse files
mkurc-antvaughnbetz
authored andcommitted
Added missing post routing cluster pin fixup to genfasm.
Signed-off-by: Maciej Kurc <[email protected]>
1 parent 4218cad commit d290f47

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

utils/fasm/src/main.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ using namespace std;
2222

2323
#include "fasm.h"
2424

25+
#include "post_routing_pb_pin_fixup.h"
26+
2527
/*
2628
* Exit codes to signal success/failure to scripts
2729
* calling vpr
@@ -79,6 +81,17 @@ int main(int argc, const char **argv) {
7981
bool flow_succeeded = false;
8082
flow_succeeded = vpr_flow(vpr_setup, Arch);
8183

84+
/* Sync netlist to the actual routing (necessary if there are block
85+
ports with equivalent pins) */
86+
if (flow_succeeded) {
87+
sync_netlists_to_routing(g_vpr_ctx.device(),
88+
g_vpr_ctx.mutable_atom(),
89+
g_vpr_ctx.mutable_clustering(),
90+
g_vpr_ctx.placement(),
91+
g_vpr_ctx.routing(),
92+
vpr_setup.PackerOpts.pack_verbosity > 2);
93+
}
94+
8295
/* Actually write output FASM file. */
8396
flow_succeeded = write_fasm();
8497
if (!flow_succeeded) {

0 commit comments

Comments
 (0)