From 1a210a010a4cb4b950e257396f13f28fe65aa709 Mon Sep 17 00:00:00 2001 From: morgan Date: Fri, 26 Jul 2024 17:01:26 +0800 Subject: [PATCH] cxp: remove data[4:8] --- src/gateware/cxp.py | 21 --------------------- 1 file changed, 21 deletions(-) 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]), ]