aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/pack.cc
diff options
context:
space:
mode:
authorMaciej Kurc <mkurc@antmicro.com>2021-09-17 15:52:56 +0200
committerMaciej Kurc <mkurc@antmicro.com>2021-09-17 15:52:56 +0200
commit8ffd30cb2d4e1f9f231844280d5ad7a6b8c8b850 (patch)
tree45f3c5841d46b91c84ddd100d54a8019fc698818 /nexus/pack.cc
parentef9eee6b15a5b1a8429af10769c6629241db95db (diff)
downloadnextpnr-8ffd30cb2d4e1f9f231844280d5ad7a6b8c8b850.tar.gz
nextpnr-8ffd30cb2d4e1f9f231844280d5ad7a6b8c8b850.tar.bz2
nextpnr-8ffd30cb2d4e1f9f231844280d5ad7a6b8c8b850.zip
Use correct names for IDDRX1_ODDRX1 FASM features
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Diffstat (limited to 'nexus/pack.cc')
-rw-r--r--nexus/pack.cc20
1 files changed, 3 insertions, 17 deletions
diff --git a/nexus/pack.cc b/nexus/pack.cc
index 5ada7ed3..319eba7a 100644
--- a/nexus/pack.cc
+++ b/nexus/pack.cc
@@ -2276,24 +2276,10 @@ struct NexusPacker
iol->params[id_SRMODE] = ff->params.at(id_SRMODE);
iol->params[id_REGSET] = ff->params.at(id_REGSET);
- iol->params[ctx->id("TSREG.REGSET")] = std::string("SET");
-
- // CEOUTMUX.1
+ // Enable the TSREG
iol->params[ctx->id("CEOUTMUX")] = std::string("1");
-
- // FIXME: Workaround for an unknown bit
- IdStringList belName = IdStringList::parse(ctx, iob->attrs[id_BEL].as_string());
- if (belName[2] == ctx->id("PIOA")) {
- // UNKNOWN.22.1 for A
- iol->params[ctx->id("UNKNOWN")] = std::string("22.1");
- }
- else if (belName[2] == ctx->id("PIOB")) {
- // UNKNOWN.77.1 for B
- iol->params[ctx->id("UNKNOWN")] = std::string("77.1");
- }
- else {
- log_error("Unknown IO BEL type '%s'\n", belName[2].c_str(ctx));
- }
+ iol->params[ctx->id("TSREG.REGSET")] = std::string("SET");
+ iol->params[ctx->id("IDDRX1_ODDRX1.TRISTATE")] = std::string("ENABLED");
}
// Disconnect the flip-flop