Commit 483b8213 authored by Sebastien Bourdeauducq's avatar Sebastien Bourdeauducq
Browse files

fhdl/structure: do not create Signal in Instance when parameter is int

parent 62187aa2
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment