Instruction Sets: Characteristics and Functions

Similar documents
17. Instruction Sets: Characteristics and Functions

COMPUTER ORGANIZATION & ARCHITECTURE

Instruction Sets: Characteristics and Functions Addressing Modes

Instruction Set Architecture

Computer Organization CS 206 T Lec# 2: Instruction Sets

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 10 Instruction Sets: Characteristics and Functions

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Lecture 4: Instruction Set Architecture

CSIS1120A. 10. Instruction Set & Addressing Mode. CSIS1120A 10. Instruction Set & Addressing Mode 1

Instruction Sets Ch 9-10

Instruction Sets Ch 9-10

Instruction Set II. COMP 212 Computer Organization & Architecture. COMP 212 Fall Lecture 7. Instruction Set. Quiz. What is an Instruction Set?

When an instruction is initially read from memory it goes to the Instruction register.

Page 1. Structure of von Nuemann machine. Instruction Set - the type of Instructions

Instruction Set. Instruction Sets Ch Instruction Representation. Machine Instruction. Instruction Set Design (5) Operation types

Module 3 Instruction Set Architecture (ISA)

Computer Architecture and Organization. Instruction Sets: Addressing Modes and Formats

COMP2121: Microprocessors and Interfacing. Instruction Set Architecture (ISA)

Processing Unit CS206T

Chapter 2. Instruction Set. RISC vs. CISC Instruction set. The University of Adelaide, School of Computer Science 18 September 2017

COMP3221: Microprocessors and. and Embedded Systems. Instruction Set Architecture (ISA) What makes an ISA? #1: Memory Models. What makes an ISA?

Addressing Modes. Immediate Direct Indirect Register Register Indirect Displacement (Indexed) Stack

Instruction content (2/2) Instruction content (1/2) The Instruction Set. Chapter 9. Each instruction must contain 4 basic pieces of information

SEN361 Computer Organization. Prof. Dr. Hasan Hüseyin BALIK (8 th Week)

CS4617 Computer Architecture

9/3/2015. Data Representation II. 2.4 Signed Integer Representation. 2.4 Signed Integer Representation

Chapter 2 Instruction Set Architecture

Real instruction set architectures. Part 2: a representative sample

COS 140: Foundations of Computer Science

Math 230 Assembly Programming (AKA Computer Organization) Spring 2008

55:132/22C:160, HPCA Spring 2011

Chapter 1. Computer Abstractions and Technology. Lesson 3: Understanding Performance

Topics Power tends to corrupt; absolute power corrupts absolutely. Computer Organization CS Data Representation

CPE300: Digital System Architecture and Design

COSC 6385 Computer Architecture. Instruction Set Architectures

Processor design - MIPS

Computer Architecture 1 ح 303

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

Chapter 15. ARM Architecture, Programming and Development Tools

Instructions: Language of the Computer

Introduction to C. Why C? Difference between Python and C C compiler stages Basic syntax in C

Chapter 13 Reduced Instruction Set Computers

Run time environment of a MIPS program

CHAPTER 5 A Closer Look at Instruction Set Architectures

Instructions: Language of the Computer

Instruction Set Principles and Examples. Appendix B

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 11 Instruction Sets: Addressing Modes and Formats

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University.

Hardware Level Organization

CSEE 3827: Fundamentals of Computer Systems

CPU Structure and Function

UNIT-II. Part-2: CENTRAL PROCESSING UNIT


3.1 DATA MOVEMENT INSTRUCTIONS 45

Instruction Set Architecture (ISA)

2. Define Instruction Set Architecture. What are its two main characteristics? Be precise!

2010 Summer Answers [OS I]

Introduction to Computers - Chapter 4

Computer Organization MIPS ISA

(2½ Hours) [Total Marks: 75]

Lecture 5: Instruction Set Architectures II. Take QUIZ 2 before 11:59pm today over Chapter 1 Quiz 1: 100% - 29; 80% - 25; 60% - 17; 40% - 3

Compiler Design. Homework 1. Due Date: Thursday, January 19, 2006, 2:00

CPE300: Digital System Architecture and Design

Announcements HW1 is due on this Friday (Sept 12th) Appendix A is very helpful to HW1. Check out system calls

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture

Assembly Language Design

Review of instruction set architectures

Mark II Aiken Relay Calculator

CPU Structure and Function. Chapter 12, William Stallings Computer Organization and Architecture 7 th Edition

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS

EEM336 Microprocessors I. Arithmetic and Logic Instructions

Instruction Set Design

Chapter 2A Instructions: Language of the Computer

CS2304-SYSTEM SOFTWARE 2 MARK QUESTION & ANSWERS. UNIT I INTRODUCTION

Chapter 2. Instruction Set Principles and Examples. In-Cheol Park Dept. of EE, KAIST

Chapter 11. Instruction Sets: Addressing Modes and Formats. Yonsei University

CHAPTER 2: INSTRUCTION SET PRINCIPLES. Prepared by Mdm Rohaya binti Abu Hassan

Stored Program Concept. Instructions: Characteristics of Instruction Set. Architecture Specification. Example of multiple operands

Complex Instruction Set Computer (CISC)

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture

