Processor Organization and Architecture

Slides:



Advertisements
Similar presentations
Instruction Set Design
Advertisements

Computer Organization and Architecture
Computer Organization and Architecture
CSCI 4717/5717 Computer Architecture
Chapter 11 Instruction Sets
Instruction Set Architecture & Design
Chapter 16 Control Unit Implemntation. A Basic Computer Model.
Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science.
CH12 CPU Structure and Function
Processor Organization and Architecture Module III.
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
Machine Instruction Characteristics
Module 3 Instruction Set Architecture (ISA): ISA Level Elements of Instructions Instructions Types Number of Addresses Registers Types of Operands.
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
Fetch-execute cycle.
COMPUTER ORGANIZATION AND ASSEMBLY LANGUAGE Lecture 19 & 20 Instruction Formats PDP-8,PDP-10,PDP-11 & VAX Course Instructor: Engr. Aisha Danish.
ECEG-3202 Computer Architecture and Organization Chapter 6 Instruction Sets: Addressing Modes and Formats.
Chapter 11 Instruction Sets: Addressing Modes and Formats Gabriel Baron Sydney Chow.
Chapter 10 Instruction Sets: Characteristics and Functions Felipe Navarro Luis Gomez Collin Brown.
Instruction Sets: Addressing modes and Formats Group #4  Eloy Reyes  Rafael Arevalo  Julio Hernandez  Humood Aljassar Computer Design EEL 4709c Prof:
COMPUTER ORGANIZATION AND ASSEMBLY LANGUAGE Lecture 21 & 22 Processor Organization Register Organization Course Instructor: Engr. Aisha Danish.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Chapter 6: Computer Components Dr Mohamed Menacer Taibah University
Addressing Modes and Formats
What is a program? A sequence of steps
PART 4: (1/2) Central Processing Unit (CPU) Basics CHAPTER 12: P ROCESSOR S TRUCTURE AND F UNCTION.
Processor Organization
Processor Organization and Architecture Module III.
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
Lec 4-2 Five operations of the machine cycle Fetch- fetch the next program instruction from memory. (PC+1); instruction to IR Decode- decode the instruction.
Computer Architecture
Functions of Processor Operation Addressing modes Registers i/o module interface Memory module interface Interrupts.
Computer Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
Chapter 12 Processor Structure and Function. Central Processing Unit CPU architecture, Register organization, Instruction formats and addressing modes(Intel.
Displacement (Indexed) Stack
William Stallings Computer Organization and Architecture 6th Edition
Immediate Addressing Mode
A Closer Look at Instruction Set Architectures
Architecture Review Instruction Set Architecture
Chapter 4 The Von Neumann Model
Alvaro Mauricio Peña Dariusz Niworowski Frank Rodriguez
William Stallings Computer Organization and Architecture 8th Edition
Chapter 4 The Von Neumann Model
Processor Organization and Architecture
BIC 10503: COMPUTER ARCHITECTURE
Central Processing Unit
Computer Organization and ASSEMBLY LANGUAGE
Computer Organization and ASSEMBLY LANGUAGE
ECEG-3202 Computer Architecture and Organization
Ghifar Parahyangan Catholic University August 22, 2011
BIC 10503: COMPUTER ARCHITECTURE
ECEG-3202 Computer Architecture and Organization
Computer Architecture
Computer Architecture
Computer Architecture
ECEG-3202 Computer Architecture and Organization
The Stored Program Computer
CPU Structure CPU must:
CPU Structure and Function
William Stallings Computer Organization and Architecture 8 th Edition Chapter 11 Instruction Sets: Addressing Modes and Formats.
Computer Architecture
Chapter 10 Instruction Sets: Characteristics and Functions
Chapter 4 The Von Neumann Model
Presentation transcript:

Processor Organization and Architecture Module III Processor Organization and Architecture

Instruction Formats Defines the layout of bits in an instruction Includes opcode & (implicit or explicit) operand(s) Usually more than one instruction format in an instruction set

Common Instruction Formats Four of them are Zero-address instruction One-address instruction Two-address instruction Three-address instruction

Zero-address instruction 0 (zero) addresses All addresses implicit Example: stack push a push b pop c 10

One-address instruction Implicit second address : Usually a register (accumulator) E.g. Add C // C=C+A(accumulator) 9

Two-address instruction 2 addresses One address doubles as operand and result a = a + b Reduces length of instruction Requires temporary storage to hold some results 8

Three-address instruction 3 addresses Operand 1, Operand 2, Result a = b + c; May be a forth - usually implicit Not common Needs very long words to hold everything 7

Key Design Issues of an Instruction Format

Instruction Length Programmers want More opcodes (to write short programs) More addressing modes (for flexibility in implementation of certain functions) Greater address range (more main memory) This results in longer instruction length (wasteful if 64 bit is used) Instruction length should be equal to memory transfer length or a multiple of it

Allocation of Bits More opcodes means more bits in the opcode field, which reduces the number of bits available for addressing Refinement : Variable length opcodes There is a minimum opcode length but for some opcodes, additional operations are specified by additional bits

Instruction Cycle Fetch: read the next instruction from memory to processor PC holds the address of the instruction to be fetched Unless told otherwise, PC is always incremented by 1 after each instruction fetch

Instruction Cycle Execute: Interpret the opcode and perform the indicated operation The fetched instruction is loaded into IR and performs the required action . Action falls into any of the following 4 categories Processor – Memory : Data transfer to/from memory Processor – I/O : Data transfer to/from I/O Data Processing Control : alter the sequence of execution

Indirect Cycle The operand specifier indicates whether an operand need to be fetched from memory which results in indirect addressing.

Instruction Cycle

A hypothetical machine

Instruction Cycle

Instruction Cycle State Diagram (without Interrupts)

Instruction Cycle State Diagram (without Interrupts) Address of the next instruction is calculated

Instruction Cycle State Diagram (without Interrupts) Reads instruction from memory

Instruction Cycle State Diagram (without Interrupts) Determines operation & operands to be used

Instruction Cycle State Diagram (without Interrupts) Determines address of operand

Instruction Cycle State Diagram (without Interrupts) Fetch operand from memory or I/O

Instruction Cycle State Diagram (without Interrupts) Perform the operation

Instruction Cycle State Diagram (without Interrupts) Determines address of result

Instruction Cycle State Diagram (without Interrupts) Store result in memory