Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to Create and Access Bit-matrix?

Status
Not open for further replies.

Punarva

Newbie level 2
Joined
Apr 19, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,301
i want to create a bit-matrix of 4x32 and want to output each row. I tried writing the below code,

type STD_LOGIC_MATRIX is array(0 to 3, 31 downto 0) of STD_LOGIC;

B0 : out STD_LOGIC(31 downto 0);
B1 : out STD_LOGIC(31 downto 0);
B2 : out STD_LOGIC(31 downto 0);
B3 : out STD_LOGIC(31 downto 0);

signal s : STD_LOGIC_MATRIX;

B0 <= s(0, 31 downto 0);
B1 <= s(0, 31 downto 0);
B2 <= s(0, 31 downto 0);
B3 <= s(0, 31 downto 0);

but its not working properly.
It says "parse error, unexpected DOWNTO, expecting COMMA or CLOSEPAR"
Is there any mistake in creating the datatype? or else accessing signal 's'?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top