Professional Documents
Culture Documents
Memory
Memory
Memory
Storage units within the computer
Serial Serial
Input D Q D Q D Q D Q Out
Clock
Pulse
(CP)
Shift Registers
Example: The bit stream 11011101 is to be stored in a 8-bit
Shift-Right register which currently contains 11011011.
Show the contents of the register after each of 6 shifts.
Input stream: 11011101
Initial 1 1 0 1 1 0 1 1
content
Shift 1
Shift 2
Shift 3
Shift 4
Shift 5
Shift 6
Shift Registers
Example: The bit stream 11011101 is to be stored in a 8-bit
Shift-Right register which currently contains 11011011.
Show the contents of the register after each of 6 shifts.
Input stream: 1101110
Initial 1 1 0 1 1 0 1 1
content
Shift 1 1 1 1 0 1 1 0 1
Shift 2
Shift 3
Shift 4
Shift 5
Shift 6
Shift Registers
Input stream: 110111
Initial 1 1 0 1 1 0 1 1
content
Shift 1 1 1 1 0 1 1 0 1
Shift 2 0 1 1 1 0 1 1 0
Shift 3
Shift 4
Shift 5
Shift 6
Shift Registers
Input stream: 11011
Initial 1 1 0 1 1 0 1 1
content
Shift 1 1 1 1 0 1 1 0 1
Shift 2 0 1 1 1 0 1 1 0
Shift 3 1 0 1 1 1 0 1 1
Shift 4
Shift 5
Shift 6
Shift Registers
Input stream: 1101
Initial 1 1 0 1 1 0 1 1
content
Shift 1 1 1 1 0 1 1 0 1
Shift 2 0 1 1 1 0 1 1 0
Shift 3 1 0 1 1 1 0 1 1
Shift 4 1 1 0 1 1 1 0 1
Shift 5
Shift 6
Shift Registers
Input stream: 110
Initial 1 1 0 1 1 0 1 1
content
Shift 1 1 1 1 0 1 1 0 1
Shift 2 0 1 1 1 0 1 1 0
Shift 3 1 0 1 1 1 0 1 1
Shift 4 1 1 0 1 1 1 0 1
Shift 5 1 1 1 0 1 1 1 0
Shift 6
Shift Registers
Input stream: 11
Initial 1 1 0 1 1 0 1 1
content
Shift 1 1 1 1 0 1 1 0 1
Shift 2 0 1 1 1 0 1 1 0
Shift 3 1 0 1 1 1 0 1 1
Shift 4 1 1 0 1 1 1 0 1
Shift 5 1 1 1 0 1 1 1 0
Shift 6 0 1 1 1 0 1 0 1
Parallel Registers
So called because of the way in which input and output
values are transferred into and out of the register
respectively.
Q Q Q Q
CP
CONTROL
SIGNALS
OE
OUTPUT
BUS
Parallel Registers
The register has two control signals, CP (clock pulse) and OE
(output enable),
both of which are connected to all the FFs. These signals are
used to decide what specific CP will have an effect on a particular
register.
Normally, both signals are in an inactive state but will
occasionally be asserted.
The result is that when the CP is asserted, the contents of the
register is loaded from the input bus.
When OE is negated, the register is disconnected from the
output bus and when it is asserted, the contents of the registers are
put onto the output bus.
Parallel Registers
Example: The bit stream 11011101 is to be stored in a 8-bit
Parallel register which currently contains 11011011. Show
the contents of the register after each of 6 shifts.
Initial 1 1 0 1 1 0 1 1
content
Shift 1 1 1 0 1 1 1 0 1
ROM/RAM
RAM (Random Access Memory) and ROM (Read-Only
Memory)
primary memory areas within the computer. Others include
Address 0
Address 1
Address 2
n words
Address n -1
R
Q OUTPUT INPUT OUTPUT
BC
INPUT S
READ/WRITE
READ/WRITE
Logic Diagram Block
Diagram
Memory Arrays
RAM
Can store n-bit binary words. An m x n array consists of m rows (words), each
row containing n cells.
Example: memory that stores 4 words each 4 bits in length i.e. a 4 x 4 array.
ROM
• Read only Memory (ROM) is a memory
device in which permanent binary information
is stored.
2k x n
k address lines n data output
ROM
ROM
The number of words in a ROM is determined from the
fact that k address lines are needed to specify 2k words.
1 1 1 0 0 0 0 0 0 1 0 0 1
1 1 1 0 1 1 1 1 0 0 0 1 0
1 1 1 1 0 0 1 0 0 1 0 1 0
1 1 1 1 1 0 0 1 1 0 0 1 1
ROM
For each word stored in ROM, a 0 specifies a no connection while
a 1 specifies a path that is obtained by a connection.
ROM
• There are two ways of viewing the specifications for
this ROM chip:
2. Each outputs is given in relation to the
corresponding minterm values.
A7 = Σm(0, 2, 3, 29)