frameline GW: cleanup gearbox

This commit is contained in:
morgan 2025-01-10 13:11:29 +08:00
parent 11925a3356
commit 7be1378310

View File

@ -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"),
)