p11
Banned
- Joined
- Jan 25, 2014
- Messages
- 177
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 16
- Activity points
- 0
Code:
architecture Behavioral of rom is
type memory is array (0 to 7) of STD_LOGIC_VECTOR (3 DOWNTO 0);
constant dat : memory := (x"3", x"2",x"4", x"0",x"6",x"0",x"5",x"0");
now if i want to assign the 1st value of the array then how to do it ??? i mean if i write
dout (3 downto 0)<=dat (0) ( 3 downto 0);
is it ok ???