From 0c6db0d12cf52952c3162cbf374288722fab36d4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 16 Jul 2020 11:36:04 +0800 Subject: [PATCH] analyzer: use 32-bit byte_count --- src/gateware/analyzer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gateware/analyzer.py b/src/gateware/analyzer.py index 3dd6662..6827ae9 100644 --- a/src/gateware/analyzer.py +++ b/src/gateware/analyzer.py @@ -19,7 +19,7 @@ class AXIDMAWriter(Module, AutoCSR): # All numbers in bytes self.base_address = CSRStorage(aw, alignment_bits=alignment_bits) self.last_address = CSRStorage(aw, alignment_bits=alignment_bits) - self.byte_count = CSRStatus(64) # only read when shut down + self.byte_count = CSRStatus(32) # only read when shut down self.make_request = Signal() self.sink = stream.Endpoint([("data", dw)]) @@ -71,7 +71,7 @@ class AXIDMAWriter(Module, AutoCSR): ) ] - message_count = Signal(64 - log2_int(message_len//8)) + message_count = Signal(32 - log2_int(message_len//8)) self.comb += self.byte_count.status.eq( message_count << log2_int(message_len//8)) self.sync += [