aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/bitstream.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-10-05 16:47:03 +0100
committerDavid Shah <dave@ds0.me>2018-10-05 16:47:03 +0100
commitcd688a278435c8ea86aee365c02b3ba1af7d3a26 (patch)
treeea5b6c26d2fe26895d55f0fe85e918e5c284379c /ecp5/bitstream.cc
parent85a95ec2508db54c503605d03f242ddfd92d7145 (diff)
downloadnextpnr-cd688a278435c8ea86aee365c02b3ba1af7d3a26.tar.gz
nextpnr-cd688a278435c8ea86aee365c02b3ba1af7d3a26.tar.bz2
nextpnr-cd688a278435c8ea86aee365c02b3ba1af7d3a26.zip
ecp5: Fixing EBR constant tie-offs
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/bitstream.cc')
-rw-r--r--ecp5/bitstream.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index b151d987..fb2a51cc 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -88,6 +88,7 @@ static void tie_cib_signal(Context *ctx, ChipConfig &cc, WireId wire, bool value
NPNR_ASSERT(uphill.begin() != uphill.end()); // At least one uphill pip
auto iter = uphill.begin();
cibsig = ctx->getPipSrcWire(*iter);
+ basename = ctx->getWireBasename(cibsig).str(ctx);
++iter;
NPNR_ASSERT(!(iter != uphill.end())); // Exactly one uphill pip
}
@@ -454,7 +455,7 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex
// Tie signals as appropriate
for (auto port : ci->ports) {
- if (port.second.net == nullptr) {
+ if (port.second.net == nullptr && port.second.type == PORT_IN) {
if (port.first == id_CLKA || port.first == id_CLKB || port.first == id_WEA ||
port.first == id_WEB || port.first == id_CEA || port.first == id_CEB || port.first == id_OCEA ||
port.first == id_OCEB || port.first == id_RSTA || port.first == id_RSTB)