Forum Discussion
Altera_Forum
Honored Contributor
18 years agoCounter and time delay
Hi, I'm very new in Quartus, I just started a couple of days ago. The situation is that I've 4 inputs (only one of these can be active at time) and every time input changes to another, I n...
Altera_Forum
Honored Contributor
18 years agoThe last version is basically correct. You should also review the HDL templates available in Quartus editor context menu.
I did'nt exactly understand your reset problem. The reset as shown is an asynchronous, level sensitive reset, don't be confused by the posedge keyword in this regard, it's required Verilog syntax but doesn't actually mean an edge. An asynchronous reset can be level sensitive only. The counter flip-flops can have only one clock input, that's the same situation as with any hardware counter IC. Alternatively, you can have a synchronous reset that is operating in conjunction with clock input.