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.

VHDL Subtype declaration

Status
Not open for further replies.

Mudugamuwa

Newbie level 6
Joined
Sep 26, 2006
Messages
12
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,361
subtype declaration vhdl

I declared a array as follows

type matrix is array (0 to 21) of std_logic_vector(31 downto 0);

I want to make a subtype out of this which has indexes from 0 to 12. Could anyone give me the coding.
 

type +subtype declaration vhdl

Mudugamuwa said:
I declared a array as follows

type matrix is array (0 to 21) of std_logic_vector(31 downto 0);

I want to make a subtype out of this which has indexes from 0 to 12. Could anyone give me the coding.

Subtypes are used restrict ONLY the VALUES that a certain type can take.
So you can't restrict the indexes
 

vhdl subtype

Hi,

Got the point! Thanks !!!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top