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

Reply

VHDL - Testbench doubt

 
Thread Tools Search this Thread
Old 08-18-2004, 02:54 PM   #1
Default Testbench doubt


Hi all,
Suppose I want to write a testbench for a design that simulates the
design for a suffciently long time,so that wait for <t> statements are
obv. inadequate .Will a statement
wait;
do the job?
as in causing simulation to run forever?
An y other ideas as to how a long simulation time may be met ?




VHDL User
  Reply With Quote
Old 08-18-2004, 08:19 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: Testbench doubt
VHDL User wrote
> An y other ideas as to how a long simulation time may be met ?


The simulation will continue until
all processes reach a wait statement.

If one process, say the simulation clock,
never reaches a wait, the simulation
will run indefinitely.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 08-19-2004, 08:32 AM   #3
Niels Bakker
 
Posts: n/a
Default Re: Testbench doubt
Mike Treseler wrote:
> VHDL User wrote
>
>>An y other ideas as to how a long simulation time may be met ?

>
>
> The simulation will continue until
> all processes reach a wait statement.
>
> If one process, say the simulation clock,
> never reaches a wait, the simulation
> will run indefinitely.
>
> -- Mike Treseler


If all your processes are synchronous, and suppose your clock signal is
called 'clk' and of type std_logic.

Use a boolean signal 'simulate' as follows:

....
simulate <= true, false after 2 ms;
clk <= NOT clk after 5 ns WHEN simulate ELSE '0';
....

Your simulation will end after 2 ms, since the clock stops running and
there are no other stimuli left.

Niels Bakker


Niels Bakker
  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
Xilinx 7.1 and testbench error boitsas Software 0 01-15-2008 04:14 PM
There's no doubt that letterboxing is a negative factor DVD Video 47 11-01-2005 05:53 PM
HD DVD's holiday bash in doubt as majors pull back. Allan DVD Video 17 09-07-2005 03:47 AM
Full of doubt howard aka \Superman\ A+ Certification 3 06-15-2004 03:16 AM
New Releases: More No Doubt, Jonny Quest & Sealab: Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 2 03-06-2004 07:46 PM




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