CMP 301A Computer Architecture 1 Lecture 4. 2 Outline zISA Introduction zISA Classes yStack yAccumulator yRegister memory yRegister register/load store.

Slides:



Advertisements
Similar presentations
Instruction Set Design
Advertisements

Chapter 3 Instruction Set Architecture Advanced Computer Architecture COE 501.
CS 6461: Computer Architecture Instruction Set Architecture Instructor: Morris Lancaster.
by Wannarat Computer System Design Lecture 2 Instruction Set Architecture.
1 Instruction Set Principles and Examples 游象甫. 2 Outline Introduction Classifying instruction set architectures Memory addressing Type and size of operands.
ISA Issues; Performance Considerations. Testing / System Verilog: ECE385.
1 Lecture 3: Instruction Set Architecture ISA types, register usage, memory addressing, endian and alignment, quantitative evaluation.
Lecture 3: Instruction Set Principles Kai Bu
RISC / CISC Architecture By: Ramtin Raji Kermani Ramtin Raji Kermani Rayan Arasteh Rayan Arasteh An Introduction to Professor: Mr. Khayami Mr. Khayami.
INSTRUCTION SET ARCHITECTURES
CSC 3650 Introduction to Computer Architecture Time: 3:30 to 6:30Meeting Days: WLocation: Oxendine 1237B Textbook: Essentials of Computer Architecture,
1 Registers and MAL - Part I. Motivation So far there are some details that we have ignored instructions can have different formats most computers have.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 1: Bits, bytes and a simple processor dr.ir. A.C. Verschueren.
1 CENG 450 Computer Systems and Architecture Lecture 4 Amirali Baniasadi
Operand And Instructions Representation By Dave Maung.
Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Instruction Set Architecture (ISA) for Low Power Hillary Grimes III Department of Electrical and Computer Engineering Auburn University.
Computer Organization Instruction Sets Reading: Portions of these slides are derived from: Textbook figures © 1998 Morgan Kaufmann Publishers all.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 3 - Instruction.
Operand Addressing and Instruction Representation
CPE442 Lec 3 ISA.1 Intro to Computer Architectures Instruction Set Design instruction set software hardware.
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Introduction to Microprossor.
Lecture 17 Today’s Lecture –Instruction formats Little versus big endian Internal storage in the CPU: stacks vs. registers Number of operands and instruction.
Instruction Set Design by Kip R. Irvine (c) Kip Irvine, All rights reserved. You may modify and copy this slide show for your personal use,
4-1 Chapter 4 - The Instruction Set Architecture Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring.
CPE442 Lec 3 ISA.1 Intro to Computer Architectures Instruction Set Design instruction set software hardware.
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
8.3 Stack Organization Stack: A storage device that stores information in such a manner that the item stored last is the first item retrieved. Also called.
Instruction Set Architecture
1 Copyright © 2011, Elsevier Inc. All rights Reserved. Appendix A Authors: John Hennessy & David Patterson.
CS 147 June 13, 2001 Levels of Programming Languages Svetlana Velyutina.
Instruction Set Architecture Basics. Our Progress Done with levels 0 and 1 Seen multiple examples of level 2 Ready for ISA general principles.
Chapter 4 MARIE: An Introduction to a Simple Computer.
Chapter 5 A Closer Look at Instruction Set Architectures.
Chapter 5 A Closer Look at Instruction Set Architectures.
COMPUTER ARCHITECURE INSTRUCTION SET ARCHITECTURE.
Lec 5 Basic Computer Organization
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
CDA 3101 Fall 2013 Introduction to Computer Organization
Lecture 11: 10/1/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
M. Mateen Yaqoob The University of Lahore Spring 2014.
Operand Addressing And Instruction Representation Cs355-Chapter 6.
Csci 136 Computer Architecture II – Summary of MIPS ISA Xiuzhen Cheng
Lecture 04: Instruction Set Principles Kai Bu
COMPUTER ORGANIZATIONS CSNB123 NSMS2013 Ver.1Systems and Networking1.
CS 211: Computer Architecture Lecture 2 Instructor: Morris Lancaster.
Lecture 5 A Closer Look at Instruction Set Architectures Lecture Duration: 2 Hours.
CPU performs the bulk of data processing operations CPU performs the bulk of data processing operations The CPU is made up of three parts. They are Control.
Instruction Set Architectures. Our Progress Done with levels 0 and 1 Seen multiple examples of level 2 Ready for ISA general principles.
Chapter 5 Computer Organization TIT 304/TCS 303. Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can.
Computer Organization
A Closer Look at Instruction Set Architectures
A Closer Look at Instruction Set Architectures
Computer Architecture and Organization Miles Murdocca and Vincent Heuring Chapter 4 – The Instruction Set Architecture.
A Closer Look at Instruction Set Architectures: Expanding Opcodes
William Stallings Computer Organization and Architecture 8th Edition
Computer Architecture
Instruction Set Architectures
Computer Architecture
Lecture 1 - Introduction
Processor Organization and Architecture
MARIE: An Introduction to a Simple Computer
ECEG-3202 Computer Architecture and Organization
Classification of instructions
A Closer Look at Instruction Set Architectures Chapter 5
COMS 361 Computer Organization
CPU Structure CPU must:
Instruction execution and ALU
Presentation transcript:

