forked from M-Labs/artiq-zynq
acpki: update for combined RTIO channel/address
This commit is contained in:
parent
a9c40f7478
commit
62988a580e
@ -190,16 +190,10 @@ class KernelInitiator(Module, AutoCSR):
|
|||||||
]
|
]
|
||||||
|
|
||||||
dout_cases = {}
|
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] = [
|
dout_cases[0] = [
|
||||||
cmd.eq(dout_lw[24:]),
|
cmd.eq(self.engine.dout[:8]),
|
||||||
cri.chan_sel.eq(dout_lw[:24]),
|
cri.chan_sel.eq(self.engine.dout[40:]),
|
||||||
cri.o_address.eq(dout_hw[:16])
|
cri.o_address.eq(self.engine.dout[32:40])
|
||||||
]
|
]
|
||||||
dout_cases[1] = [
|
dout_cases[1] = [
|
||||||
cri.o_timestamp.eq(self.engine.dout)
|
cri.o_timestamp.eq(self.engine.dout)
|
||||||
|
Loading…
Reference in New Issue
Block a user