Princess Sumaya University

Slides:



Advertisements
Similar presentations
P.Rajasekar & C.M.T.Karthigeyan Asst.Professor SRM University, Kattankulathur 8/22/2011 School of Computing, Department of IT 1.
Advertisements

Chapter 2: Data Manipulation
SE 292 (3:0) High Performance Computing L2: Basic Computer Organization R. Govindarajan
CH10 Instruction Sets: Characteristics and Functions
More Intel machine language and one more look at other architectures.
Chapter 4 The Von Neumann Model
Chapter 4 The Von Neumann Model
Addition 1’s to 20.
25 seconds left…...
Week 1.
Registers of the 8086/ /2002 JNM.
King Fahd University of Petroleum and Minerals King Fahd University of Petroleum and Minerals Computer Engineering Department Computer Engineering Department.
Chapter 3 โพรเซสเซอร์และการทำงาน The Processing Unit
MIPS Assembly Tutorial
Princess Sumaya University
Goal: Write Programs in Assembly
Instruction Set-Intro
INSTRUCTION SET ARCHITECTURES
1 ECE462/562 ISA and Datapath Review Ali Akoglu. 2 Instruction Set Architecture A very important abstraction –interface between hardware and low-level.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 2: IT Students.
1 ECE369 ECE369 Chapter 2. 2 ECE369 Instruction Set Architecture A very important abstraction –interface between hardware and low-level software –standardizes.
Systems Architecture Lecture 5: MIPS Instruction Set
Chapter 2 Instructions: Language of the Computer
Chapter 2.
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Princess Sumaya University
1 ICS 51 Introductory Computer Organization Fall 2006 updated: Oct. 2, 2006.
S. Barua – CPSC 440 CHAPTER 2 INSTRUCTIONS: LANGUAGE OF THE COMPUTER Goals – To get familiar with.
Lecture 5 Sept 14 Goals: Chapter 2 continued MIPS assembly language instruction formats translating c into MIPS - examples.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 2:
CDA 3101 Fall 2012 Introduction to Computer Organization Instruction Set Architecture MIPS Instruction Format 04 Sept 2013.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CS-334: Computer.
1 Fundamental of Computer Suthida Chaichomchuen : SCC
CS 111 – Sept. 15 Chapter 2 – Manipulating data by performing instructions “What is going on in the CPU?” Commitment: –Please read through section 2.3.
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
Computer Architecture and Organization
1 ICS 51 Introductory Computer Organization Fall 2009.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /08/2013 Lecture 10: MIPS Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL STATE.
CHAPTER 6 Instruction Set Architecture 12/7/
Chapter 2 CSF 2009 The MIPS Assembly Language. Stored Program Computers Instructions represented in binary, just like data Instructions and data stored.
Computer Organization CS224 Fall 2012 Lessons 7 and 8.
Chapter 2 — Instructions: Language of the Computer — 1 Memory Operands Main memory used for composite data – Arrays, structures, dynamic data To apply.
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO Session 7, 8 Instruction Set Architecture.
Introduction to Intel IA-32 and IA-64 Instruction Set Architectures.
Computer Architecture & Operations I
Computer Architecture & Operations I
Assembly language.
Instruction Set Architecture
Assembly Language Assembly Language
Morgan Kaufmann Publishers
The University of Adelaide, School of Computer Science
Computer Architecture (CS 207 D) Instruction Set Architecture ISA
BIC 10503: COMPUTER ARCHITECTURE
Instructions - Type and Format
CS170 Computer Organization and Architecture I
Systems Architecture I (CS ) Lecture 5: MIPS Instruction Set*
Systems Architecture Lecture 5: MIPS Instruction Set
Introduction to Intel IA-32 and IA-64 Instruction Set Architectures
The University of Adelaide, School of Computer Science
Computer Architecture
UCSD ECE 111 Prof. Farinaz Koushanfar Fall 2018
COMS 361 Computer Organization
COMS 361 Computer Organization
CPU Structure CPU must:
CSC 497/583 Advanced Topics in Computer Security
Systems Architecture I (CS ) Lecture 5: MIPS Instruction Set*
Instruction Set Architecture
Chapter 10 Instruction Sets: Characteristics and Functions
Presentation transcript:

Princess Sumaya University د. بســام كحـالــه Dr. Bassam Kahhaleh 4241 - Digital Logic Design 22343 Computer Organization & Design د. بســام كحـالــه Dr. Bassam Kahhaleh Dr. Bassam Kahhaleh

Princess Sumaya University 4241 - Digital Logic Design 22343 - Computer Organization & Design Chapter 2: Instructions: Language of the Computer Dr. Bassam Kahhaleh

