Skip to content

Commit 44e34e3

Browse files
committed
build: io.py: DDRTristate: check oe2
check oe2 if it is equal to oe1, if it is set it to None. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent a1ea5a2 commit 44e34e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

litex/build/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def __init__(self, io, o1, o2, oe1, oe2=None, i1=None, i2=None, clk=None):
201201
self.o1 = o1
202202
self.o2 = o2
203203
self.oe1 = oe1
204-
self.oe2 = oe2
204+
self.oe2 = oe2 if not (oe2 == oe1) else None
205205
self.i1 = i1 if i1 is not None else Signal()
206206
self.i2 = i2 if i2 is not None else Signal()
207207
self.clk = clk if clk is not None else ClockSignal()

0 commit comments

Comments
 (0)