Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

ModelSim Altera Starter Edtion 10.0d - set EndTime

Altera_Forum
Honored Contributor II
2,361 Views

The Simulate - Runtime Option, lets me define a default Run time of say 1us. Then upon Simulate - Start simulation, the view changes, goes to Simulate and The Run Length can be checked, it still is 1us. Upon Run -All, the executed time ends at 10ns, coincidental the cycle time of the simulation. 

 

I somehow wasn't able to find the proper way to set the end time. 

 

Rene
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
1,103 Views

It will stop automatically if there is not more similation to run (eg. your clock has stopped clocking).

0 Kudos
Altera_Forum
Honored Contributor II
1,103 Views

Naa. It didn't even start. It stops after 10ns, and I have a cycle time of 10ns.

0 Kudos
Altera_Forum
Honored Contributor II
1,103 Views

could it be stuck in an infinite loop? 

can you post some source code?
0 Kudos
Altera_Forum
Honored Contributor II
1,103 Views

I'm a couple steps further. Indeed the simulation runs until no changes occur. Meaning I have to gate the clock like : 

 

-- Clock Generator 

process begin 

clock <='0'; 

wait until Reset = '1'; 

wait for clockcycle; 

while Reset = '1' loop 

clock <= '1'; 

wait for clockcycle/2; 

clock <= '0'; 

wait for clockcycle/2; 

end loop; 

wait; 

end process; 

 

The gate process :  

 

-- Reset 

process begin 

Reset <= '0'; 

wait for Clockcycle; 

Reset <= '1'; 

wait for EndOfTime; 

Reset <= '0'; 

wait; 

end process; 

 

Otherwise it runs forever. Clearly ignoring my wish with the End Time. 

And even stranger, I have to set the stuff up with a reset = 1 otherwise it also runs forever without a result. 

 

-- main 

begin 

data <= "00000011"; 

latch <= '1'; 

cnten <= '1' ; 

Reset <= '1'; -- must be 1 here !!! 

 

Now, at least I get a simulation going... 

Thanks a lot this far.
0 Kudos
Altera_Forum
Honored Contributor II
1,103 Views

you cannot assign reset inside and outside the process. This will cause reset to be 'X'

0 Kudos
Reply