CMSC 3833 Lecture 64. mov ax, 10 mov ax, 0 mov bx, 5 mov bx, 10 mul bx, ax mov cx, 5 Begin: add ax, bx loop Begin

Similar documents
Announcement. Computer Architecture (CSC-3501) Lecture 25 (24 April 2008) Chapter 9 Objectives. 9.2 RISC Machines

Computer Organization CS 206 T Lec# 2: Instruction Sets

RISC Principles. Introduction

Pipelining, Branch Prediction, Trends

CISC Attributes. E.g. Pentium is considered a modern CISC processor

Understand the factors involved in instruction set

Instruction-set Design Issues: what is the ML instruction format(s) ML instruction Opcode Dest. Operand Source Operand 1...

Chapter 9. Alternative Architectures. Chapter 9 Objectives

Reduced Instruction Set Computer

Central Processing Unit

COMPUTER ORGANIZATION & ARCHITECTURE

Real instruction set architectures. Part 2: a representative sample

DC57 COMPUTER ORGANIZATION JUNE 2013

instruction set computer or RISC.

RISC & Superscalar. COMP 212 Computer Organization & Architecture. COMP 212 Fall Lecture 12. Instruction Pipeline no hazard.

Interfacing Compiler and Hardware. Computer Systems Architecture. Processor Types And Instruction Sets. What Instructions Should A Processor Offer?

Processor Architecture. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Grundlagen Microcontroller Processor Core. Günther Gridling Bettina Weiss

COMPUTER STRUCTURE AND ORGANIZATION

William Stallings Computer Organization and Architecture. Chapter 12 Reduced Instruction Set Computers

Processor Architecture

Chapter 4. MARIE: An Introduction to a Simple Computer 4.8 MARIE 4.8 MARIE A Discussion on Decoding

RISC Processors and Parallel Processing. Section and 3.3.6

Computer System Architecture

TECH. CH14 Instruction Level Parallelism and Superscalar Processors. What is Superscalar? Why Superscalar? General Superscalar Organization

MICROCONTROLLERS 8051

omputer Design Concept adao Nakamura

Chapter 04: Instruction Sets and the Processor organizations. Lesson 20: RISC and converged Architecture

Department of Computer Science and Engineering CS6303-COMPUTER ARCHITECTURE UNIT-I OVERVIEW AND INSTRUCTIONS PART A

Lecture 4: Instruction Set Design/Pipelining

Chapter 9. Alternative Architectures. Quote. Chapter 9 Objectives. 9.1 Introduction

Write a P-Code Assembler. Program Files: File Description pasm.cpp. Project:

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-11: 80x86 Architecture

Generating the Control Unit

Chapter 13 Reduced Instruction Set Computers

This course provides an overview of the SH-2 32-bit RISC CPU core used in the popular SH-2 series microcontrollers

Module 3 Instruction Set Architecture (ISA)

The Single Cycle Processor

Major Advances (continued)

Reduced Instruction Set Computers

Evolution of ISAs. Instruction set architectures have changed over computer generations with changes in the

Cpu Architectures Using Fixed Length Instruction Formats

UNIVERSITY OF CALIFORNIA, RIVERSIDE

Designing and Optimizing the Fetch Unit for a RISC Core

Micro-programmed Control Ch 15

Machine Instructions vs. Micro-instructions. Micro-programmed Control Ch 15. Machine Instructions vs. Micro-instructions (2) Hardwired Control (4)

Micro-programmed Control Ch 15

Chapter 2: Instructions How we talk to the computer

The Microarchitecture Level

EE4144: ARM Cortex-M Processor

What is Superscalar? CSCI 4717 Computer Architecture. Why the drive toward Superscalar? What is Superscalar? (continued) In class exercise

Superscalar Machines. Characteristics of superscalar processors

ARSITEKTUR SISTEM KOMPUTER. Wayan Suparta, PhD 17 April 2018

CPE300: Digital System Architecture and Design

Instruction-set Design Issues: what is the ML instruction format(s) ML instruction Opcode Dest. Operand Source Operand 1...

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

A superscalar machine is one in which multiple instruction streams allow completion of more than one instruction per cycle.

Micro-programmed Control Ch 17

1 5. Addressing Modes COMP2611 Fall 2015 Instruction: Language of the Computer

Hardwired Control (4) Micro-programmed Control Ch 17. Micro-programmed Control (3) Machine Instructions vs. Micro-instructions

Organisasi Sistem Komputer

Advanced Computer Architecture

CISC / RISC. Complex / Reduced Instruction Set Computers

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

CISC324: Operating Systems. Assignment 1

Chapter 5. A Closer Look at Instruction Set Architectures

Processor Organization and Performance

Previously. Principles for Modern Processor. History 1. Fetch execute cycle Pipelining and others forms of parallelism Basic architecture

Digital System Design Using Verilog. - Processing Unit Design

Computer Architecture

Lecture 3: Instruction Set Architecture

RAID 0 (non-redundant) RAID Types 4/25/2011

OUTLINE. STM32F0 Architecture Overview STM32F0 Core Motivation for RISC and Pipelining Cortex-M0 Programming Model Toolchain and Project Structure

Superscalar Processors

Assembly Language. Lecture 2 - x86 Processor Architecture. Ahmed Sallam

Topics/Assignments. Class 10: Big Picture. What s Coming Next? Perspectives. So Far Mostly Programmer Perspective. Where are We? Where are We Going?

sarm User Guide Note that a space must appear before the operation field because any word beginning in the first column is a label

