diff --git a/src/gateware/cxp.py b/src/gateware/cxp.py index becaf32..00cf3b2 100644 --- a/src/gateware/cxp.py +++ b/src/gateware/cxp.py @@ -342,7 +342,9 @@ class CXP_Frame_Pipeline(Module, AutoCSR): self.sync.rio += [ # TODO: add gating self.gate_data.i.stb.eq(update), - self.gate_data.i.data.eq(count_sys), + # without the slice, unspecified bits will be 1 for some reason + # i.e. data[count_wdith:] = 0b111111... when using data.eq(count_sys) + self.gate_data.i.data[:count_width].eq(count_sys), ]