![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |