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()
|
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),
|
||||||
|
|
Loading…
Reference in New Issue