flow/network: fix ActorNode default params
This commit is contained in:
parent
1a576e5c83
commit
b0b0380ea7
|
@ -12,7 +12,7 @@ from migen.corelogic.misc import optree
|
||||||
# This form is needed to enable actor duplication or sharing during elaboration.
|
# This form is needed to enable actor duplication or sharing during elaboration.
|
||||||
|
|
||||||
class ActorNode:
|
class ActorNode:
|
||||||
def __init__(self, actor_class, parameters=None):
|
def __init__(self, actor_class, parameters=dict()):
|
||||||
if isinstance(actor_class, type):
|
if isinstance(actor_class, type):
|
||||||
self.actor_class = actor_class
|
self.actor_class = actor_class
|
||||||
self.parameters = parameters
|
self.parameters = parameters
|
||||||
|
|
Loading…
Reference in New Issue