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

Reply

VHDL - About the values in VHDL std_logic_vector

 
Thread Tools Search this Thread
Old 09-14-2007, 08:01 PM   #1
Default About the values in VHDL std_logic_vector


The std logic package has some values defined as follows,

U unitialized
X forcing unknown
1 forcing 1
0 forcing 0
L weak 0
H Weak 1

Now, does a assign like
a:= 1
mean that it has been forced a value of 1. Is that correct , Does it
mean it will hold , until another, assign happens.



parag_paul@hotmail.com
  Reply With Quote
Old 09-14-2007, 08:41 PM   #2
Andy
 
Posts: n/a
Default Re: About the values in VHDL std_logic_vector
On Sep 14, 2:01 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
> The std logic package has some values defined as follows,
>
> U unitialized
> X forcing unknown
> 1 forcing 1
> 0 forcing 0
> L weak 0
> H Weak 1
>
> Now, does a assign like
> a:= 1
> mean that it has been forced a value of 1. Is that correct , Does it
> mean it will hold , until another, assign happens.


>From your syntax, "a" must be an integer type variable. 1 is a number

(integer). '1' is logic high in std_logic system.

VHDL variables operate just like variables in other languages;
assignments to them are in force until another assignment to the same
variable is executed.

If on the other hand, you meant to say:

a <= '1';

then we have a signal assignment.

If the assignment appears outside of a process or subprogram, then it
is a concurrent assignment, and creates a driver, with a constant
value of '1', continually driving your signal.

If the assignment appears inside a process, then it is a sequential
assignment. Only one driver is created for that process, regardless of
how many assignments are made within the process. Only the last
executed assignment prior to the process suspending is used. Updates
take effect when the process suspends (i.e. waiting for another event,
etc.).

If multiple processes and/or concurrent assignment statements drive
the same signal, the effective value for the signal must be resolved
from all of the drivers. There are no "forcing" values in the
std_logic system: drivers with '1' and '0' on the same signal will
result in an 'X', etc.

Andy



Andy
  Reply With Quote
Old 09-15-2007, 06:38 AM   #3
parag_paul@hotmail.com
 
Posts: n/a
Default Re: About the values in VHDL std_logic_vector
Is there a forcing value system in VHDL itself. I mean something like
force and release in verilog.

I was confused with the definitions of 1 and 0 and though , H and L
are the appropriate ones.

Other than the std_logic what are the other value systems available in
VHDL



parag_paul@hotmail.com
  Reply With Quote
Old 09-15-2007, 12:02 PM   #4
Jonathan Bromley
 
Posts: n/a
Default Re: About the values in VHDL std_logic_vector
On Fri, 14 Sep 2007 22:38:45 -0700, ""
<> wrote:

>Is there a forcing value system in VHDL itself. I mean something like
>force and release in verilog.


Not in the language, no. Simulators usually provide the
force functionality.

It would be possible to invent a new resolution function for
std_ulogic (or any other data type) providing a "forcing"
value, but you need to be aware that simulators are highly
optimized for the standard implementation of std_logic and
any change to it would drastically worsen simulator performance.
Synthesis tools generally do not support any kind of non-standard
resolution function.

>I was confused with the definitions of 1 and 0 and though , H and L
>are the appropriate ones.


For what?

>Other than the std_logic what are the other value systems available in
>VHDL


Any that you care to write. There are built-in data types for
boolean (FALSE, TRUE) and bit ('0', '1'). Others you would need
to write for yourself.
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK

http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.


Jonathan Bromley
  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
Help on auto conversion from Matlab to vhdl on filter design hardheart Hardware 0 12-07-2007 09:19 AM
Values set by javascript are not reflected in serverside(.Net) rchimakurty Software 2 11-28-2007 10:07 AM
Checkbox values problem in gridview thanigaimani.thirumalai Software 0 11-09-2007 05:12 AM
ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL freitass Hardware 0 11-01-2007 03:44 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