You are here

Reading GPIF transaction counter | Cypress Semiconductor

Reading GPIF transaction counter

Summary: 3 Replies, Latest post by TheThinker on 14 Dec 2012 12:02 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
ademenev's picture
12 posts

In FX2LP, transaction counter can be read while transaction is in progress. Is there a way to make an "atomic" read of the all 4 transaction count registers? Otherwise reading them is useless, because if an update occurs in between of read operation, the data read would be corrupted

rskv's picture
Cypress Employee
1134 posts

You should be able to read those 4 transaction registers at any point of time. I don't think data gets corrupted just because we are reading them. Did you encounter any situation where the data of these registers got corrupted?. Please let me know.


sai krishna.

ademenev's picture
12 posts

Suppose transaction count contains 0x00FFFF00.  I read lower byte - it is 0x00. Before I read other bytes, a transaction occors, and count now contains 0x00FFFEFF. And the final value I read is 0x00FFFE00 - totally wrong.

TheThinker's picture
37 posts


Why do you want to read the transaction counter while there is a read/write operation is going on?
Are you somewhere in the firmware reading the values and doing any operations according to the values?
You can rather use FIFO Read/Write operation appropriately.

What are you exactly trying to implement with this logic?


Log in to post new comments.