Basic Computer Organization The 5 Classic Components of a Computer The Basic Hardware/Software Interface The Stored-Program Concept 9:51 AM

Assembly Language Instruction: Instructions Assembly Language Instruction: Perform: a = b + c ADD a, b, c ; a  b + c What are ‘a’, ‘b’ and ‘c’? The storage concept: Registers (R1, R2 …) Memory Sequence of Instructions: Perform: a = (b + c) – (d + e) 9:51 AM

Design Principle 1: Simplicity Favors Regularity Instructions Design Principle 1: Simplicity Favors Regularity Fixed number of operands Arithmetic operations on registers only Design Principle 2: Smaller is Faster Small number of registers  faster hardware Fill registers with data Not enough registers to hold all data Simpler hardware 9:51 AM

Data Transfer Instructions Memory Operands Data Transfer Instructions Memory Address (Location) Slower than registers Lower bandwidth than registers Keep commonly used data in registers and avoid Spilling Registers. Load and Store Instructions 1 2 • Memory 9:51 AM

Design Principle 3: Make the Common Case Fast Operands Design Principle 3: Make the Common Case Fast Constant operands: Perform a = b + 4 Immediate operands Memory b 4 • 21 22 9:51 AM

Memory Access Height and Width Address & Data Read & Write 1 KB 4 KB 16 Locations  1 K Locations  1 M Locations  Read & Write 1024 8 bit 1 KB Memory 4301 0001 • 21 22 9:51 AM

Stored Program Architecture Memory 1024 x 32 Instructions (Program) Opcode Operands Operands (Data) Binary Operand 9:51 AM

Memory Organization Byte Access Word Access • 20 Byte 21 Byte • 20 Byte Byte Byte Byte 24 Byte Byte Byte Byte 9:51 AM

Memory Organization Mixed Access Little Indian Odd/Even Alignment DATA • 20 Byte Byte 22 Byte Byte MSB DATA BUS LSB 9:51 AM

Memory Organization Mixed Access Alignment! DATA BUS • 20 Byte Byte Byte Byte 24 Byte Byte Byte Byte MSB DATA BUS LSB 9:51 AM

Instruction Representation Instruction Format Machine Language & Machine Code Sequence of instructions Design Principle 4: Good Design Demands Good Compromises Assembly Language Opcode Operands ADD R1, R2, 47 5 1 2 2F 0101 0001 0010 00101111 5 1 2 2 F Machine Language 9:51 AM

Operations (Opcodes) Arithmetic Logic 1 0 1 0 0 1 1 1 Add, Sub, Mul, Div, Inc, Dec … Logic Shift Logical & Arithmetic Right & Left Bitwise AND, OR, XOR Complement (NOT) 1 0 1 0 0 1 1 1 1 0 1 0 0 1 1 1 9:51 AM

Shift Operation for Multiplication Operations (Opcodes) Shift Operation for Multiplication Multiply by 2 Shift Left 1 bit Unsigned Binary 2’s Complement Multiply by 10 BCD Shift Left 4 bits 0 0 0 0 0 1 0 0 1 1 1 1 1 1 0 1 0 0 0 0 0 1 0 0 1 0 0 1 9:51 AM

Making Decisions (Conditional Branches) Control Instructions Making Decisions (Conditional Branches) Perform if (i == j) then a = b + c else a = b – c i == j ? a = b + c a = b – c 9:51 AM

Transferring Execution Control Instructions Transferring Execution Unconditional Branch or Jump Call Subroutine Software Interrupt • • 9:51 AM

Intel Architecture IA-32 Year Microprocessor Address Bits Data Bits Transistors 1971 4004 12 4 2,300 1974 8080 16 8 6,000 1978 8086 20 16/8 29,000 1982 80286 24 134,000 1985 80386 32 32/16/8 275,000 1989 80486 1,200,000 1992 Pentium 3,100,000 1995 Pentium Pro 5,500,000 1997 Pentium II 7,500,000 1999 Pentium III 9,500,000 2001 Pentium 4 42,000,000 2004 Pentium 4 EM64T 64 125,000,000 2008 Core 2 Quad 820,000,000 9:51 AM

Intel Architecture IA-32 General-Purpose Registers (GPRs) Segment Registers Segmented Memory Addressing (Real Mode) Also: “Accumulator” EAX EAX AX AL AX AL “Base” EBX BX BL “Count” ECX CX CL “Division” EDX DX DL “String Source” ESI SI “String Destination” EDI DI CS SS DS 9:51 AM

Intel Architecture IA-32 Variable Length Instruction Format 9:51 AM

Chapter 2 The End