Forum Discussion
Altera_Forum
Honored Contributor
14 years agoOK. I've played a bit with the Megafunction tool and it seems that the memory interfaces it provides are not exactly what I need.
Here is a rephrased problem statements: Imagine you have a 128x8bit memory initialized to zero. I want to be able to write "tail"-sections of this memory with the same value in one clock-cycle. Note that I always write from an index i till the end. (I call it a "tail"-section) Example: Write from location 64 to 127 the value 7. Result: half memory is zero half is 7. Write from location 96 to 127 the value 8. Result: half memory is zero, one quarter 7, other quarter 8. This kind of writes are trivial to implement if each memory word (location) provides a write_enable control signal, so that I could enable and disable it accordingly. The question is how do I do in on a Stratix IV chip (EP4SGX230)? I see that I have the following embedded memories:- MLAB (640bit)
- M9K (9kbit)
- M144K (144kbit)