![]() |
|
|
|
#1 |
|
Hi All,
Do we have any System Tasks and Function in VHDL similar to Verilog like $stop, $finish which can be easily used to halt the simulation. Regards, Kedar kedarpapte@gmail.com |
|
|
|
|
#2 |
|
Posts: n/a
|
wrote:
> Hi All, > > Do we have any System Tasks and Function in VHDL similar to Verilog > like $stop, $finish > > which can be easily used to halt the simulation. > Afaik, not explicitly. But simulation is defined to halt when no events remain to simulate. I put a control input on my testbench's main clock oscillator, which can be asserted when I want to halt. With no further clock events, things stop very quickly. David R Brooks |
|
|
|
#3 |
|
Posts: n/a
|
<> skrev i en meddelelse news: oups.com... > Hi All, > > Do we have any System Tasks and Function in VHDL similar to Verilog > like $stop, $finish > > which can be easily used to halt the simulation. > I use: ASSERT false REPORT "Test complete"; Which is fairly non-intrusive (but don't get confused about the apparant "error" in the log) Thomas Thorsen |
|
|
|
#4 |
|
Posts: n/a
|
Thomas Thorsen wrote:
> I use: > ASSERT false REPORT "Test complete"; > > Which is fairly non-intrusive (but don't get confused about the apparant > "error" in the log) Just say : REPORT "Test complete"; to eliminate the "error". -- Mike Treseler Mike Treseler |
|
|
|
#5 |
|
Posts: n/a
|
David R Brooks wrote:
> Afaik, not explicitly. > But simulation is defined to halt when no events remain to simulate. I > put a control input on my testbench's main clock oscillator, which can > be asserted when I want to halt. With no further clock events, things > stop very quickly. I use "wait;" -- Mark McDougall, Engineer Virtual Logic Pty Ltd, <http://www.vl.com.au> 21-25 King St, Rockdale, 2216 Ph: +612-9599-3255 Fax: +612-9599-3266 Mark McDougall |
|
|
|
#6 |
|
Posts: n/a
|
>Do we have any System Tasks and >Function in VHDL similar to Verilog
>like $stop, $finish Unfortunately not. The recommended way is, as other posters said, to stop all events, i.e. stop all clocks and stimuli. This is not always possible, expecially when the unit under test contains vendor supplied PLL/DLL models which cannot be stopped and you do not want to or cannot change the supplied VHDL code. The mostly used way is to provoke an error by an ASSERT (VHDL'87) or REPORT (VHDL'87, VHDL'93) statement with severity failure, which is rather unpleasant. Hubble. Reiner Huober |
|
|
|
#7 |
|
Posts: n/a
|
Mike Treseler wrote:
> Thomas Thorsen wrote: > >> I use: >> ASSERT false REPORT "Test complete"; Sorry, I totally missed the point. I use a testbench done signal to stop the clock: if done_s then wait; end if; -- Stop clock -- Mike Treseler Mike Treseler |
|
|
|
#8 |
|
Posts: n/a
|
Kedar,
It will be in the Accellera VHDL-2006 revision. Make sure to let your vendors know that you want it implemented right away. Cheers, Jim > Hi All, > > Do we have any System Tasks and Function in VHDL similar to Verilog > like $stop, $finish > > which can be easily used to halt the simulation. > > Regards, > Kedar > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ Jim Lewis Director of Training private.php?do=newpm&u= SynthWorks Design Inc. http://www.SynthWorks.com 1-503-590-4787 Expert VHDL Training for Hardware Design and Verification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ Jim Lewis |
|
![]() |
| 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 |
| Detecting Intruders on Your System Is Fun and Easy | konanimo@gmail.com | DVD Video | 0 | 12-11-2007 01:52 PM |
| Judge: File-swapping tools are legal | Citizen Bob | DVD Video | 140 | 11-08-2006 06:42 PM |
| Re: Backing up data to reinstall or replace a Operating system? | Barry Watzman | A+ Certification | 0 | 08-21-2003 06:59 PM |
| Re: 7. The truth about our creator. .7 | john smith | DVD Video | 2 | 07-25-2003 03:54 AM |