COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012.

Slides:



Advertisements
Similar presentations
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Advertisements

CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#3) By Dr. Syed Noman.
CBP Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley.
Azir ALIU 1 What is an assembly language?. Azir ALIU 2 Inside the CPU.
CBP Comp 1017 Digital Technologies1 Let’s make a Computer.
Addressing Modes Instruction – Op-code – Operand Addressing mode indicates a way of locating data or operands. – Any instruction may belong to one or more.
1 Homework Reading –Professional Assembly Language, pp 17-32, Continue work on mp1 –Questions? Lab with your assigned section this week.
ICS312 Set 3 Pentium Registers. Intel 8086 Family of Microprocessors All of the Intel chips from the 8086 to the latest pentium, have similar architectures.
Processor Types And Instruction Sets Barak Perelman CS147 Prof. Lee.
The 8086 Microprocessor The 8086, announced in 1978, was the first 16-bit microprocessor introduced by Intel Corporation 8086 is 16-bit MPU. Externally.
CPU Fetch/Execute Cycle
Basic Operational Concepts of a Computer
Monday, October 4 Assignment(s) due: Assignment #5: COMPLEMENT ARITHMETIC Assignment #6: DEBUG EXERCISES Quiz(zes) due:Quiz #5: Base Arithmetic Quiz #6.
An Introduction to 8086 Microprocessor.
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Computing hardware CPU.
Lecture 8 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2013.
CBP 2009Comp 3014 The Nature of Computing 1 Choices in Designing an ISA Uniformity. Should each instruction –Be the same length (in bits or bytes?) –Take.
Fetch-execute cycle.
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE LECTURE # 4 BY MUHAMMAD JAFER 1.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
8086 Internal Architecture
Computer Organization 1 Instruction Fetch and Execute.
Chapter 2 Parts of a Computer System. 2.1 PC Hardware: Memory.
CBP Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley.
Computers organization & Assembly Language Chapter 1 THE 80x86 MICROPROCESSOR.
Block diagram of 8086.
Intel 8086 (8088) Microprocessor Structure
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
INTRODUCTION TO INTEL X-86 FAMILY
CBP 2002ITY 270 Computer Architecture1 Module Structure Whirlwind Review – Fetch-Execute Simulation Instruction Set Architectures RISC vs x86 How to build.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Microprocessor Fundamentals Week 2 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
CPUz 4 n00bz.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
1 x86 Programming Model Microprocessor Computer Architectures Lab Components of any Computer System Control – logic that controls fetching/execution of.
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
Addressing Modes Instruction – Op-code – Operand Addressing mode indicates a way of locating data or operands. – Any instruction may belong to one or more.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
Homework Reading Lab with your assigned section starts next week
COMP 1321 Digital Infrastructure
An Introduction to 8086 Microprocessor.
Computing Systems Organization
CPU Organisation & Operation
Introduction to 8086 Microprocessor
8086 MICROPROCESSOR ARCHITECTURE & SEGMENTATION
8086 Microprocessor.
Computer Organization & Assembly Language Chapter 3
Lecture on Microcomputer
Intel 8086 MICROPROCESSOR Architecture.
Homework Reading Continue work on mp1
Calculator in assembly language
The fetch-execute cycle
Introduction to Assembly Language
BIC 10503: COMPUTER ARCHITECTURE
8086 Registers Module M14.2 Sections 9.2, 10.1.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Intel 8080 Processor The 8080 was an 8-bit processor
COMP 1321 Digital Infrastructure
COMP 1321 Digital Infrastructure
Computer Architecture CST 250
Unit-I 80386DX Architecture
COMP 1321 Digital Infrastructure
Intel 8086.
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Computer Architecture
Microprocessor Lecture 7 (8086 Registers).
Presentation transcript:

COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012

Week 3: The Fetch-Execute Cycle n n Explain the instruction set of a typical CPU n n Understand the sequential way a CPU works, using its instruction set n n Understand how registers and memory addresses are used to process a CPU instruction and store the results

CPUs and the SAM n SAM designed to allow you to watch what happens when a CPU works n CPU very, very, very fast n Processes one instruction at a time n Instructions can require several cycles

What is “Processing”? n Usually calculations:  need data input »from register »from external memory  need to store output »from register »from external memory n Could also be a command without data

CPU types n Most frequently used:  Intel 8086 family  Motorola family  ARM (many mobile phones) n We’ll focus on Intel 8086 family  dates back to original IBM PC…

Registers n Tiny memory stores inside the CPU  usually containing one word of memory n Examples here show an 8-bit word (as used with original 8080 chip) n Typical registers:  general purpose data: AX, BX, CX, DX  specific use e.g. »program counter: instruction address in memory »stack pointer…

Data and Addressing n A general purpose register could contain  data  an address that points to data n Needs to be a way to distinguish between them  AX, 37 – move “37” into register  AX, [37] – move data contain in address 37 into register

8086 in practice n General Purpose registers 16-bit  Each gen register split into upper & lower byte AH AL BL BH CH DH CL DL AX BX CX DX upper byte lower byte

Fetch-Execute Cycle 1. Fetch instruction from memory 2. Decode the instruction and read any registers 3. Do any ALU operations (execute units) 5. Write back results to registers (Organization and Control) add ax, bx 4. Do any Memory Access ALU <- ax ALU <- bx ax + bx (Data cache) ax <- ALU None needed

add ax, bx add ax bx Fetch-Exec : State 1 Instruction Fetch AX BX

Fetch-Exec : State 2 Decode, Register Operations add ax, bx add axbx AX BX

Fetch-Exec : State 3 ALU Operation add ax, bx add axbx AX BX 3 1 4

Fetch-Exec : State 4 Memory Access add ax, bx add axbx AX BX 3 1 4

Fetch-Exec : State 5 Register Write add ax, bx add axbx BX

Fetch-Execute Cycle 1. Fetch instruction from memory 2. Decode the instruction and read any registers 3. Do any ALU operations (execute units) 5. Write back results to registers (Organization and Control) mov ax, [1] 4. Do any Memory Access Read the ‘1’ Put ‘1’ into MAR Data into ax Read memory at addr ‘1’

mov ax, [1] mov ax Fetch-Exec : State 1 Instruction Fetch

mov ax, [1] mov ax Fetch-Exec : State 2 Decode, Register Operations

mov ax, [1] mov ax Fetch-Exec : State 3 ALU Operation

mov ax, [1] mov ax Fetch-Exec : State 4 Memory Access

mov ax, [1] mov ax Fetch-Exec : State 5 Register Write

8088: Brains of the IBM PC

Inside the 8088 address bus address adder gen registers External buses ALU

Fetch 2.Decode 3.ALU 4.Mem Ops 5.Reg Write Pentium

So THAT’S how it all works! now you try it on SAM2… Next week: a focus on writing programs and i/o