low attribute

J

John Smith

Guest
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
 
On Sat, 16 Jun 2007 21:39:54 +0200, John Smith
<john.smith@hotmail.com> 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
jonathan.bromley@MYCOMPANY.com
http://www.MYCOMPANY.com

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

Welcome to EDABoard.com

Sponsor

Back
Top