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

Simulation Freezing

Altera_Forum
Honored Contributor II
2,464 Views

I'm trying to simulate a code written in Verilog in Quartus using ModelSim but whenever it wants to simulate the code I see the whole software freezing. I tried reinstalling the software but it did not help. Does anyone know what could be the cause of this issue? 

 

Thanks!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
1,287 Views

Check your verilog. 

 

If you have a simulation loop with no time step, the simulator will get stuck trying to toggle the signals, with no increase in time. 

 

Some classic examples are a forever loop for clock that has no time delay in it, or a counter that has nothing that gates the counting once it starts. (IE it's in a always @ (*) block) 

 

Pete
0 Kudos
Altera_Forum
Honored Contributor II
1,287 Views

 

--- Quote Start ---  

Check your verilog. 

 

If you have a simulation loop with no time step, the simulator will get stuck trying to toggle the signals, with no increase in time. 

 

Some classic examples are a forever loop for clock that has no time delay in it, or a counter that has nothing that gates the counting once it starts. (IE it's in a always @ (*) block) 

 

Pete 

--- Quote End ---  

 

 

I am having the same issue, but I am designing it schematically. Any recommendations?
0 Kudos
Altera_Forum
Honored Contributor II
1,287 Views

Do you have registers around all feedback paths like counters? 

 

That would be the classic example. if you have sum = sum + 1 type of logic, but no register in the path, it will cause the simulator to loop for ever. 

 

so sum_c = sum_r + 1 should work if sum_r is the registered version of sum_c. Now it will only step at the clock rate. 

 

Pete
0 Kudos
Reply