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>
This commit is contained in:
Fin Maaß 2024-09-18 15:05:46 +02:00
parent c1733ea2ff
commit d63d8d99df

View file

@ -201,7 +201,7 @@ class DDRTristate(Special):
self.o1 = o1
self.o2 = o2
self.oe1 = oe1
self.oe2 = oe2
self.oe2 = oe2 if not (oe2 == oe1) else None
self.i1 = i1 if i1 is not None else Signal()
self.i2 = i2 if i2 is not None else Signal()
self.clk = clk if clk is not None else ClockSignal()