RISC I from Berkeley. 44k Transistors 1Mhz 77mm^2

Complex Instruction Sets

CS 5803 Introduction to High Performance Computer Architecture: RISC vs. CISC. A.R. Hurson 323 Computer Science Building, Missouri S&T

Final Exam Review. b) Using only algebra, prove or disprove the following:

Assembly Language. Lecture 2 x86 Processor Architecture

UNIT 2 PROCESSORS ORGANIZATION CONT.

MICROPROCESSOR TECHNOLOGY

ARM Ltd. ! Founded in November 1990! Spun out of Acorn Computers

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

Basic characteristics & features of 8086 Microprocessor Dr. M. Hebaishy

ASSEMBLY LANGUAGE MACHINE ORGANIZATION

MARIE: An Introduction to a Simple Computer

Overview of the MIPS Architecture: Part I. CS 161: Lecture 0 1/24/17

ADVANCED COMPUTER ARCHITECTURE TWO MARKS WITH ANSWERS

Chapter 12. CPU Structure and Function. Yonsei University

SISTEMI EMBEDDED. Computer Organization Central Processing Unit (CPU) Federico Baronti Last version:

Introduction to Machine/Assembler Language

Fig 1. Block diagram of a microcomputer

COSC 243. Computer Architecture 2. Lecture 12 Computer Architecture 2. COSC 243 (Computer Architecture)

EE 3170 Microcontroller Applications

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

CPU Structure and Function

EE 3170 Microcontroller Applications

Transcription:

Reduced Instruction Set Computer (RISC) The underlying philosophy of RISC machines is that a system is better able to manage progm execution when the progm consists of only a few different instructions that are the same length and require the same number of clock cycles to decode and execute. RISC systems access memory only with explicit load and store instructions. In CISC systems, many different kinds of instructions access memory, making instruction length variable and fetch-decode-execute time unpredictable. The difference between CISC and RISC becomes evident through the basic computer performance equation: tttttttt pppppppppppppp = tttttttt cccccccccc cccccccccccc iiiiiiiiiiiiiiiiiiiiii iiiiiiiiiiiiiiiiiiiiiiii pppppppppppppp RISC systems shorten execution time by reducing the clock cycles per instruction. CISC systems improve performance by reducing the number of instructions per progm. The simple instruction set of RISC machines enables control units to be hardwired for maximum speed. The more complex-- and variable-- instruction set of CISC machines requires microcode-based control units that interpret instructions as they are fetched from memory. This tnation takes time. With fixed-length instructions, RISC lends itself to pipelining and speculative execution. Consider the progm fgments: mov ax, 10 mov ax, 0 mov bx, 5 mov bx, 10 mul bx, ax mov cx, 5 Begin: add ax, bx loop Begin CISC 32 clock cycles RISC 13 clock cycles CISC instructions: TTTTTTTTTT cccccccccc cccccccccccc = (2 mmmmmmmm 1 cccccccccc cccccccccc) + (1 mmmmmm 30 cccccccccc cccccccccccc) TTTTTTTTTT cccccccccc cccccccccccc = 32 cccccccccc cccccccccccc RISC instructions: TTTTTTTTTT cccccccccc cccccccccccc = (3 mmmmmmmm 1 cclloooooo cccccccccc) + (5 aaaaaaaa 1 cccccccccc cccccccccc) + (5 llllllllll 1 cccccccccc cccccccccc) TTTTTTTTTT cccccccccc cccccccccccc = 13 cccccccccc cccccccccccc With RISC clock cycle being shorter, RISC gives us much faster execution speeds. 1

Because of their load-store ISAs, RISC architectures require a large number of CPU registers. These register provide fast access to data during sequential progm execution. They can also be employed to reduce the overhead typically caused by passing pameters to subprogms. Instead of pulling pameters off of a stack, the subprogm is directed to use a subset of registers. This is how registers can be overlapped in a RISC system. The current window pointer (CWP) points to the active register window. Figure 9.1 Overlapping Register Windows 2

5 4 3 2 1 0 computation stack locals (if present) pameters (if present) return address () old extreme pointer () dynamic link () static link () return value () P-Machine Activation Record EP SP stack mark MP 3

progm main; var j:integer; procedure p; var i:integer; ; begin if i>0 then begin i:=i-1; j:=j+1; q end end{q}; begin{p} i:=2; q; end{p}; begin{main} j:=0; p end{main}. Third invocation Second invocation First invocation procedure p dynamic links i j static links progm main Pascal Progm and Corresponding Activation Records It is becoming increasingly difficult to distinguish RISC architectures from CISC architectures. Some RISC systems provide more extvagant instruction sets than some CISC systems. Some systems combine both approaches. 4

The table below summarize the chacteristics that tditionally typify the differences between these two architectures. RISC CISC Multiple register sets, often consisting of Single register set, typically 6 to 16 more than 256 registers registers total Three register opends allowed per One or two register opends allowed per instruction (e.g. add R1,R2,R3) instruction (e.g. add R1,R2) Pameter passing through efficient onchip register windows chip memory Pameter passing through inefficient off- Single-cycle instructions (exct for load Multiple-cycle instructions and store) Hardwired control Microprogmmed control Highly pipelined Less pipelined Simple instructions that are few in Many complex instructions number Fixed-length instructions Variable-length instructions Complexity in compiler Complexity in microcode Only load and store instructions can Many instructions can access memory access memory. Few addressing modes Many addressing modes Table 9.1 The Chacteristics of RISC Machines versus CISC Machines 5