From d5c4651e9d4bba2b7b7fb9621c531920d10e32ca 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