From 5504cc626fe0588d0ce1b1f72c54a331df6e75c9 Mon Sep 17 00:00:00 2001 From: Richard Tucker Date: Fri, 10 Feb 2023 12:50:25 +1100 Subject: [PATCH] soc/cores/i2c: change ISR to rising edge of idle --- litex/soc/cores/i2c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/cores/i2c.py b/litex/soc/cores/i2c.py index bf1b04bdd..811e0f1bf 100644 --- a/litex/soc/cores/i2c.py +++ b/litex/soc/cores/i2c.py @@ -239,7 +239,7 @@ class I2CMaster(Module, AutoCSR): # Event Manager. self.submodules.ev = EventManager() - self.ev.idle = EventSourceLevel() + self.ev.idle = EventSourceProcess(edge="rising") self.ev.finalize() self.comb += self.ev.idle.trigger.eq(i2c.idle)