Forum Discussion
Altera_Forum
Honored Contributor
15 years agousing altmem_init
I have a case where I am using a dual port ram that under certain conditions needs to be initialized to all '0's. I'm looking at the altmem_init function, but can not determine how to apply it. I ca...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- I can't find any examples of how to use it. --- Quote End --- Did you read the altmem_init users manual? --- Quote Start --- If it is connected to the datain and add lines, do I have to created a mux to use the ram normally? --- Quote End --- Yes. --- Quote Start --- Does it require a dual port ram with one side dedicated to the init function? --- Quote End --- If not using a mux. Basically, the function does a sequential load of the ram. You can do the same in your code, if you prefer. It's rather easy.