Skip to content

Commit

Permalink
bus/asmibus: add get_slots, fix get_fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Feb 10, 2012
1 parent 945d655 commit ef436a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion migen/bus/asmibus.py
Expand Up @@ -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.