![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |