- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 can't find any examples of how to use it. If it is connected to the datain and add lines, do I have to created a mux to use the ram normally? Does it require a dual port ram with one side dedicated to the init function? Any help would be appreciated. gweather
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Did you read the altmem_init users manual? Yes. 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. --- Quote End --- Yes, I read the manual. It shows how to hookup the altmem_init to ram, but does not show how any of the user's data, address or write enable lines are connected. I have also performed a search of the Altera web site and the web and have not found any info on the best way to use the megafunction.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page