From 3214e37140a097173de9a1fe6bf71280f6478b93 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 15 Feb 2022 20:07:35 +0000 Subject: [PATCH] for *write* the counter-address on downconvert was correct but for *read* it has to be pre-advanced (if that makes any sense) --- src/soc/bus/wb_downconvert.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/soc/bus/wb_downconvert.py b/src/soc/bus/wb_downconvert.py index 2b03d56b..fbf8239f 100644 --- a/src/soc/bus/wb_downconvert.py +++ b/src/soc/bus/wb_downconvert.py @@ -73,8 +73,7 @@ class WishboneDownConvert(Elaboratable): comb += slave.cyc.eq(1) comb += slave.stb.eq(1) with m.If(slave.ack | skip): - comb += cur_counter.eq(counter + 1) # TODO use Picker - sync += counter.eq(cur_counter) + sync += counter.eq(counter + 1) with m.If(counter_done): comb += master.ack.eq(1) m.next = "IDLE" -- 2.30.2