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

Reply

VHDL - System Tasks in VHDL

 
Thread Tools Search this Thread
Old 03-14-2006, 07:14 AM   #1
Default System Tasks in VHDL


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
  Reply With Quote
Old 03-14-2006, 11:02 AM   #2
David R Brooks
 
Posts: n/a
Default Re: System Tasks in VHDL
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
  Reply With Quote
Old 03-14-2006, 11:13 AM   #3
Thomas Thorsen
 
Posts: n/a
Default Re: System Tasks in VHDL

<> 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
  Reply With Quote
Old 03-14-2006, 02:21 PM   #4
Mike Treseler
 
Posts: n/a
Default Re: System Tasks in VHDL
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
  Reply With Quote
Old 03-14-2006, 11:25 PM   #5
Mark McDougall
 
Posts: n/a
Default Re: System Tasks in VHDL
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
  Reply With Quote
Old 03-15-2006, 02:21 PM   #6
Reiner Huober
 
Posts: n/a
Default Re: System Tasks in VHDL
>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
  Reply With Quote
Old 03-17-2006, 06:28 PM   #7
Mike Treseler
 
Posts: n/a
Default Re: System Tasks in VHDL
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
  Reply With Quote
Old 03-21-2006, 04:02 PM   #8
Jim Lewis
 
Posts: n/a
Default Re: System Tasks in VHDL - Yes in VHDL-2006 ...
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
  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
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




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