bus/asmibus/hub: require finalization before get_slots
This commit is contained in:
parent
5c0cc6292c
commit
1665f293a6
|
@ -146,6 +146,8 @@ class Hub:
|
||||||
self.tag_call = Signal(BV(tagbits))
|
self.tag_call = Signal(BV(tagbits))
|
||||||
|
|
||||||
def get_slots(self):
|
def get_slots(self):
|
||||||
|
if not self.finalized:
|
||||||
|
raise FinalizeError
|
||||||
return sum([port.slots for port in self.ports], [])
|
return sum([port.slots for port in self.ports], [])
|
||||||
|
|
||||||
def get_fragment(self):
|
def get_fragment(self):
|
||||||
|
|
Loading…
Reference in New Issue