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 agoHave you tried it? Quartus will tell you.
If you end up describing the same function, but in two different way, Quartus may well rationalise it out to the same thing. I'll pick up on a few inconsistencies in your examples. 'address' appears to be 20-bits wide in your fist example, but is 11-bits wide in the second (or did you meant 0 to 1023?). You also refer to 600 registers. I can't see how that's relevant to either option... Cheers, Alex