From cf9447ab77c847dfc3a5c329c82f55ba55e8555f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 5 Jan 2019 23:40:45 +0800 Subject: [PATCH] rtio/cri: remove unneeded CSR management --- artiq/gateware/rtio/cri.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/rtio/cri.py b/artiq/gateware/rtio/cri.py index 72acc879b..0c135a5b4 100644 --- a/artiq/gateware/rtio/cri.py +++ b/artiq/gateware/rtio/cri.py @@ -121,7 +121,7 @@ class KernelInitiator(Module, AutoCSR): self.sync += If(self.counter_update.re, self.counter.status.eq(tsc.full_ts_cri)) -class CRIDecoder(Module, AutoCSR): +class CRIDecoder(Module): def __init__(self, slaves=2, master=None, mode="async", enable_routing=False): if isinstance(slaves, int): slaves = [Interface() for _ in range(slaves)] @@ -228,7 +228,7 @@ class CRIInterconnectShared(Module): self.submodules.decoder = CRIDecoder(slaves, shared, mode, enable_routing) def get_csrs(self): - return self.switch.get_csrs() + self.decoder.get_csrs() + return self.switch.get_csrs() class RoutingTableAccess(Module, AutoCSR):