actorlib/structuring/Pack: drive busy signal
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 20 Jun 2012 20:39:03 +0000 (22:39 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 20 Jun 2012 20:39:03 +0000 (22:39 +0200)
migen/actorlib/structuring.py

index 1f8687e65ba747a780a356a6dd8a7482758253cf..15ced2d389b81008dc11793bb3fc00927ef270cb 100644 (file)
@@ -67,6 +67,7 @@ class Pack(Actor):
                        Cat(*self.token("source").subrecord("chunk{0}".format(i)).flatten()).eq(*self.token("sink").flatten()))
                        for i in range(self.n)]
                comb = [
+                       self.busy.eq(strobe_all),
                        self.endpoints["sink"].ack.eq(~strobe_all | self.endpoints["source"].ack),
                        self.endpoints["source"].stb.eq(strobe_all),
                        load_part.eq(self.endpoints["sink"].stb & self.endpoints["sink"].ack)