actorlib/structuring/Pack: drive busy signal

This commit is contained in:
Sebastien Bourdeauducq 2012-06-20 22:39:03 +02:00
parent 34d8ae3c11
commit 6aff41a883

View 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)