forked from M-Labs/artiq
1
0
Fork 0

wrpll: fix run signal

This commit is contained in:
cw-mlabs 2020-07-27 12:55:50 +08:00 committed by Sébastien Bourdeauducq
parent 8dd9a6d024
commit e4b16428f5
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class I2CMasterMachine(Module):
run = Signal() run = Signal()
idle = Signal() idle = Signal()
self.comb += [ self.comb += [
run.eq(self.start | self.stop | self.write), run.eq((self.start | self.stop | self.write) & self.ready),
idle.eq(~run & fsm.ongoing("IDLE")), idle.eq(~run & fsm.ongoing("IDLE")),
self.cg.ce.eq(~idle), self.cg.ce.eq(~idle),
fsm.ce.eq(run | self.cg.clk2x), fsm.ce.eq(run | self.cg.clk2x),