build: io: SDRTristate: move check

check wraped signals instead of before.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2024-10-23 11:18:57 +02:00
parent 70f4a349e5
commit 2d96e99494
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -120,13 +120,13 @@ class InferedSDRTristate(Module):
class SDRTristate(Special): class SDRTristate(Special):
def __init__(self, io, o, oe, i, clk=None): def __init__(self, io, o, oe, i, clk=None):
assert len(i) == len(o) == len(oe)
Special.__init__(self) Special.__init__(self)
self.io = wrap(io) self.io = wrap(io)
self.o = wrap(o) self.o = wrap(o)
self.oe = wrap(oe) self.oe = wrap(oe)
self.i = wrap(i) self.i = wrap(i)
self.clk = wrap(clk) if clk is not None else ClockSignal() self.clk = wrap(clk) if clk is not None else ClockSignal()
assert len(self.i) == len(self.o) == len(self.oe)
def iter_expressions(self): def iter_expressions(self):
yield self, "io" , SPECIAL_INOUT yield self, "io" , SPECIAL_INOUT