alexz
Full Member level 5
vhdl entity array
I have defined a new type, which is a 2d array. An array of 10 latches 15 bits.
Now, I want to instantiate an entity and pass a signal of this type to the entity.
How can I do this?
label: entity WORK myEntity(myARC) port map ( latches .... );
entity myEntity is
port
(latchesSignal : in latchesType ; ??????????
I have defined a new type, which is a 2d array. An array of 10 latches 15 bits.
Code:
subtype latchType is std_logic_vector(15 downto 0) ;
type latchesType is array (9 downto 0) of latchType ;
signal latches : latchesType := (others=>(others=>'0'));
Now, I want to instantiate an entity and pass a signal of this type to the entity.
How can I do this?
label: entity WORK myEntity(myARC) port map ( latches .... );
entity myEntity is
port
(latchesSignal : in latchesType ; ??????????