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

Reply

VHDL - Guard

 
Thread Tools Search this Thread
Old 01-24-2005, 05:41 AM   #1
Default Guard


Hi,

A newbie question: what does "guard" mean in VHDL? Can anybody kindly
give me one example?

Kuan


Kuan Zhou
  Reply With Quote
Old 01-24-2005, 08:48 AM   #2
Egbert Molenkamp
 
Posts: n/a
Default Re: Guard
Probably you can find a little bit more at this location
http://www.acc-eda.com/vhdlref/refgu...res/blocks.htm

Its interesting if a signal if all drivers to a signal are disconnected.
What should be the value of that signal?
Therefore the a signal declaration can be declared as:

signal myobject1 : std_logic REGISTER;
signal myobject1 : std_logic BUS;

In case myobject1 it not driven anymore it remembers its last value.
In case myobject2 is not driven anymore the resolution functions determines
the value.
see more on this at:
http://www-asim.lip6.fr/recherche/al...ubset/vbe.html

Egbert Molenkamp


"Kuan Zhou" <> wrote in message
news h.edu...
> Hi,
>
> A newbie question: what does "guard" mean in VHDL? Can anybody kindly
> give me one example?
>
> Kuan





Egbert Molenkamp
  Reply With Quote
Old 01-24-2005, 10:47 AM   #3
zingafriend@yahoo.com
 
Posts: n/a
Default Re: Guard
guard is the implicit signal created when you declare a block with a
guard expression. guard expressions are used to control operation of
guarded signal assignments.
ex:
guard_ex: block (value = '1') is
begin
---
signal_a <= guarded (x and y);
---
end block;
here signal_a is a guarded signal evaluated when guard is true ie, when
value='1'.

-Neo



zingafriend@yahoo.com
  Reply With Quote
Old 01-24-2005, 10:57 AM   #4
Allan Herriman
 
Posts: n/a
Default Re: Guard
On Mon, 24 Jan 2005 00:41:42 -0500, Kuan Zhou <>
wrote:

>Hi,
>
> A newbie question: what does "guard" mean in VHDL? Can anybody kindly
>give me one example?


Given that you say you're a newbie, perhaps a better answer would be:

Guard is a keyword you won't ever use in synthesisable code, and
probably won't use in your testbench either.

Regards,
Allan


Allan Herriman
  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
PETITION TO STOP BUSH'S DRAFT jasmine DVD Video 148 11-23-2004 07:05 AM
New York Times Killed "Bush Bulge" Story Jas DVD Video 79 11-16-2004 04:49 AM
OT: KERRY TO CONCEDE!!!!!!! RnR Lesnar DVD Video 131 11-10-2004 09:49 PM
Chicago Sun Times: Bush's draft is very POSSIBLE Jasmine DVD Video 63 09-30-2004 04:55 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