From: Katherine Temkin Date: Mon, 25 Jan 2021 15:41:45 +0000 (-0700) Subject: vendor.lattice_ecp5: correctly generate OE signaling when xdr=0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5c4651e9d4bba2b7b7fb9621c531920d10e32ca;p=nmigen.git vendor.lattice_ecp5: correctly generate OE signaling when xdr=0 This fixes a logic bug introduced in 6ce2b21e196a0f93b82748ed046098331d20b3bf. --- 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)