Forum Discussion
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;...
Altera_Forum
Honored Contributor
9 years agoaddress is 16 bit wide. I meant 0-1023 but actually it'll be about 700 registers.
I suppose the second option faster (it's RAM implementation) but then I should allocate 700 16-bit registers. Waste of memory. Not all of my variables 16-bit wide. In the first option i could write (considering data is 16-bit wide)
case (address) is
when X"00500" => byte <= data;
when X"00501" => bit <= data(0);
when X"00502" => word <= data;
end case;
I use MAX10. For now I have enough LEs. So my main concern is a speed.