0% found this document useful (0 votes)
1 views

COA 3.2_RISC_CISC

Uploaded by

terepapakamaal
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

COA 3.2_RISC_CISC

Uploaded by

terepapakamaal
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Unit-1_1

COMPUTER ORGANIZATION AND ARCHITECTURE


Processor Architectures :

1
Outline

• RISC-Features
• CISC Features,
• Comparison of RISC & CISC
• Superscalar Processors.
• Super pipelined Processor.

2
Processor Architectures

• The terms RISC (Reduced Instruction Set Computing) and CISC (Complex Instruction Set
Computing) refer to two different types of computer architectures.
• RISC and CISC are two different types of computer processor designs, or instruction set
architectures (ISA), that refer to the way a processor communicates with a programmer.
• CISC – 1970 10 years later RISC in high end work station.
• In the past, it was believed that hardware design was easier than compiler design
• Most programs were written3 in assembly language
• Hardware concerns of the past: 1. Limited and slower memory 2. Few registers
• The Solution :- As limited registers so … Instructions have do more work, thereby minimizing
the number of instructions called in a program.
• Allow for variations of each instruction - Usually variations in memory access.
Processor Architectures

Complex Instruction Set Computer.

• Each instruction executes multiple low level operations.

– Ex. A single instruction can load from memory, perform an arithmetic


operation, and store the result in memory.

• Smaller program size.


• The essential goal of a CISC architecture is to attempt to provide a single
4
machine instruction for each high level language instruction
– Ex:

– IBM/370 computers

– Intel Pentium processors


Processor Architectures

CISC Characteristics

• A large number of instructions.


• Some instructions for special tasks used infrequently.
• A large variety of addressing modes (5 to 20).
• Variable length instruction formats.

Disadvantages :
However, it soon became apparent that a complex instruction set has a
5
number of disadvantages:

• These include a complex instruction decoding scheme, an increased size of


the control unit, and increased logic delays.
Processor Architectures

In Search of reducing Complexity of the Instruction .


• Compilers became more prevalent.

• The majority of CISC instructions were rarely used.

• Some complex instructions were slower than a group of simple instructions performing
an equivalent task:
– Too many instructions for designers to optimize each one.

• Smaller instructions allowed for constants to be stored in the unused bits of the
instruction 6
– This would mean less memory calls to registers or memory.
Reduced Instruction Set Computer.

• It is a microprocessor that is designed to perform a smaller number of types of


computer instruction so that it can operate at a higher speed.
• RISC, or Reduced Instruction Set Computer utilizes a small, highly-optimized
set of instructions, rather than a more specialized set of instructions often found
in other types of architectures.
• The first RISC projects came from IBM, Stanford, and UC-Berkeley in the late 70s
and early 80s. The IBM 801, Stanford MIPS, and Berkeley RISC 1 and 2 were all
designed with a similar philosophy which has become known as RISC
• Ultra Sun SPARC - Classic example of RISC processors
7
RISC Characteristics
• Relatively few instructions 128 or less
• Relatively few addressing modes.
• Memory access is limited to LOAD and STORE instructions.
• All operations done within the registers of the CPU.
• This architectural feature simplifies the instruction set and encourages the optimization of register
manipulation.

• An essential RISC philosophy is to keep the most frequently accessed operands in registers and minimize
register-memory operations.
• Fixed Length, easily decoded instruction format
• Typically 4 bytes in length

• Single cycle instruction execution


• Done by overlapping the fetch, decode and execute phases of two or three instructions known as Pipelining!!

• Large number of registers in the processor unit.


• Use of overlapped Register Windows.

8
RISC Pipeline.

• Different from normal one.


• Based on type of instruction.
• According to instruction type, decide the number of phases in pipeline.
• Number of stages in pipeline are not fixed.
RISC Pipeline.
• Most instructions are register to register
– Two phases of execution
– I: Instruction fetch
– E: Execute
• ALU operation with register input and output
9

• For load and store


– Three phase execution
– I: Instruction fetch
– E: Execute
• Calculate memory address
– D: Memory
• Register to memory or memory to register operation
CISC Vs RISC

CISC RISC
Emphasis on hardware Emphasis on software
Includes multi-clock
Single-clock, reduced instruction only
complex instructions

Memory-to-memory: Register to register:


"LOAD" and "STORE" "LOAD" and "STORE"
incorporated in instructions are independent instructions

Small code sizes, Low cycles per second,


high cycles per second large code sizes

Transistors used for storing Spends more transistors


complex instructions on memory registers

10
To Conclude ……

• RISC and CISC are merely different design methodologies. Neither


is inherently superior to the other.

• CISC architectures are equally capable of evolving to the levels of


performance being claimed by RISC.

11
Superscalar Processors
Instruction-Level Parallelism
• Multiple Independent Instruction Pipelines : each with multiple stages, i.e., Common
instructions (arithmetic, load/store , conditional branch) can be initiated and executed
independently determine dependencies between nearby instructions .

• Input of one instruction depends upon the output of a preceding instruction.

• locate nearby independent instructions issue & complete instructions in an order


different than specified in the code stream

• Uses branch prediction methods rather than delayed branches

• RISC or CISC - usually more RISC than CISC

12
Why Superscalar?

• Most operations are on scalar quantities. (see


RISC notes)
• Improve these operations to get an overall
improvement.

13
What Is Superscalar ?

• Executes multiple independent instructions in parallel, first invented


in 1987.
• Common instructions (arithmetic, load, store etc)can be initiated
simultaneously and executed independently.
• Applicable to both RISC and CISC but usually in RISC.
• It is designed to improve the performance of these operations by
executing them concurrently in multiple pipelines.

14
General Superscalar Organization

• Superscalar systems support parallel execution of several instructions in separate


pipelines of multiple functional units

• The configuration above, supports the parallel execution of two integer operations,
two floating point operations and one memory operation. 15
Super pipelined Architecture

• Pipeline stages can be segmented into n distinct non-overlapping parts each of which can
execute in 1/n of a clock cycle
• Exploits the fact that many pipeline stages perform tasks that require less than half a clock
cycle, i.e., n=2.

• Doubled internal clock speed allows the performance of two tasks in one external clock cycle

• Superscalar allows parallel fetch & execute operations

16
Comparison ……

17
Limitations
• Instruction level parallelism
• Compiler based optimisation
• Hardware techniques
• Limited by
– True data dependency
– Procedural dependency
– Resource conflicts
– Output dependency
– Antidependency
References
• Computer Organization And Architecture,8th Edition , William
Stallings

• http://nptel.ac.in/courses/Webcourse-contents/IIT-
%20Guwahati/comp_org_arc/web/
• http://www.borrett.id.au/computing/art-1991-06-02.htm
THANK YOU
20

Vishwakarma Institute of Technology, Pune

You might also like