ecp5: Fix tristate IO insertion
Fixes #191 Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
8f5d5003e9
commit
e76479f379
@ -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, donet, [](const Context *ctx, const CellInfo *cell) { return cell->type == ctx->id("$_TBUF_"); },
|
||||||
ctx->id("Y"));
|
ctx->id("Y"));
|
||||||
if (tbuf) {
|
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
|
// 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");
|
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"));
|
replace_port(tbuf, ctx->id("E"), inv_lut.get(), ctx->id("A"));
|
||||||
|
Loading…
Reference in New Issue
Block a user