Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Four dimensional array

Reply
Thread Tools

Four dimensional array

 
 
sridar sridar is offline
Member
Join Date: Jun 2007
Posts: 52
 
      06-20-2009
Hi techies,

I am declaring constant value of four dimension array as below.

Type Ostates is array (0 to 1) of std_logic_vector (1 downto 0);
Type Outstates is array (0 to 1) of Ostates ;
Type VaryStates is array (0 to 1) of Outstates;
Type User is array (0 to 1) of VaryStates;

CONSTANT fourdarray : User := ( ( (("11","01"),
("10","11")),
(("11","01"),
("10","11")) ),
( (("11","01"),
("10","11")),
(("11","01"),
("10","11")) ) );

any of the value in constant is accessed by fourdarray (x)(x)(x)(x). for example, fourdarray (0)(0)(1)(1) access the value 11.

I am able to synthesize as well as implement the design in xilinx ISE tool.

But i wanna know whether this approach is correct??
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Canon EIS mirrorless system - Four Thirds, but not Four Thirds! Bruce Digital Photography 31 09-25-2010 05:38 AM
To convert a one dimensional array into a two dimensional array using C amrutha0303 Software 0 08-03-2010 10:02 PM
Four dimensional array sridar VHDL 0 06-20-2009 04:02 AM
Allocating Four Dimensional Dynamic Arrays... fivelitermustang C++ 11 05-23-2004 06:08 AM
How do copy Strings from a single dimensional array to double dimensional array Venkat C++ 4 12-05-2003 09:23 AM



Advertisments