diff --git a/src/gateware/cxp.py b/src/gateware/cxp.py index 3708c2b..ec5bfa3 100644 --- a/src/gateware/cxp.py +++ b/src/gateware/cxp.py @@ -27,18 +27,10 @@ class CXP(Module, AutoCSR): self.data_1 = CSRStorage(8) self.data_2 = CSRStorage(8) self.data_3 = CSRStorage(8) - self.data_4 = CSRStorage(8) - self.data_5 = CSRStorage(8) - self.data_6 = CSRStorage(8) - self.data_7 = CSRStorage(8) self.control_bit_0 = CSRStorage() self.control_bit_1 = CSRStorage() self.control_bit_2 = CSRStorage() self.control_bit_3 = CSRStorage() - self.control_bit_4 = CSRStorage() - self.control_bit_5 = CSRStorage() - self.control_bit_6 = CSRStorage() - self.control_bit_7 = CSRStorage() self.encoded_0 = CSRStatus(10) self.encoded_1 = CSRStatus(10) @@ -97,19 +89,6 @@ class CXP(Module, AutoCSR): self.gtx.encoder.k[1].eq(self.control_bit_3.storage), counter.eq(0), ), - # ).Elif(counter == 2, - # self.gtx.encoder.d[0].eq(self.data_4.storage), - # self.gtx.encoder.k[0].eq(self.control_bit_4.storage), - # self.gtx.encoder.d[1].eq(self.data_5.storage), - # self.gtx.encoder.k[1].eq(self.control_bit_5.storage), - # counter.eq(counter+1), - # ).Elif(counter == 3, - # self.gtx.encoder.d[0].eq(self.data_6.storage), - # self.gtx.encoder.k[0].eq(self.control_bit_6.storage), - # self.gtx.encoder.d[1].eq(self.data_7.storage), - # self.gtx.encoder.k[1].eq(self.control_bit_7.storage), - # counter.eq(0), - # ), self.encoded_0.status.eq(self.gtx.encoder.output[0]), self.encoded_1.status.eq(self.gtx.encoder.output[1]), ]