vendor.lattice_ecp5: correctly generate OE signaling when xdr=0

This fixes a logic bug introduced in
6ce2b21e19.
This commit is contained in:
Katherine Temkin 2021-01-25 08:41:45 -07:00 committed by whitequark
parent 6ce2b21e19
commit 09de190bd1

View 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)