Reading and Writing an Addressed Memory Cell
An addressed memory interface uses address, data, and control information to select which stored value to observe or modify.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace two cells
Suppose addresses one and two hold 6 and 9. Writing 5 at address one changes the first result to 5 and leaves the second at 9. An addressing convention names the location without changing what the stored value means.
Check read timing
Some designs return selected data combinationally, while others supply it after a clocked operation. Use the particular interface timing. A function contract similarly describes when a caller can rely on a result.[1]
Track the address independently of data
In a simple synchronous write model, a write-enable clock edge with address three and data nine updates cell three. Changing the address to five with write disabled leaves cell five unchanged. A later read of three returns nine under the stated interface. See register load and hold.
Before: cell3=4, cell5=8
Write enabled, address 3, data 9 → cell3=9
Write disabled, address 5, data 2 → cell5 remains 8
Specify what a simultaneous read can observe
A memory interface can return old data, new data or an unspecified value for same-address read and write under particular modes. Test according to the chosen memory specification. Also verify when the requested data becomes available after its address changes.