Lect 10
Lect 10
R1
R2
R3
R4
R5
R6
R7
Load
(7 lines)
SELA { MUX MUX } SELB
3x8
A bus B bus
decoder
SELD
OPR ALU
Page 243
Output
Morris mano
• General Register Organization:—
• When a large number of registers are included in the
CPU, it is most efficient to connect them through a
common bus system. The registers communicate
with each other not only for direct data transfers, but
also while performing various micro-operations.
Hence it is necessary to provide a common unit that
can perform all the arithmetic, logic and shift micro-
operation in the processor.
• A Bus organization for seven CPU registers:—
• Reference Diagram: Page Number 243 by M Morris Mano
• The output of each register is connected to true multiplexer (mux) to form the two buses A &
B. The selection lines in each multiplexer select one register or the input data for the
particular bus. The A and B buses forms the input to a common ALU. The operation selected
in the ALU determines the arithmetic or logic micro-operation that is to be performed. The
result of the micro-operation is available for output and also goes into the inputs of the
registers. The register that receives the information from the output bus is selected by a
decoder. The decoder activates one of the register load inputs, thus providing a transfer both
between the data in the output bus and the inputs of the selected destination register.
• The control unit that operates the CPU bus system directs the information flow through the
registers and ALU by selecting the various components in the systems.
• R1 R2 + R3
• (1) MUX A selection (SEC A): to place the content of R2 into bus A
• (2) MUX B selection (sec B): to place the content of R3 into bus B
• (3) ALU operation selection (OPR): to provide the arithmetic addition (A + B)
• (4) Decoder destination selection (SEC D): to transfer the content of the output bus into
R1
• These form the control selection variables are generated in the control unit and must be
available at the beginning of a clock cycle.
ALU
• Arithmetic:
• Addition, Subtraction, Multiplication, Division
• Logic:
• Comparisons
Control Unit
• Execute
• Does the decoded instruction
• Add 2+2
• Store
• Puts the answer 4 into memory
for use by another instruction
Memory
• Memory unit is needed for • Most common auxiliary memory
storing programs and data. is magnetic disks and magnetic
tapes. They are used for storing
• Memory units that communicate programs, large data files, and
directly with CPU is called MAIN other backup information.
MEMORY
• Only programs and data that are
• Devices that provide backup currently needed by the
storage is called auxiliary processor will reside in main
memory memory
• The cache memory is employed in computer systems to compensate the speed differential
between main memory access time and logic.
• CPU logic is usually faster than main memory access time, with the result that processing
speed is limited primarily by the speed of the main memory.
• The cache is used for storing segments of programs currently being executed in the CPU and
temporary data frequently needed in the present calculations
• PROM
• EPROM
• EEPROM
• Each type has unique characteristics, but they are all types
of memory with two things in common:
• Data stored in these chips is nonvolatile -- it is not lost when
power is removed.
• Data stored in these chips is either unchangeable or requires
a special operation to change (unlike RAM, which can be
changed as easily as it is read).
• ROM chips are fundamentally different from
RAM chips. While RAM uses transistors to turn
on or off access to a capacitor at each
intersection, ROM uses a diode
AUXILIARY MEMORY
• Magnetic Disk
• The Magnetic Disk is Flat, circular platter with metallic coating
that is rotated beneath read/write heads. It is a Random
access device; read/write head can be moved to any location
on the platter.
Floppy Disk