mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/structure: do not create Signal in Instance when parameter is int
This commit is contained in:
parent
62187aa23d
commit
483b821342
1 changed files with 4 additions and 5 deletions
|
@ -242,12 +242,11 @@ class Instance(HUID):
|
||||||
self.items = items
|
self.items = items
|
||||||
|
|
||||||
class _IO:
|
class _IO:
|
||||||
def __init__(self, name, expr=1):
|
def __init__(self, name, expr=None):
|
||||||
self.name = name
|
self.name = name
|
||||||
if isinstance(expr, (int, tuple)):
|
if expr is None:
|
||||||
self.expr = Signal(expr, name)
|
expr = Signal()
|
||||||
else:
|
self.expr = expr
|
||||||
self.expr = expr
|
|
||||||
class Input(_IO):
|
class Input(_IO):
|
||||||
pass
|
pass
|
||||||
class Output(_IO):
|
class Output(_IO):
|
||||||
|
|
Loading…
Reference in a new issue