BlackByte10xy
New Contributor
5 years agoI have a question about verilog!
Hello,
I have a compile error in quartus II when I try to do a counter with asynchronous reset. The error comes from the sensitivity list of the always process. The part of the code is as follows:
/----------
always @ ( posedge iCLK, iRST_n )
begin
if ( iRST_n == 0 )
oCOUNT = 0;
else
...
/----------
The error that the quartus II gives me is the following:
Error (10122): Verilog HDL Event Control error at contador.v(54): mixed single- and double-edge expressions are not supported
/----------
The question is: How can I implement an asynchronous reset on a counter in verilog?
Thanks