Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - How to stop simulation in VHDL?

 
Thread Tools Search this Thread
Old 03-24-2006, 08:18 AM   #1
Default How to stop simulation in VHDL?


I want to stop the simulation in between for VHDL.
Is there any construct similar to $finish( in verilog)



savitha.john@gmail.com
  Reply With Quote
Old 03-24-2006, 01:25 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: How to stop simulation in VHDL?
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
  Reply With Quote
Old 03-25-2006, 02:33 PM   #3
Weng Tianxiang
 
Posts: n/a
Default Re: How to stop simulation in VHDL?
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
  Reply With Quote
Old 03-27-2006, 05:55 AM   #4
kulkarku@math.net
 
Posts: n/a
Default Re: How to stop simulation in VHDL?
Hi,
u can use "break" commadn on vsim prmpt of the modelsim.



kulkarku@math.net
  Reply With Quote
Old 03-27-2006, 05:56 AM   #5
kulkarku@math.net
 
Posts: n/a
Default Re: How to stop simulation in VHDL?
Hi,
u can use "break" commadn on vsim prmpt of the modelsim.



kulkarku@math.net
  Reply With Quote
Old 03-27-2006, 09:54 AM   #6
savitha.john@gmail.com
 
Posts: n/a
Default Re: How to stop simulation in VHDL?
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
  Reply With Quote
Old 03-31-2006, 09:48 PM   #7
Petrov_101@hotmail.com
 
Posts: n/a
Default Re: How to stop simulation in VHDL?

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
  Reply With Quote
Old 04-01-2006, 01:50 AM   #8
jtw
 
Posts: n/a
Default Re: How to stop simulation in VHDL?
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
  Reply With Quote
Old 04-01-2006, 09:25 AM   #9
Hans
 
Posts: n/a
Default Re: How to stop simulation in VHDL?
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46