Altera_Forum
Honored Contributor
9 years agoWrite a lot of data
I'm considering two options.
The first:
case (address) is
when X"00500" => byte0 <= data;
when X"00501" => byte1 <= data;
when X"00502" => byte2 <= data;
-- and so on
end case;
Th second:
type big_data is array (0 to 1024) of std_logic_vector(7 downto 0);
signal bytes : big_data;
bytes(address) <= data;
Which one is faster and consumes less LEs? Considering I have 600 registers to read/write.