forked from M-Labs/artiq
drtio: fix error CSR edge detection (#947)
This commit is contained in:
parent
0adbbd8ede
commit
8bd15d36c4
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue