Professional Documents
Culture Documents
Ch6 Memory&Progm Logic
Ch6 Memory&Progm Logic
Ch6 Memory&Progm Logic
6.1 Introduction
A memory unit is a collection of storage cells together with associated circuits needed to transfer
information in and out of the device. Memory cells can be accessed for information transfer to or
from any desired random location and hence the name random access memory, abbreviated
RAM.
A memory unit stores binary information in groups of bits called words. A word in
memory is an entity of bits that move in and out of storage as a unit. A memory word is a group
of 1's and 0's and may represent a number, an instruction, one or more alphanumeric characters,
or any other binary-coded information.
The memory enable (sometimes called the chip select) is used to enable the particular memory
chip in a multichip implementation of a large memory. When the memory enable is inactive,
memory chip is not selected and no operation is performed. When the memory enable input is
active, the read/write input determines the operation to be performed.
Coincident Decoding
A decoder with k inputs and 2k outputs requires 2k AND gates with k inputs per gate. The total
number of gates and the number of inputs per gate can be reduced by employing two decoders in
a two - dimensional selection scheme.
Input decoders are used instead of one k-input decoder. One decoder performs the row
selection and the other the column selection in a two-dimensional matrix configuration.
For example, instead of using a single 10 x 1,024 decoder, we use two 5 x 32 decoders. With the
single decoder, we would need 1,024 AND gates with 10 inputs in each. The five most
significant bits of the address go to input X and the five least significant bits go to input Y. Each
word within the memory array is selected by the coincidence of one X line and one Y line. Thus
each word in memory is selected by the coincidence between 1 of 32 rows and 1 of 32 columns,
for a total of 1,024 words.
Even parity generator adds 1 or 0 to maintain number of 1’s in odd number. Similarly odd parity
generator also adds 1 or 0 to maintain number of 1 in even number.
Even parity Odd parity
P BCD P BCD
0 0000 1 0000
1 0001 0 0001
1 0010 0 0010
0 0011 1 0011
1 0100 0 0100
0 0101 1 0101
0 0110 1 0110
1 0111 0 0111
1 1000 0 1000
0 1001 1 1001
Parity checker uses even parity checker circuit and odd parity checker circuit to check the
received bits. C=0 when received bits are correct and C=1 when incorrect and vice-versa for odd
parity checker. It then sends signal to transmitter if error detected so that resending of data is
done. The parity check circuitry only detects single bit error in a group of bits. Logic diagrams
for parity generator and Parity checker are shown below:
A PLA having 3 input variables (ABC) and 3 output variables (XYZ) are illustrated below.