From 1bbef9406122babcf89ece375a4e00b36400cdb8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 15 Mar 2016 20:49:07 +0800 Subject: [PATCH] analyzer: fix byte_count (again) --- artiq/gateware/rtio/analyzer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/rtio/analyzer.py b/artiq/gateware/rtio/analyzer.py index aea1f5110..37b15bdfd 100644 --- a/artiq/gateware/rtio/analyzer.py +++ b/artiq/gateware/rtio/analyzer.py @@ -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(