From 8bd15d36c4f3e206c5f128a8dc462a7adb671dbe Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 8 Mar 2018 16:28:25 +0800 Subject: [PATCH] drtio: fix error CSR edge detection (#947) --- artiq/gateware/drtio/rt_errors_satellite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/gateware/drtio/rt_errors_satellite.py b/artiq/gateware/drtio/rt_errors_satellite.py index bf6e9a3d9..743b5e031 100644 --- a/artiq/gateware/drtio/rt_errors_satellite.py +++ b/artiq/gateware/drtio/rt_errors_satellite.py @@ -28,7 +28,7 @@ class RTErrorsSatellite(Module, AutoCSR): if detect_edges: source_r = Signal() self.sync.rio += source_r.eq(source) - self.comb += xfer.i.eq(source & source_r) + self.comb += xfer.i.eq(source & ~source_r) else: self.comb += xfer.i.eq(source)