bus/asmibus/hub: require finalization before get_slots

This commit is contained in:
Sebastien Bourdeauducq 2012-03-14 16:19:29 +01:00
parent 5c0cc6292c
commit 1665f293a6
1 changed files with 2 additions and 0 deletions

View File

@ -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):