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
|
||||
|
||||
class _IO:
|
||||
def __init__(self, name, expr=1):
|
||||
def __init__(self, name, expr=None):
|
||||
self.name = name
|
||||
if isinstance(expr, (int, tuple)):
|
||||
self.expr = Signal(expr, name)
|
||||
else:
|
||||
self.expr = expr
|
||||
if expr is None:
|
||||
expr = Signal()
|
||||
self.expr = expr
|
||||
class Input(_IO):
|
||||
pass
|
||||
class Output(_IO):
|
||||
|
|
Loading…
Reference in a new issue