2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

analyzer: fix byte_count (again)

This commit is contained in:
Sebastien Bourdeauducq 2016-03-15 20:49:07 +08:00
parent 85ea70a664
commit 1bbef94061

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(
message_count << log2_int(message_len))
message_count << log2_int(message_len//8))
self.sync += [
If(self.reset.re, message_count.eq(0)),
If(membus.ack, message_count.eq(