Module-4, Unit-1 Binary Cell and Memory Unit: Write
Module-4, Unit-1 Binary Cell and Memory Unit: Write
Module-4, Unit-1 Binary Cell and Memory Unit: Write
Read/ write : This signal specifies the type of operation to be done on memory Read or Write. If the signal is 0, data is written to the memory and if it is 1, data is
read from the memory.
Address Bus: Address Bus is a set of n lines, where 2n is the number of words in
the memory. The binary value in the address bus specifies the address of the word
on which the I/O operation is done. To elaborate, the binary value in the address
bus locates the corresponding word in the memory and its cells can be read
(written) if Read/ write signal is 1(0). For example, in case of a 4-bit width
address bus (n=4), if the value sent is 1111, then the 15th memory word is
accessed.
Data Bus: A row is called a word and the number of cells in a row is called word
length. The width of the data bus is k i.e., the word length. Generally speaking,
word length depends on the unit of the instruction set and/or hardware of the
processor. The data bus contains the data which is either read from the memory or
is to be written to the memory for the word which is addressed in the address bus.
Question 2: How can a simple memory cell be designed using a Flip-Flop? Explain its
working i.e., reading and writing to the cell.
Solution 2:
Flip-flops are one of the basic circuits that can be used as data storage elements. A flipflop stores a single bit of data. It has two states based on the values of its outputs(i) one
state represents a "one", generally represented as Q 1(Q 0) and (ii) other represents a
"zero", generally represented as Q 0(Q 1) . It has a CLOCK input. The flip-flop
retains its state and change happens only at the CLOCK edge. Output state is determined
based on the input values. Flip-flops generally have two complementary outputs
i.e., Q , Q . Different types of flip-flops have different inputs. As a flip-flop can retain its
state it can serve as a store element and a memory cell can be designed using it. The basic
principle to read the flip-flop is to simply probe the value at Q (and/or Q ) and keep the
clock stable. On the other hand, the basic principle to write the flip-flop is to apply the
appropriate inputs (depending on the type of flip-flop) and trigger the clock edge.
Here we will explain the concepts using SR flip flop. Truth Table for SR Flip-flop is
given below.
Inputs
S
1
0
0
1
Outputs
R
0
1
0
1
Q
1
0
0
1
Hold
Not allowed
Question 4: We have a memory module of size 1 KiloBytes. What is the size of address
and data bus if word size is (i) 8 Bits and (ii) 16 Bits. What would be the changes of the
memory module is of 1GigaBytes.
Solution 4:
i.
ii.
iii.
iv.