CMP 301A Computer Architecture 1 Lecture 4

2 Outline zISA Introduction zISA Classes yStack yAccumulator yRegister memory yRegister register/load store yMemory memory

3 Introduction - Instruction Set Architecture instruction set software hardware

4 ISA Classes ISA Classes? zStack zAccumulator zRegister memory zRegister register/load store zMemory memory Operation Input1Input2 Output

5 ISA Classes: Stack Operate on TOS, put result TOS C= A+B? PUSH A PUSH B ADD POP C Operation TOP OF STACK MEMORY

6 ISA Classes: Accumulator Accumulator : Implicit input & output. C= A+B? LOAD A - Put A in Accumulator ADD B - Add B with AC put result in AC STORE C- Put AC in C Operation Accumulator (AC) MEMORY

7 ISA Classes: Register-Memory Input, Output: Register or Memory C= A+B? LOAD R1, A ADD R3, R1, B STORE C, R3 Operation Register File MEMORY

8 ISA Classes: Register-Register LOAD/STORE ARCH. C= A+B? LOAD R1, A LOAD R2, B ADD R3, R1, R2 STORE C, R3 Operation Register File MEMORY

9 ISA Classes: Memory-Memory Input, Output: Memory C= A+B? ADD C, A, B Operation MEMORY

10 Pros/Cons of ° Register–register: 0 memory operands/instr, 3 (register) operands/instr + Simple, fixed-length instruction encoding. Simple code generation model. Instructions take similar numbers of clocks to execute –Higher instruction count than architectures with memory references in instructions. Some instructions are short and bit encoding may be wasteful. ° Register–memory +Data can be accessed without loading first. Instruction format tends to be easy to encode and yields good density. –Operands are not equivalent since a source operand in a binary operation is destroyed. Encoding a register number and a memory Address in each instruction may restrict the number of registers. Clocks per instruction varies by operand location. ° Memory–memory +Most compact. Doesn’t waste registers for temporaries. –Large variation in instruction size, especially for three-operand instructions. Also, large variation in work per instruction. Memory accesses create memory bottleneck.

11 General Purpose Registers Dominate

12 Review Question Consider the following two models: Memory-Memory (three operand, memory based) - All three operands of an instruction are in main memory. Load-Store (three operand, register based) - All operations work on the 16 registers. There is no restriction on which register can be used as operand or result. To make the memory efficiency measurable, use the following assumptions for both instruction sets: The opcode is always 1 byte (8 bits) long. _ All memory addresses are 2 bytes (16 bits) long. _ All data operands are 4 byte (32 bits) long. _ The total instruction length is a multiple of a byte. A = B + C*D; B = A + C*E; Count the number of instruction bytes that need to be fetched, as well as the number of data bytes transferred. Which model is the most efficient one in respect to the code size? Which one needs the least memory bandwidth (sum of the instruction and data transfers)?