joeka
Newbie level 4
Hi,
I declared some registers as constant in vhdl. I'd like to send them to a component via spi. However there are more than 1000 registers to send.
All of registers are declared as :
-- address
constant REG0000 : std_logic_vector(15 downto 0):= x"0000";
constant REG0001 : std_logic_vector(15 downto 0):= x"0001";
...
constant REG03FF : std_logic_vector(15 downto 0):= x"03FF";
--datas
constant REGV0000 : std_logic_vector(15 downto 0):= "0000010";
constant REGV0001 : std_logic_vector(15 downto 0):= "0001001";
...
constant REGV03FF : std_logic_vector(15 downto 0):= "0100100";
I'd like to send all the registers by incrementing the constant value : something like REG <= "REG"&i;
I tried to create a string but it does'nt work.
Any idea ?
Thanks
Joeka
I declared some registers as constant in vhdl. I'd like to send them to a component via spi. However there are more than 1000 registers to send.
All of registers are declared as :
-- address
constant REG0000 : std_logic_vector(15 downto 0):= x"0000";
constant REG0001 : std_logic_vector(15 downto 0):= x"0001";
...
constant REG03FF : std_logic_vector(15 downto 0):= x"03FF";
--datas
constant REGV0000 : std_logic_vector(15 downto 0):= "0000010";
constant REGV0001 : std_logic_vector(15 downto 0):= "0001001";
...
constant REGV03FF : std_logic_vector(15 downto 0):= "0100100";
I'd like to send all the registers by incrementing the constant value : something like REG <= "REG"&i;
I tried to create a string but it does'nt work.
Any idea ?
Thanks
Joeka