KEMBAR78
Memory Read & Write Operations | PDF
0% found this document useful (0 votes)
567 views2 pages

Memory Read & Write Operations

This document discusses read and write operations in memory. It explains that memory stores data in words made up of bits and uses data input/output lines and control lines like Read and Write to transfer data into and out of memory locations indexed by an address bus. It provides an example of calculating memory size in bytes based on the number of address lines and describes the processes of reading and writing data, where reading transfers data from a memory location to the Memory Data Register and writing transfers data from the register to a memory location.

Uploaded by

usman khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
567 views2 pages

Memory Read & Write Operations

This document discusses read and write operations in memory. It explains that memory stores data in words made up of bits and uses data input/output lines and control lines like Read and Write to transfer data into and out of memory locations indexed by an address bus. It provides an example of calculating memory size in bytes based on the number of address lines and describes the processes of reading and writing data, where reading transfers data from a memory location to the Memory Data Register and writing transfers data from the register to a memory location.

Uploaded by

usman khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

READ & WRITE OPERATION IN MEMORY

A memory unit stores binary information in groups of bits called words. Data input lines provide
the information to be stored into the memory, Data output lines carry the information out from
the memory. The control lines Read and write specifies the direction of transfer of data.
Basically, in the memory organization, there are 2l memory locations indexing from 0 to 2l−1
where l is the address buses. We can describe the memory in terms of the bytes using the
following formula:

Where,
l is the total address buses
N is the memory in bytes

For example, some storage can be described below in terms of bytes using the above formula:

1kB= 210 Bytes


64 kB = 26 x 210 Bytes
= 216 Bytes
4 GB = 22 x 210(KB) x 210(MB) x 210 (GB)
= 232 Bytes

1. Memory Read Operation:


Memory read operation transfers the desired word to address lines and activates the
read control line. Description of memory read operation is given below:

In the above diagram initially, MDR can contain any garbage value and MAR is
containing 2003 memory address. After the execution of read instruction, the data of
memory location 2003 will be read and the MDR will get updated by the value of the
2003 memory location (3D).
READ & WRITE OPERATION IN MEMORY
2. Memory Write Operation:
Memory write operation transfers the address of the desired word to the address lines,
transfers the data bits to be stored in memory to the data input lines. Then it activates
the write control line. Description of the write operation is given below:

In the above diagram, the MAR contains 2003 and MDR contains 3D. After the
execution of write instruction 3D will be written at 2003 memory location.

You might also like