1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00

Scary blocking call issue

- Can't believe this has been there for 4 gens of epiphany!
- Found it by chance when copying code over to edge detect...
This commit is contained in:
Andreas Olofsson 2016-03-05 07:25:13 -05:00
parent 4dbf1a201e
commit 7a756decf8

View File

@ -101,7 +101,7 @@ module pic(/*AUTOARG*/
//# RISING EDGE DETECTOR
//###########################
always @ (posedge clk)
ic_irq_shadow[IRQW-1:0]= ext_irq[IRQW-1:0] ;
ic_irq_shadow[IRQW-1:0] <= ext_irq[IRQW-1:0] ;
assign ic_event[IRQW-1:0] = ext_irq[IRQW-1:0] & ~ic_irq_shadow[IRQW-1:0] ;