forked from M-Labs/artiq-zynq
frameline GW: cleanup gearbox
This commit is contained in:
parent
11925a3356
commit
7be1378310
@ -460,15 +460,10 @@ class Custom_Pixel_Gearbox(Module):
|
|||||||
|
|
||||||
self.submodules.fsm = fsm = FSM(reset_state="COPY")
|
self.submodules.fsm = fsm = FSM(reset_state="COPY")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
valid_stb = Signal()
|
|
||||||
self.comb += self.source.stb.eq((level >= source_dw) | valid_stb)
|
|
||||||
|
|
||||||
fsm.act(
|
fsm.act(
|
||||||
"COPY",
|
"COPY",
|
||||||
self.sink.ack.eq(1),
|
self.sink.ack.eq(1),
|
||||||
# self.source.stb.eq(level >= source_dw),
|
self.source.stb.eq(level >= source_dw),
|
||||||
we.eq(self.sink.stb),
|
we.eq(self.sink.stb),
|
||||||
re.eq((self.source.stb & self.source.ack)),
|
re.eq((self.source.stb & self.source.ack)),
|
||||||
If(self.sink.stb & self.sink.eop,
|
If(self.sink.stb & self.sink.eop,
|
||||||
@ -476,11 +471,12 @@ class Custom_Pixel_Gearbox(Module):
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
valid_stb = Signal()
|
||||||
fsm.act(
|
fsm.act(
|
||||||
"NEWLINE",
|
"NEWLINE",
|
||||||
reset_reg.eq(1),
|
reset_reg.eq(1),
|
||||||
valid_stb.eq(1),
|
valid_stb.eq(1),
|
||||||
# self.source.stb.eq(1),
|
self.source.stb.eq(1),
|
||||||
NextState("COPY"),
|
NextState("COPY"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user