1
0
Fork 0

cxp GW: add packet_type & decode_error csr

This commit is contained in:
morgan 2024-09-20 12:44:20 +08:00
parent 9ffa83e797
commit dcc3fac2aa
1 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,14 @@ class DownConn_Interface(Module, AutoCSR):
for s, d in zip(rx_pipeline, rx_pipeline[1:]): for s, d in zip(rx_pipeline, rx_pipeline[1:]):
self.comb += s.source.connect(d.sink) 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 # DEBUG: CSR
self.trig_ack = CSRStatus() self.trig_ack = CSRStatus()
self.trig_clr = CSR() self.trig_clr = CSR()