From 7be1378310f767ae77906df7c4bc2e1094fc2fbf Mon Sep 17 00:00:00 2001 From: morgan Date: Fri, 10 Jan 2025 13:11:29 +0800 Subject: [PATCH] frameline GW: cleanup gearbox --- src/gateware/cxp_frame_pipeline.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/gateware/cxp_frame_pipeline.py b/src/gateware/cxp_frame_pipeline.py index 819a44c..55916e3 100644 --- a/src/gateware/cxp_frame_pipeline.py +++ b/src/gateware/cxp_frame_pipeline.py @@ -460,15 +460,10 @@ class Custom_Pixel_Gearbox(Module): self.submodules.fsm = fsm = FSM(reset_state="COPY") - - - valid_stb = Signal() - self.comb += self.source.stb.eq((level >= source_dw) | valid_stb) - fsm.act( "COPY", self.sink.ack.eq(1), - # self.source.stb.eq(level >= source_dw), + self.source.stb.eq(level >= source_dw), we.eq(self.sink.stb), re.eq((self.source.stb & self.source.ack)), If(self.sink.stb & self.sink.eop, @@ -476,11 +471,12 @@ class Custom_Pixel_Gearbox(Module): ), ) + valid_stb = Signal() fsm.act( "NEWLINE", reset_reg.eq(1), valid_stb.eq(1), - # self.source.stb.eq(1), + self.source.stb.eq(1), NextState("COPY"), )