Professional Documents
Culture Documents
Computer Architecture
Processor to Memory Communication
• Already covered in last chapter
I/O to processor Communication
• The I/O subsystem of a computer provides an efficient mode of
communication between the central system and the outside
environment. It handles all the input-output operations of the
computer system.
• Input or output devices that are connected to computer are called
peripheral devices.
Interface
• Interface is a shared boundary btween two separate components of
the computer system which can be used to attach two or more
components to the system for communication purposes.
• Peripherals connected to a computer need special communication
links for interfacing them with the central processing unit.
• The purpose of communication link is to resolve the differences that
exist between the central computer and each peripheral.
These major differences are-
1. Peripherals are electro-mechnical and electromagnetic devices and CPU
and memory are electronic devices. Therefore, a conversion of signal
values may be needed.
2. The data transfer rate of peripherals is usually slower than the transfer
rate of CPU and consequently, a synchronization mechanism may be
needed.
3. Data codes and formats in the peripherals differ from the word format in
the CPU and memory.
• To Resolve these difference computer systems include special
hardware components between the CPU and Peripherals to supervises and
synchronizes all input and out transfers. These components are called
Interface Units because they interface between the processor bus and the
peripheral devices.
I/O Interface
• Peripherals connected to a computer need special communication
links for interfacing with CPU. In computer system, there are special
hardware components between the CPU and peripherals to control or
manage the input-output transfers. These components are called
input-output interface units because they provide communication
links between processor bus and peripherals. They provide a method
for transferring information between internal system and input-
output devices.
I/O Bus and Interface Modules
• Accumulator
• Advantages: Short instructions.
Disadvantages: The accumulator is only temporary storage so memory traffic is the highest for this
approach.
• GPR
• Advantages: Makes code generation easy. Data can be stored for long periods in registers.
Disadvantages: All operands must be named leading to longer instructions.
• Earlier CPUs were of the first 2 types but in the last 15 years all CPUs made are GPR processors. The 2 major
reasons are that registers are faster than memory, the more data that can be kept internaly in the CPU the
faster the program wil run. The other reason is that registers are easier for a compiler to use.
RISC and CISC
• Reduced Set Instruction Set Computer (RISC) –
The main idea behind is to make hardware simpler by using an instruction set
composed of a few basic steps for loading, evaluating and storing operations just
like an addition command will be composed of loading data, evaluating and
storing.
• Complex Instruction Set Computer (CISC) –
The main idea is to make hardware complex as a single instruction will do all
loading, evaluating and storing operations just like a multiplication command will
do stuff like loading data, evaluating and storing it.
• Both approaches try to increase the CPU performance
• RISC: Reduce the cycles per instruction at the cost of the number of instructions
per program.
• CISC: The CISC approach attempts to minimize the number of instructions per
program but at the cost of increase in number of cycles per instruction.
RISC Processor
• It is known as Reduced Instruction Set Computer. It is a type of
microprocessor that has a limited number of instructions. They can
execute their instructions very fast because instructions are very
small and simple.
• RISC chips require fewer transistors which make them cheaper to
design and produce. In RISC, the instruction set contains simple and
basic instructions from which more complex instruction can be
produced. Most instructions complete in one cycle, which allows the
processor to handle many instructions at same time.
• In this instructions are register based and data transfer takes place
from register to register.
RISC
• RISC stands for Reduced Instruction Set Computer. To execute each
instruction, if there is separate electronic circuitry in the control unit,
which produces all the necessary signals, this approach of the design
of the control section of the processor is called RISC design. It is also
called hardwired approach.
• Examples of RISC processors:
• IBM RS6000, MC88100
• DEC’s Alpha 21064, 21164 and 21264 processors
Features of RISC Processors: