From: Sebastien Bourdeauducq Date: Sat, 10 Dec 2011 19:47:06 +0000 (+0100) Subject: fhdl: fix += for empty fragment X-Git-Tag: 24jan2021_ls180~2099^2~1154 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b15a845057539b2abaa25a616af7b83191fc826;p=litex.git fhdl: fix += for empty fragment --- diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index d00de9ed..2580cf0a 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -194,7 +194,7 @@ class Instance: return id(self) class Fragment: - def __init__(self, comb=StatementList(), sync=StatementList(), instances=[], pads=set()): + def __init__(self, comb=[], sync=[], instances=[], pads=set()): self.comb = _sl(comb) self.sync = _sl(sync) self.instances = instances