Commit ef436a1e authored by Sebastien Bourdeauducq's avatar Sebastien Bourdeauducq
Browse files

bus/asmibus: add get_slots, fix get_fragment

parent 945d655d
...@@ -134,7 +134,10 @@ class Hub: ...@@ -134,7 +134,10 @@ class Hub:
port.finalize(tagbits, base) port.finalize(tagbits, base)
base += len(port.slots) base += len(port.slots)
def get_slots(self):
return sum([port.slots for port in self.ports], [])
def get_fragment(self): def get_fragment(self):
if not self.finalized: if not self.finalized:
raise FinalizeError raise FinalizeError
return sum([port.get_fragment() for port in self.ports]) return sum([port.get_fragment() for port in self.ports], Fragment())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment