forked from M-Labs/artiq-zynq
cxp GW: add packet_type & decode_error csr
This commit is contained in:
parent
9ffa83e797
commit
dcc3fac2aa
|
@ -51,6 +51,14 @@ class DownConn_Interface(Module, AutoCSR):
|
|||
for s, d in zip(rx_pipeline, rx_pipeline[1:]):
|
||||
self.comb += s.source.connect(d.sink)
|
||||
|
||||
|
||||
self.packet_type = CSRStatus(8)
|
||||
self.decode_error = CSRStatus()
|
||||
self.comb += [
|
||||
self.packet_type.status.eq(recv_path.packet_decoder.packet_type),
|
||||
self.decode_error.status.eq(recv_path.packet_decoder.decode_err),
|
||||
]
|
||||
|
||||
# DEBUG: CSR
|
||||
self.trig_ack = CSRStatus()
|
||||
self.trig_clr = CSR()
|
||||
|
|
Loading…
Reference in New Issue