From 537f4968eb35b9cbca405f0cfc86fc61b28522a0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 4 Aug 2020 17:31:35 +0800 Subject: [PATCH] acpki: add legacy i_status/o_status registers --- src/gateware/acpki.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gateware/acpki.py b/src/gateware/acpki.py index 33a7d67..4f66523 100644 --- a/src/gateware/acpki.py +++ b/src/gateware/acpki.py @@ -166,6 +166,8 @@ class KernelInitiator(Module, AutoCSR): self.counter = CSRStatus(64) self.counter_update = CSR() + self.o_status = CSRStatus(3) + self.i_status = CSRStatus(4) self.submodules.engine = Engine(bus, user) self.cri = rtio.cri.Interface() @@ -250,5 +252,9 @@ class KernelInitiator(Module, AutoCSR): If(cmd_write, Case(self.engine.din_index, din_cases_cmdwrite)), ] - # RTIO counter access + # CRI CSRs self.sync += If(self.counter_update.re, self.counter.status.eq(tsc.full_ts_cri)) + self.comb += [ + self.o_status.status.eq(self.cri.o_status), + self.i_status.status.eq(self.cri.i_status), + ]