Permalink
Browse files

bus/asmibus: add get_slots, fix get_fragment

  • Loading branch information...
sbourdeauducq committed Feb 10, 2012
1 parent 945d655 commit ef436a1ec9dbc37b5cfa0ec64627238f9a5f59fd
Showing with 4 additions and 1 deletion.
  1. +4 −1 migen/bus/asmibus.py
View
@@ -134,7 +134,10 @@ def finalize(self):
port.finalize(tagbits, base)
base += len(port.slots)
+ def get_slots(self):
+ return sum([port.slots for port in self.ports], [])
+
def get_fragment(self):
if not self.finalized:
raise FinalizeError
- return sum([port.get_fragment() for port in self.ports])
+ return sum([port.get_fragment() for port in self.ports], Fragment())

0 comments on commit ef436a1

Please sign in to comment.