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

Reply

VHDL - low attribute

 
Thread Tools Search this Thread
Old 06-16-2007, 08:39 PM   #1
Default low attribute


The low attribute can be used for multidimensional arrays? What will it
result?

For example:
architecture arch of test is
TYPE stdlogic_table IS ARRAY(std_ulogic, std_ulogic) OF std_ulogic;
begin

process
variable s: stdlogic_table;
variable i: std_logic;
begin
i := s'LOW;
wait;
end process;

end arch;

Thanks


John Smith
  Reply With Quote
Old 06-16-2007, 10:04 PM   #2
Jonathan Bromley
 
Posts: n/a
Default Re: low attribute
On Sat, 16 Jun 2007 21:39:54 +0200, John Smith
<> wrote:

>The low attribute can be used for multidimensional arrays?


Yes.

A slightly more interesting example than yours (different
subscript types for the two dimensions):

type big_array is array (boolean, integer range 0 to 9) of std_logic;
....
....
variable s: big_array;
....

Now, S'LOW(1) = FALSE, S'LOW(2) = 0. All the array attributes
have an optional argument specifying which dimension you're
inquiring about; 1 specifies the first dimension.

And S'LOW is exactly S'LOW(1) by definition.
--
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
w3c standard saurabh1jadhav Software 0 02-18-2009 02:46 PM
Using session attribute in tomcat rg_yazdani Software 2 11-11-2008 12:39 PM
Dynamically added TreeNode Control not render my custom attribute venkyzealous Software 0 05-10-2008 03:46 PM
<customErrors> tag should have its "mode" attribute set to "Off". jasari Software 4 04-04-2007 08:31 AM
Errata: MCTS 70-536, Self-Paced Training Kit, 3rd print (chapters 1-7) Zimri MCTS 1 04-03-2007 11:15 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