forked from M-Labs/artiq
wrpll: fix run signal
This commit is contained in:
parent
8dd9a6d024
commit
e4b16428f5
@ -115,7 +115,7 @@ class I2CMasterMachine(Module):
|
||||
run = Signal()
|
||||
idle = Signal()
|
||||
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")),
|
||||
self.cg.ce.eq(~idle),
|
||||
fsm.ce.eq(run | self.cg.clk2x),
|
||||
|
Loading…
Reference in New Issue
Block a user