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:
|
if detect_edges:
|
||||||
source_r = Signal()
|
source_r = Signal()
|
||||||
self.sync.rio += source_r.eq(source)
|
self.sync.rio += source_r.eq(source)
|
||||||
self.comb += xfer.i.eq(source & source_r)
|
self.comb += xfer.i.eq(source & ~source_r)
|
||||||
else:
|
else:
|
||||||
self.comb += xfer.i.eq(source)
|
self.comb += xfer.i.eq(source)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue