vendor.lattice_ecp5: correctly generate OE signaling when xdr=0
authorKatherine Temkin <k@ktemkin.com>
Mon, 25 Jan 2021 15:41:45 +0000 (08:41 -0700)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:26:22 +0000 (15:26 +0000)
This fixes a logic bug introduced in
6ce2b21e196a0f93b82748ed046098331d20b3bf.

nmigen/vendor/lattice_ecp5.py

index 31efb0044ad80bbad12540d336bacebebca5dbe6..345112531137337521732f2fee111c784849971b 100644 (file)
@@ -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)