M1 Computers and Data

CS3350B Computer Architecture MIPS Instruction Representation

CS311 Lecture: Other CPU Architectures: 0,1,2 and 3 address machines Last revised 10/05/07

The Instruction Set. Chapter 5

Dr. Ramesh K. Karne Department of Computer and Information Sciences, Towson University, Towson, MD /12/2014 Slide 1

Part II Instruction-Set Architecture. Jan Computer Architecture, Instruction-Set Architecture Slide 1

CHAPTER 5 A Closer Look at Instruction Set Architectures

SPARC Architecture. SPARC Registers

SISTEMI EMBEDDED. Basic Concepts about Computers. Federico Baronti Last version:

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

The CPU and Memory. How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram:

Chapter 2. lw $s1,100($s2) $s1 = Memory[$s2+100] sw $s1,100($s2) Memory[$s2+100] = $s1

Embedded Systems Programming

Computer Organization

Typical Processor Execution Cycle

CENG3420 Lecture 03 Review

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

ISA: The Hardware Software Interface

Overview. EE 4504 Computer Organization. Much of the computer s architecture / organization is hidden from a HLL programmer

Transcription:

Instruction Sets: Characteristics and Functions Chapter 10 Lesson 15 Slide 1/22

Machine instruction set Computer designer: The machine instruction set provides the functional requirements for the CPU. Computer programmer: The user who chooses to program in machine language becomes aware of the register and memory structure, the types of data directly supported by the machine, and the functioning of the ALU. Lesson 15 Slide 2/22

What is an instruction set? The complete collection of instructions that are understood by a CPU Machine Code Binary Usually represented by assembly codes Lesson 15 Slide 3/22

Elements of an Instruction Operation code (Op code) Do this Source Operand reference To this Result Operand reference Put the answer here Next Instruction Reference When you have done that, do this... Lesson 15 Slide 4/22

Instruction Cycle State Diagram Lesson 15 Slide 5/22

Where have all the Operands gone? Main or virtual memory CPU register I/O device Lesson 15 Slide 6/22

Instruction Representation In machine code each instruction has a unique bit pattern For human consumption (well, programmers anyway) a symbolic representation is used. Opcodes are represented by abbreviations called mnemonics e.g. ADD, SUB, LOAD, STOR, DIV, MPY Operands can also be represented in this way ADD A,B Lesson 15 Slide 7/22

Simple Instruction Format Lesson 15 Slide 8/22

Instruction Types X = X + Y (X = 513, Y = 514) Register <= $513 from memory Register <= register + $514 from memory $513 of memory <= register Data processing: arithmetic and logic Data storage: memory Data movement: I/O Control: test and branch Lesson 15 Slide 9/22

3 addresses Operand 1, Operand 2, Result a = b + c; May be a forth - next instruction (usually implicit) Not common Number of Addresses (1) Needs very long words to hold everything Lesson 15 Slide 10/22

Number of Addresses (2) 2 addresses One address doubles as operand and result a = a + b Reduces length of instruction Requires some extra work Temporary storage to hold some results Lesson 15 Slide 11/22

Number of Addresses (c) 1 address Implicit second address Usually a register (accumulator) Common on early machines Lesson 15 Slide 12/22

Number of Addresses (d) 0 (zero) addresses All addresses implicit Uses a stack Lesson 15 Slide 13/22

Number of Addresses (e) Lesson 15 Slide 14/22

How Many Addresses More addresses More complex (powerful?) instructions More registers Inter-register operations are quicker Fewer instructions per program Fewer addresses Less complex (powerful?) instructions More instructions per program Faster fetch/execution of instructions Lesson 15 Slide 15/22

Operation repertoire How many ops? What can they do? How complex are they? Data types Instruction formats Length of op code field Number of addresses Design Decisions (1) Lesson 15 Slide 16/22

Design Decisions (2) Registers Number of CPU registers available Which operations can be performed on which registers? Addressing modes RISC v CISC Lesson 15 Slide 17/22

Types of Operand Addresses Numbers Integer or fixed point / floating point / decimal Characters ASCII Logical Data Bits or flags Lesson 15 Slide 18/22

Pentium Data Types 8 bit Byte 16 bit word => odd-numbered addresses 32 bit double word 64 bit quad word Addressing is by 8 bit unit A 32 bit double word is read at addresses divisible by 4 Lesson 15 Slide 19/22

Specific Data Types General - arbitrary binary contents Integer - single binary value Ordinal - unsigned integer Unpacked BCD - One digit per byte Packed BCD - 2 BCD digits per byte Near Pointer - 32 bit offset within segment Bit field Byte String Floating Point Lesson 15 Slide 20/22

Pentium numeric data formats Lesson 15 Slide 21/22

PowerPC Data Types 8 (byte), 16 (halfword), 32 (word) and 64 (doubleword) length data types Some instructions need operand aligned on 32 bit boundary Can be big- or little-endian Fixed point processor recognises: Unsigned byte, unsigned halfword, signed halfword, unsigned word, signed word, unsigned doubleword, byte string (<128 bytes) Floating point IEEE 754 Single or double precision Lesson 15 Slide 22/22