From 09de190bd171a34f894473ce42f90c145a1e96ce Mon Sep 17 00:00:00 2001 From: Katherine Temkin Date: Mon, 25 Jan 2021 08:41:45 -0700 Subject: [PATCH] vendor.lattice_ecp5: correctly generate OE signaling when xdr=0 This fixes a logic bug introduced in 6ce2b21e196a0f93b82748ed046098331d20b3bf. --- nmigen/vendor/lattice_ecp5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/vendor/lattice_ecp5.py b/nmigen/vendor/lattice_ecp5.py index 31efb00..3451125 100644 --- a/nmigen/vendor/lattice_ecp5.py +++ b/nmigen/vendor/lattice_ecp5.py @@ -526,7 +526,7 @@ class LatticeECP5Platform(TemplatedPlatform): if "o" in pin.dir: o = pin_o if pin.dir in ("oe", "io"): - t = ~pin.oe + t = Repl(~pin.oe, pin.width) elif pin.xdr == 1: if "i" in pin.dir: get_ireg(pin.i_clk, i, pin_i) -- 2.30.2