Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

0to16 counter with 2 resets

Altera_Forum
Honored Contributor II
1,292 Views

Hello 

 

For my project I need 0to16 counter with 2 additional inputs: reset singal sets the counter to 0, other one sets the counter to 8. I simulated my idea in simply application logisim and it worked very nice. However, I can't implement it in Quartus II.  

 

https://www.alteraforum.com/forum/attachment.php?attachmentid=6681  

 

It counts from 0to16, but no reset nor eight signal affect it's work. What's more, version with only one reset signal (no "eight", no OR gates) works. 

According to this data: quartushelp.altera.com/9.1/mergedProjects/hdl/prim/prim_file_jkff.htm the counter should also work. 

 

Help me please find out what is the mistake.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
616 Views

Two points: 

- the logic needs AND rather than OR gates to combine the reset signals. 

- asynchrounous set/reset are simple to implement but rather problematic in operation. You have to assure that set/reset takes place with sufficient separation to clock edges.
0 Kudos
Reply