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:
parent
70f4a349e5
commit
2d96e99494
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue