23
Lecture - ACA Advanced Computer Architecture (0630561) Lecture 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

  • Upload
    vobao

  • View
    223

  • Download
    5

Embed Size (px)

Citation preview

Page 1: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١

Advanced Computer Architecture(0630561)

Lecture 2

RISC ArchitectureProf. Kasim M. Al-Aubidy

Computer Eng. Dept.

Page 2: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٢

Reduced Instruction Set Computer (RISC):• RISC architectures represent an important innovation in the area of

computer organization.• The RISC architecture is an attempt to produce more CPU power by

simplifying the instruction set of the CPU.• The opposed trend to RISC is that of complex instruction set

computers (CISC).• Both RISCs and CISCs try to solve the same problem. CISCs are

going the traditional way of implementing more and more complexinstructions. RISCs try to simplify the instruction set.

• Innovations in RISC architectures are based on a close analysis ofa large set of widely used programs.

• One of the main concerns of RISC designers was to maximize theefficiency of pipelining.

• Present architectures often include both RISC and CISC features.• Both RISC and CISC architectures have been developed

as an attempt to cover the semantic gap.

Page 3: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٣

• In order to improve the efficiency of software development,new and powerful programming languages have beendeveloped (Ada, C++, Java). They provide: high level ofabstraction, conciseness, power.

Problem: How should new HLL programs be compiled andexecuted efficiently on a processor architecture?

Two possible answers:1. The CISC approach: design very complex architectures including a

large number of instructions and addressing modes; include alsoinstructions close to those present in HLL.

2. The RISC approach: simplify the instruction set and adapt it to thereal requirements of user programs.

Page 4: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٤

Are RISCs Really Better than CISCs?• RISC architectures have several advantages and they were discussed

throughout this lecture. However, a definitive answer to the above questionis difficult to give.

• A lot of performance comparisons have shown that benchmark programs arereally running faster on RISC processors than on processors with CISCcharacteristics.

• However, it is difficult to identify which feature of a processor produces thehigher performance. Some "CISC fans" argue that the higher speed is notproduced by the typical RISC features but because of technology, bettercompilers, etc.

• An argument in favour of the CISC: the simpler instruction set of RISCprocessors results in a larger memory requirement compared to the similarprogram compiled for a CISC architecture.

• Most of the current processors are not typical RISCs or CISCs but tryto combine advantages of both approaches

Page 5: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٥

Some Processor ExamplesCISC Architectures:

VAX 11/ PentiumNr. of instructions: 303 235Instruction size: 2 – 57 1-11Instruction format: not fixed not fixedAddressing modes: 22 11Number of GP registers: 16 8

RISC Architectures:Sun SPARC PowerPC

Nr. of instructions: 52 206Instruction size: 4 4Instruction format: fixed not fixedAddressing modes: 2 2Number of GP registers: up to 520 32

Page 6: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٦

Page 7: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٧

Main Characteristics of RISC Architectures:• The instruction set is limited and includes only simple

instructions.• Only LOAD and STORE instructions reference data in memory.• Instructions use only few addressing modes.• Instructions are of fixed length and uniform format.• A large number of registers is available.

Page 8: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٨

Page 9: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٩

Page 10: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١٠

Example:

Page 11: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١١

Register to Register Operation

Page 12: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١٢

Register to Register Operation

Page 13: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١٣

Main Characteristics of RISC:

Page 14: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١٤

Main Advantages of RISC:

Page 15: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١٥

Criticism of RISC:

Page 16: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١٦

Page 17: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١٧

Page 18: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١٨

Page 19: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA١٩

Page 20: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٢٠

Page 21: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٢١

Page 22: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٢٢

Page 23: Lecture 2 RISC Architecture - Philadelphia University 2 RISC Architecture Prof. Kasim M. Al-Aubidy Computer Eng. Dept. ... • However, it is difficult to identify which feature of

Lecture٢-ACA٢٣

http://www.cse.hcmut.edu.vn/~anhvu/teaching/2010/ACA/lectures/ACA-chapter4.pdf