From: Sebastien Bourdeauducq Date: Wed, 14 Mar 2012 15:19:29 +0000 (+0100) Subject: bus/asmibus/hub: require finalization before get_slots X-Git-Tag: 24jan2021_ls180~2099^2~967 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1665f293a619b6b989031fb5b293df9509f57600;p=litex.git bus/asmibus/hub: require finalization before get_slots --- diff --git a/migen/bus/asmibus.py b/migen/bus/asmibus.py index 77723b67..3d4ed415 100644 --- a/migen/bus/asmibus.py +++ b/migen/bus/asmibus.py @@ -146,6 +146,8 @@ class Hub: self.tag_call = Signal(BV(tagbits)) def get_slots(self): + if not self.finalized: + raise FinalizeError return sum([port.slots for port in self.ports], []) def get_fragment(self):