diff --git a/src/gateware/cxp.py b/src/gateware/cxp.py index 7232bde..2fb8824 100644 --- a/src/gateware/cxp.py +++ b/src/gateware/cxp.py @@ -27,19 +27,24 @@ class UpConn_Packets(Module, AutoCSR): self.tag_counts = Signal(max=0xFF) self.use_tag = Signal() + self.clk_reset = CSRStorage(reset=1) self.bitrate2x_enable = CSRStorage() self.tx_enable = CSRStorage() + self.tx_busy = CSRStatus() self.encoded_data = CSRStatus(10) # # # self.submodules.upconn = upconn = CXP_UpConn(upconn_pads, sys_clk_freq, debug_sma, pmod_pads, cxp_phy_layout(), fifos_depth) - self.comb += [ + self.sync += [ upconn.bitrate2x_enable.eq(self.bitrate2x_enable.storage), upconn.tx_enable.eq(self.tx_enable.storage), + upconn.clk_reset.eq(self.clk_reset.re), + self.tx_busy.status.eq(upconn.tx_busy), ] self.sync += [ + self.encoded_data.status.eq(upconn.scheduler.encoder.output), ]