Ldco Unit 5 Notes
Ldco Unit 5 Notes
Enhancements
Module 3: Key Characteristics of RISC and CISC and
Instruction Pipelining
Instructor
Dr. R. S. Khule,
Department of Information Technology,
Matoshri College of Engineering and Research
Centre, Nashik.
Recap
2
Module Objectives
• To understand the key characteristics of RISC and CISC machine
• To understand the concept and strategy of instruction pipelining
3
Module Outcomes
• Explain the key characteristics of RISC and CISC
machine
• Compare RISC and CISC
• Explain the operation of instruction pipelining
• Explain the instruction pipelining hazard
Major Advances in Computers(1)
• The family concept
– IBM System/360 1964
– DEC PDP-8
– Separates architecture from implementation
• Micro programmed control unit
– Idea by Wilkes 1951
– Produced by IBM S/360 1964
• Cache memory
– IBM S/360 model 85 1968
• Pipelining
– Introduces parallelism into fetch execute cycle
• Multiple processors
The Next Step - RISC
• Key features
– Large number of general purpose registers
– or use of compiler technology to optimize register use
– Limited and simple instruction set
– Emphasis on optimising the instruction pipeline
RISC and CISC
• The main idea is to make hardware simpler by using an
instruction set composed of a few basic steps for loading,
evaluating and storing operations just like a load command will
load data, store command will store the data.
• Complex Instruction Set Architecture (CISC) –
The main idea is that 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, hence it’s complex.
• 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 and CISC
• Earlier when programming was done using assembly
language, a need was felt to make instruction do more task
because programming in assembly was tedious and error
prone due to which CISC architecture evolved but with rise up
of high level language dependency on assembly reduced RISC
architecture prevailed.
Why CISC ?
• Compiler simplification?
– Disputed…
– Complex machine instructions harder to exploit
– Optimization more difficult
• Smaller programs?
– Program takes up less memory but…
– Memory is now cheap
– May not occupy less bits, just look shorter in symbolic
form
• More instructions require longer op-codes
Why CISC (2)?
• Faster programs?
– Bias towards use of simpler instructions
– More complex control unit
– Micro program control store larger
– thus simple instructions take longer to execute
RISC Characteristics
Instruction Cycle
(with Interrupts) -
State Diagram
Pipelining
• Fetch instruction
• Decode instruction
• Calculate operands (i.e. EAs)
• Fetch operands
• Execute instructions
• Write operand
22
Assignment