aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/pack.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-10-03 17:05:27 +0100
committerDavid Shah <dave@ds0.me>2020-11-30 08:45:27 +0000
commit53d1c2c3097c48e2daa62cce98304f67fa840cec (patch)
tree47059ae8275d6a45e99b6d69490290ce1213a799 /nexus/pack.cc
parent682351df7fc22db2918d1b9ca9cd7ce0ba890360 (diff)
downloadnextpnr-53d1c2c3097c48e2daa62cce98304f67fa840cec.tar.gz
nextpnr-53d1c2c3097c48e2daa62cce98304f67fa840cec.tar.bz2
nextpnr-53d1c2c3097c48e2daa62cce98304f67fa840cec.zip
nexus: Fix validity checking
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'nexus/pack.cc')
-rw-r--r--nexus/pack.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/nexus/pack.cc b/nexus/pack.cc
index bd237117..eb740858 100644
--- a/nexus/pack.cc
+++ b/nexus/pack.cc
@@ -236,10 +236,10 @@ struct NexusPacker
ff_rules[type].port_xform[id_SP] = id_CE;
ff_rules[type].port_xform[id_Q] = id_Q;
- ff_rules[id_FD1P3BX].default_params.emplace_back(id_CLKMUX, std::string("CLK"));
- ff_rules[id_FD1P3BX].default_params.emplace_back(id_CEMUX, std::string("CE"));
- ff_rules[id_FD1P3BX].default_params.emplace_back(id_LSRMUX, std::string("LSR"));
- ff_rules[id_FD1P3BX].set_params.emplace_back(id_LSRMODE, std::string("LSR"));
+ ff_rules[type].default_params.emplace_back(id_CLKMUX, std::string("CLK"));
+ ff_rules[type].default_params.emplace_back(id_CEMUX, std::string("CE"));
+ ff_rules[type].default_params.emplace_back(id_LSRMUX, std::string("LSR"));
+ ff_rules[type].set_params.emplace_back(id_LSRMODE, std::string("LSR"));
}
// Async preload
ff_rules[id_FD1P3BX].set_params.emplace_back(id_SRMODE, std::string("ASYNC"));
@@ -275,6 +275,7 @@ bool Arch::pack()
(NexusPacker(getCtx()))();
attrs[id("step")] = std::string("pack");
archInfoToAttributes();
+ assignArchInfo();
return true;
}