- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can someone please tell me how I can reset the read & write address of an ALTSYNCRAM, Altera Megafunction?? I am simulating using ModelSim where I control the "aclr" using a register "reset_reg". I want the read/write address to be reset to '0' when the "reset_reg" goes high. Unfortunately, this doesn't seem to work at the moment and I don't know why. Any help would be very great!Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remember address is input to ram and it is up to your logic to reset it.
aclr, as I believe is the data reset of your ram.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kaz,
Yes, I understand your point. Initially, I tried to manually reset these addresses. But, I was not able to reset both "read address" & "write address" at the same time (clock). Only one of them reset. Again, I was not sure why? So, I saw an option in the Altera megafunction setup where I can mention which ports (read address, write address, read enable, etc) should be reset when "aclr" is triggered. This also has not worked.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
post your reset code (process)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aha, I see your point. aclr can clear any register inside ram function. However you would not see that at input i.e. address going into ram. You better apply your own reset to the addresses since they are inputs to Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the support Kaz, it worked now when I manually reset the addresses.
Cheers!
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