low attribute

J

John Smith

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
 
J

Jonathan Bromley

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
(e-mail address removed)
http://www.MYCOMPANY.com

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top