![]() |
|
|
|||||||
![]() |
VHDL - How to stop simulation in VHDL? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I want to stop the simulation in between for VHDL.
Is there any construct similar to $finish( in verilog) savitha.john@gmail.com |
|
|
|
|
#2 |
|
Posts: n/a
|
wrote:
> I want to stop the simulation in between for VHDL. > Is there any construct similar to $finish( in verilog) Not exactly. Find "done_s" and "coda" in this page for an example of forcing all processes to wait: http://home.comcast.net/~mike_treseler/ The other way is to force an assertion failure, but I don't like seeing failure warnings when the testbench passes. -- Mike Treseler Mike Treseler |
|
|
|
#3 |
|
Posts: n/a
|
When running ModelSim before loading project, clike menu: Simulate,
click Runtime Option, set Default run time data you want: for example, 200us, then click Apply After project is loaded, you must have known everything else to do. Each time you run your simulation, ModelSim will stop after the simulation time is finished. No coding is required. Weng Weng Tianxiang |
|
|
|
#4 |
|
Posts: n/a
|
Hi,
u can use "break" commadn on vsim prmpt of the modelsim. kulkarku@math.net |
|
|
|
#5 |
|
Posts: n/a
|
Hi,
u can use "break" commadn on vsim prmpt of the modelsim. kulkarku@math.net |
|
|
|
#6 |
|
Posts: n/a
|
Thank you all.........I am using ncsim for simulation...and that too ,a
command line interface.... I have implemented an assertion failure as Mike said....That did work...But still ..even I don't like seeing failure warnings when the testbench passes....... Thanks a lot Mike savitha.john@gmail.com |
|
|
|
#7 |
|
Posts: n/a
|
wrote: > Thank you all.........I am using ncsim for simulation...and that too ,a > command line interface.... > I have implemented an assertion failure as Mike said....That did > work...But still ..even I don't like seeing failure warnings > when the testbench passes....... > > Thanks a lot Mike I don't like seeing failure warnings either... I use the following syntax to end the simulation: assert false report "NONE. End of simulation." severity failure; The simulator then outputs the following: # ** Failure: NONE. End of simulation. Not a perfect solution but works for me... Pete Petrov_101@hotmail.com |
|
|
|
#8 |
|
Posts: n/a
|
A method I sometimes use is having all clocks 'automatically' stop
(typically, sometime after a stimulus input file has finished); when there are no more processes pending, the simulation will stop. Alternatively, sometimes I call the simulation with a generic limiting the amount of time. JTW <> wrote in message news: oups.com... > > wrote: >> Thank you all.........I am using ncsim for simulation...and that too ,a >> command line interface.... >> I have implemented an assertion failure as Mike said....That did >> work...But still ..even I don't like seeing failure warnings >> when the testbench passes....... >> >> Thanks a lot Mike > > I don't like seeing failure warnings either... > > I use the following syntax to end the simulation: > assert false report "NONE. End of simulation." severity > failure; > > The simulator then outputs the following: > # ** Failure: NONE. End of simulation. > > Not a perfect solution but works for me... > > Pete > jtw |
|
|
|
#9 |
|
Posts: n/a
|
For those of you that are using Modelsim you can simple add a signal to your
testbench and assert this signal at the end of the simulation. Then use the "when" statement in your script to stop the simulator. Example: stop Modelsim when the signal end_of_simulation='1' when -label end_of_simulation {end_of_sim == '1'} {echo "End of simulation" ; stop ;} # End of simulation # Simulation stop requested Let hope accellera will sort this out for SystemVHDL....HyperVHDL...or whatever they are planning to call it (assuming of course they are still actively working on it...) Hans www.ht-lab.com <> wrote in message news: oups.com... >I want to stop the simulation in between for VHDL. > Is there any construct similar to $finish( in verilog) > Hans |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to execute an external software from VHDL? And how to interface VHDL with JAVA? | becool_nikks | Software | 0 | 03-06-2009 07:08 PM |
| Help on auto conversion from Matlab to vhdl on filter design | hardheart | Hardware | 0 | 12-07-2007 09:19 AM |
| ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL | freitass | Hardware | 0 | 11-01-2007 03:44 PM |
| Post-Route Simulation does not give output for the first clock cycle Options | velocityreviews | Software | 0 | 04-17-2007 05:47 PM |
| simulation | Tom | MCITP | 0 | 04-05-2007 01:40 AM |