verylsi
Full Member level 2
Hello All,
I am little confused with initializing multidimensional array..
If I need to initialize all values to '0' then in that case, I know that - (others=> (others=>'0') will work for me.
But I need to initialize 4 th element with "11111111" and rest all with "00000000" .
Then in this case, what should I do?
I tried -
signal tmp_ram: ram_type := ( (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), ("11111111"), (others=>'0'), (others=>'0'), (others=>'0')) ;
but there must be a better way to do it.
Thanks
I am little confused with initializing multidimensional array..
If I need to initialize all values to '0' then in that case, I know that - (others=> (others=>'0') will work for me.
But I need to initialize 4 th element with "11111111" and rest all with "00000000" .
Then in this case, what should I do?
I tried -
signal tmp_ram: ram_type := ( (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), (others=>'0'), ("11111111"), (others=>'0'), (others=>'0'), (others=>'0')) ;
but there must be a better way to do it.
Thanks
Last edited: