- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I am using 2PORT RAM megafunction in my module. I want to write some data into a particular RAM address and then I want to increment that data by 1. One way, I know, is that I could read data from that location, add 1 to the read data and write it again into that RAM address. But that would be little bit tedious. All I want to know is whether it is possible to increment the data at that RAM address without reading it.Thanks. Ashish DevreLink Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Obviously this is not possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Needed to know that. Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A read-modify-write operation on a RAM cell can be implemented by external logic, but will always need two clock cycles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did the same. Read the data, incremented it and wrote it again.
You are right. Additional clock with double of original clock frequency would be needed. But in my application there wasn't any need of that, as I was writing on the alternate rising edges of my clock. Though it would be easier, if that increment-without-read facility had been there. Is there any other RAM available with this kind of feature? Just curious
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