aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-12-22 10:11:18 +0000
committerDavid Shah <davey1576@gmail.com>2018-12-22 10:11:18 +0000
commite76479f379e4ba15b8f788cfb171c0de10feb076 (patch)
treefea6db7bb06fb1ed404b3caf40bc93fdffde7e44 /ecp5
parent8f5d5003e99db83c87403f2f26a187e01b0e9bb0 (diff)
downloadnextpnr-e76479f379e4ba15b8f788cfb171c0de10feb076.tar.gz
nextpnr-e76479f379e4ba15b8f788cfb171c0de10feb076.tar.bz2
nextpnr-e76479f379e4ba15b8f788cfb171c0de10feb076.zip
ecp5: Fix tristate IO insertion
Fixes #191 Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/cells.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecp5/cells.cc b/ecp5/cells.cc
index 58d4797c..a8e92083 100644
--- a/ecp5/cells.cc
+++ b/ecp5/cells.cc
@@ -416,7 +416,7 @@ void nxio_to_tr(Context *ctx, CellInfo *nxio, CellInfo *trio, std::vector<std::u
ctx, donet, [](const Context *ctx, const CellInfo *cell) { return cell->type == ctx->id("$_TBUF_"); },
ctx->id("Y"));
if (tbuf) {
- replace_port(tbuf, ctx->id("I"), trio, ctx->id("I"));
+ replace_port(tbuf, ctx->id("A"), trio, ctx->id("I"));
// Need to invert E to form T
std::unique_ptr<CellInfo> inv_lut = create_ecp5_cell(ctx, ctx->id("LUT4"), trio->name.str(ctx) + "$invert_T");
replace_port(tbuf, ctx->id("E"), inv_lut.get(), ctx->id("A"));