From d46b617c30be1b2d0c0a13b585a04327f2f18399 Mon Sep 17 00:00:00 2001 From: morgan Date: Tue, 14 Jan 2025 15:22:17 +0800 Subject: [PATCH] pipeline GW: rename word_dw to word_width --- src/gateware/cxp_pipeline.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gateware/cxp_pipeline.py b/src/gateware/cxp_pipeline.py index 01eb2b8..caf1556 100644 --- a/src/gateware/cxp_pipeline.py +++ b/src/gateware/cxp_pipeline.py @@ -10,12 +10,12 @@ from operator import or_, and_ char_width = 8 char_layout = [("data", char_width), ("k", char_width//8)] -word_dw = 32 -word_layout = [("data", word_dw), ("k", word_dw//8)] +word_width = 32 +word_layout = [("data", word_width), ("k", word_width//8)] word_layout_dchar = [ - ("data", word_dw), - ("k", word_dw//8), + ("data", word_width), + ("k", word_width//8), ("dchar", char_width), ("dchar_k", char_width//8), ] @@ -211,7 +211,7 @@ class Control_Packet_Writer(Module): # # # - self.specials.mem = mem = Memory(word_dw, buffer_depth) + self.specials.mem = mem = Memory(word_width, buffer_depth) self.specials.mem_port = mem_port = mem.get_port() self.source = stream.Endpoint(word_layout) @@ -291,8 +291,8 @@ class RX_Debug_Buffer(Module,AutoCSR): self.inc = CSR() self.dout_valid = CSRStatus() - self.dout_pak = CSRStatus(word_dw) - self.kout_pak = CSRStatus(word_dw//8) + self.dout_pak = CSRStatus(word_width) + self.kout_pak = CSRStatus(word_width//8) self.crc_error = CSRStatus() self.eop = CSRStatus() @@ -493,7 +493,7 @@ class Control_Packet_Reader(Module): ] # A circular buffer for firmware to read packet from - self.specials.mem = mem = Memory(word_dw, buffer_count*buffer_depth) + self.specials.mem = mem = Memory(word_width, buffer_count*buffer_depth) self.specials.mem_port = mem_port = mem.get_port(write_capable=True) # buffered mem_port to improve timing