forked from M-Labs/artiq
1
0
Fork 0

analyzer: fix byte_count (again)

This commit is contained in:
Sebastien Bourdeauducq 2016-03-15 20:49:07 +08:00
parent 85ea70a664
commit 1bbef94061
1 changed files with 2 additions and 2 deletions

View File

@ -199,9 +199,9 @@ class DMAWriter(Module, AutoCSR):
) )
] ]
message_count = Signal(32 - log2_int(message_len)) message_count = Signal(32 - log2_int(message_len//8))
self.comb += self.byte_count.status.eq( self.comb += self.byte_count.status.eq(
message_count << log2_int(message_len)) message_count << log2_int(message_len//8))
self.sync += [ self.sync += [
If(self.reset.re, message_count.eq(0)), If(self.reset.re, message_count.eq(0)),
If(membus.ack, message_count.eq( If(membus.ack, message_count.eq(