From 62988a580e85af8499c7791d1586211b5f06b3c1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 4 Aug 2020 17:28:15 +0800 Subject: [PATCH] acpki: update for combined RTIO channel/address --- src/gateware/acpki.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/gateware/acpki.py b/src/gateware/acpki.py index 2161c3c0..33a7d673 100644 --- a/src/gateware/acpki.py +++ b/src/gateware/acpki.py @@ -190,16 +190,10 @@ class KernelInitiator(Module, AutoCSR): ] dout_cases = {} - dout_lw = Signal(32) - dout_hw = Signal(32) - self.comb += [ - dout_lw.eq(self.engine.dout[:32]), - dout_hw.eq(self.engine.dout[32:]) - ] dout_cases[0] = [ - cmd.eq(dout_lw[24:]), - cri.chan_sel.eq(dout_lw[:24]), - cri.o_address.eq(dout_hw[:16]) + cmd.eq(self.engine.dout[:8]), + cri.chan_sel.eq(self.engine.dout[40:]), + cri.o_address.eq(self.engine.dout[32:40]) ] dout_cases[1] = [ cri.o_timestamp.eq(self.engine.dout)