Computer Organization

Slides:



Advertisements
Similar presentations
CH10 Instruction Sets: Characteristics and Functions
Advertisements

Instruction Set Design
INSTRUCTION SET ARCHITECTURES
There are two types of addressing schemes:
CSC 3650 Introduction to Computer Architecture Time: 3:30 to 6:30Meeting Days: WLocation: Oxendine 1237B Textbook: Essentials of Computer Architecture,
Computer Organization and Architecture
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
Memory - Registers Instruction Sets
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
State Machines Timing Computer Bus Computer Performance Instruction Set Architectures RISC / CISC Machines.
Overview The von Neumann Machine - the programmable digital computer Introducing the LC-3 Computer - A “toy” computer for us to learn from Computer machine.
What is an instruction set?
©UCB CPSC 161 Lecture 5 Prof. L.N. Bhuyan
Part II: Addressing Modes
INSTRUCTION SET OF MICROPROCESSOR 8085
Lecture 18 Last Lecture Today’s Topic Instruction formats
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Introduction to Microprossor.
Basic Operational Concepts of a Computer
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,
Machine Instruction Characteristics
Instruction Set Architecture
Assembly Language Issues – Page 1CSCI 4717 – Computer Architecture CSCI 4717/5717 Computer Architecture Topic: Assembly Language Issues Reading: Stallings,
L/O/G/O The Instruction Set Chapter 9 CS.216 Computer Architecture and Organization.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CS-334: Computer.
Homework Problems 1. M1 runs the program P in 1.4 * 9 * ns or ns M2 runs the program P in 1.6*9800*10ns or ns Hence M2 is faster by.
Instruction Set Architecture The portion of the machine visible to the programmer Issues: Internal storage model Addressing modes Operations Operands Encoding.
Computer Architecture and Organization
26-Nov-15 (1) CSC Computer Organization Lecture 6: Pentium IA-32.
Computer Architecture EKT 422
EEL5708/Bölöni Lec 8.1 9/19/03 September, 2003 Lotzi Bölöni Fall 2003 EEL 5708 High Performance Computer Architecture Lecture 5 Intel 80x86.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
What is a program? A sequence of steps
Group # 3 Jorge Chavez Henry Diaz Janty Ghazi German Montenegro.
Ass. Prof. Dr Masri Ayob TK 2123 Lecture 14: Instruction Set Architecture Level (Level 2)
Instruction Sets. Instruction set It is a list of all instructions that a processor can execute. It is a list of all instructions that a processor can.
Instruction Sets: Characteristics and Functions  Software and Hardware interface Machine Instruction Characteristics Types of Operands Types of Operations.
CSC 221 Computer Organization and Assembly Language Lecture 06: Machine Instruction Characteristics.
Computer Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
Instruction sets : Addressing modes and Formats
Overview of Instruction Set Architectures
William Stallings Computer Organization and Architecture 6th Edition
Immediate Addressing Mode
Chapter 11 Instruction Sets
A Closer Look at Instruction Set Architectures
Alvaro Mauricio Peña Dariusz Niworowski Frank Rodriguez
Introduction to 8085 Instructions
Microcomputer Programming
A Closer Look at Instruction Set Architectures: Expanding Opcodes
Computer Organization and Design
Computer Organization and Assembly Language (COAL)
Processor Organization and Architecture
CS170 Computer Organization and Architecture I
Central Processing Unit
Computer Organization and ASSEMBLY LANGUAGE
Chapter 8 Central Processing Unit
ECEG-3202 Computer Architecture and Organization
ECEG-3202 Computer Architecture and Organization
Introduction to Micro Controllers & Embedded System Design
Chapter 9 Instruction Sets: Characteristics and Functions
Other ISAs Next, we’ll first we look at a longer example program, starting with some C code and translating it into our assembly language. Then we discuss.
Other ISAs Next, we’ll first we look at a longer example program, starting with some C code and translating it into our assembly language. Then we discuss.
ECEG-3202 Computer Architecture and Organization
COMPUTER ORGANIZATION AND ARCHITECTURE
Chapter 10 Instruction Sets: Characteristics and Functions
Presentation transcript:

Computer Organization CSC 405 Instruction Sets and Addressing Modes

Characteristics of Machine Instructions The operation of the CPU is determined by the instructions is executes. The collection of different instructions that the CPU can execute is referred to as the CPU’s instruction set. In the VSC we have 8 instructions which are sufficient to emulate any computation. Limiting ourselves to only these instructions makes the hardware design of the VSC very simple (hence the name Very Simple Computer), but it also makes the implementation of programs very impractical. Let’s compare the VSC instruction set with real computers. Types of Operations Data Processing - arithmetic and logic instructions performed mainly on registers Data Storage - memory instructions for moving data between memory and registers Data Movement - I/O instructions to move data and programs between memory and user Control - test and branch instructions for subroutine jump and conditional statements

Number of Addresses An instruction can refer to a different number of addresses dependent on the operation being performed. ADD A Acc <- Acc + A ADD B,C B <- B + C ADD A,B,C A <- B + C Using a stack register, we can also implement zero address instructions ADD T <- T + T-1 3 + 5 3 POP 3 5 POP 5 5 PUSH 8 2 2 2 2 6 6 6 6

Types of Operands Operands Addresses Characters Logical Data Numbers often represented in the same format Integer/Fixed Point Floating Point Decimal Base 10

Pentium II Instructions The Pentium II provides a large number of operation types Data Movement Arithmetic Logical Control Transfer String Operations HLL Support Flag Control Segment Register Protection Cache Management MOV, PUSH ADD, MUL AND, SHL JMP, LOOPE MOVS BOUND STC WAIT, HLT LSL, VERW INVD

Pentium II MMX Instructions The MMX instruction set was added to the Pentium II in 1996. These instructions support multimedia tasks by providing a more efficient transfer and execution of instructions. Using the SIMD model (Flynn’s Categorization) MMX instructions permit the same operation to be performed on multiple data elements in parallel. Multimedia applications involve the use of a large number of relatively small data elements (e.g. 1 byte = 1 pixel, 1 byte = 1 sound sample, 1 byte = 1 character). MMX defines three new data types: packed byte - 8 bytes packed into a 64-bit data element packed word - 4 16-bit words packed into 64-bits packed doubleword - 2 32-bit doublewords packed into 64-bits MMX provides 56 new instructions that operate on these data types.

Addressing Modes The address fields in a typical instruction are small compared to the range of addresses we need to access. In order to achieve the conflicting goals of large address space and small addresses, a number of addressing modes have been developed: Immediate Addressing - the operand is present in the instruction and there is no memory reference Direct Addressing - the address field contains the actual address in memory Indirect Addressing - the address field refers to the location in memory where the actual address is stored Register Addressing - this is direct addressing except that the address field refers to a register rather than a location in memory Register Indirect Addressing - the address field refers to a register containing the address to a location in memory Displacement Addressing - direct addressing in which the actual address is the address in the instruction plus the contents of a register Relative Addressing - same as displacement addressing with PC as the register Stack Addressing - implied register indirect addressing in which the top two stack values are used according the the op-code of the stack instruction