CBP 2004-5Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc 1 21364 Itanium 2 McKinley.

Slides:



Advertisements
Similar presentations
Machine cycle.
Advertisements

CBP 2009Comp 3014 The Nature of Computing 1 Laundry Model Washer Drier Store Basket Wardrobe.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#3) By Dr. Syed Noman.
CBP Comp 1017 Digital Technologies1 Let’s make a Computer.
CSE115: Introduction to Computer Science I
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
Processor Types And Instruction Sets Barak Perelman CS147 Prof. Lee.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
CPU Fetch/Execute Cycle
Computer Organization & Assembly Language
Basic Operational Concepts of a Computer
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Lecture 8 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Chapter 1 Basic Structure of Computers. Chapter Outline computer types, structure, and operation instructions and programs numbers, arithmetic operations,
Personal Computer Adapted by Dr. Semmes from Mrs. Jungman’s Hardware Presentation and Mrs. Belisle’s Class Notes.
Computer Architecture and Organization Introduction.
ECEn 191 – New Student Seminar - Session 9: Microprocessors, Digital Design Microprocessors and Digital Design ECEn 191 New Student Seminar.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2013.
The Central Processing Unit (CPU) and the Machine Cycle.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
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.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
Introduction To Computer Architecture Jean-Michel RICHER University of Angers France January 2003.
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
CBP 2002ITY 270 Computer Architecture1 Digital Logic This Time … Control Path, Arithmetic Ops 12 a U1 34 b Last Time …
Excellence Publication Co. Ltd. Volume Volume 1.
Dale & Lewis Chapter 5 Computing components
CBP Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley.
CBP 2006Comp 4070 Concepts and Philosophy of Computing 1 Wrestling with Complex Stuff. With the Correct Approach, even the smallest guy will succeed!
Our programmer needs to do this !
Computer = ALU + Memory Registers ALU Let’s try to compute = 5 32 Go to jail and do not collect £200.
Ee314 Microprocessor Systems Dr. Mircea DABACAN Electrical Engineering & Computer Science Dept., Washington State University Office: EE/ME 504 Phone:
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012.
CBP 2002ITY 270 Computer Architecture1 Module Structure Whirlwind Review – Fetch-Execute Simulation Instruction Set Architectures RISC vs x86 How to build.
CBP 2005Comp 3070 Computer Architecture1 Last Time … All instructions the same length We learned to program MIPS And a bit about Intel’s x86 Instructions.
CSIT 301 (Blum)1 Instructions at the Lowest Level Some of this material can be found in Chapter 3 of Computer Architecture (Carter)
CSE 102 Introduction to Computer Engineering Central Processing Unit.
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.
The Processor The Main Components Arithmetic/Logic Unit (ALU) Control Unit System Clock Registers.
Control Unit Operation
COMP 1321 Digital Infrastructure
CPU Organisation & Operation
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Choices in Designing an ISA
Lecture on Microcomputer
Digital Logic Last Time … This Time … Control Path, Arithmetic Ops a
Instructions at the Lowest Level
The fetch-execute cycle
Computer Structure S.Abinash 11/29/ _02.
Intel 8080 Processor The 8080 was an 8-bit processor
COMP 1321 Digital Infrastructure
COMP 1321 Digital Infrastructure
Welcome to Architectures of Digital Systems
COMP 1321 Digital Infrastructure
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
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

CBP Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley

CBP Comp 1017 Digital Technologies2 Pentium Data Cache Code Cache Instruction Fetch Instruction Decode Execution Unit

CBP Comp 1017 Digital Technologies3 Minimalist Computer What do we need to build a computer ? “Execution Unit” (Intel) ALU (Arithmetic Logic Unit) Memory Input Output A good Name

CBP Comp 1017 Digital Technologies4 Arithmetic Logic Unit Input AInput B Output ALU Integer Execution Unit 5 32 add 1 32 sub

CBP Comp 1017 Digital Technologies5 Input AInput B Output ALU MMX instructions add bits of images together! Useful for multimedia Multimedia MMX

CBP Comp 1017 Digital Technologies add Processing Idea Nr. 1 Move data from memory Move data into memory Memory DRAM, Hard Disk.. Move data in and out of data memory

CBP Comp 1017 Digital Technologies add Processing Idea Nr.2 IP (Code Memory) mov 3 in from memory mov 2 in from memory add the two numbers mov the result to memory Instruction Memory Program Move instructions into CPU from code memory

CBP Comp 1017 Digital Technologies8 Registers Registers are high-speed memory on the CPU chip Parking places for data on the move AX and BX are used for ALU operations MAR is memory address register, here 4. So result, 6+8=14 will go into memory cell address 4 AX BX MAR

CBP Comp 1017 Digital Technologies9 Program Memory 2. High Level Language like ‘C’ 3. Assembler Instructions mov ax,[x] mov bx,[y] add ax, bx mov [w],ax w = x + y ; 1. Application Let’s consider a spreadsheet cell which adds two numbers x + y. This cell and its instruction is in memory. But it is REPRESENTED in different ways

CBP Comp 1017 Digital Technologies10 ip Data Memory Instruction Memory mar Our computer so far …

CBP Comp 1017 Digital Technologies11 SAM-2

CBP Comp 1017 Digital Technologies12 Moving data into Registers Instruction Memory mar 3 4 mov ax, [1] BX AX mov ax, [1] mov bx, [2] 7 For example …

CBP Comp 1017 Digital Technologies13 Moving data into Memory Instruction Memory mar 3 4 mov [3], ax BX AX mov [3], ax mov [0], bx 7 For example … 8 7

CBP Comp 1017 Digital Technologies14 Adding Numbers Instruction Memory mar 3 4 add ax, bx BX AX Add ax,bx 7 For example … … this means ‘ add ax to bx, put the answer in ax’

CBP Comp 1017 Digital Technologies15 I’ve never wrestled with such a complex problem before It must take a lot of organization and control !

CBP Comp 1017 Digital Technologies16 Pentium Organization and control

CBP Comp 1017 Digital Technologies17 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

CBP Comp 1017 Digital Technologies18 add ax, bx add ax bx Fetch-Exec : State 1 Instruction Fetch AX BX

CBP Comp 1017 Digital Technologies Fetch-Exec : State 2 Decode, Register Operations add ax, bx add axbx AX BX

CBP Comp 1017 Digital Technologies Fetch-Exec : State 3 ALU Operation add ax, bx add axbx AX BX 3 1 4

CBP Comp 1017 Digital Technologies Fetch-Exec : State 4 Memory Access add ax, bx add axbx AX BX 3 1 4

CBP Comp 1017 Digital Technologies Fetch-Exec : State 5 Register Write add ax, bx add axbx BX

CBP Comp 1017 Digital Technologies23 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’

CBP Comp 1017 Digital Technologies24 mov ax, [1] mov ax Fetch-Exec : State 1 Instruction Fetch

CBP Comp 1017 Digital Technologies25 mov ax, [1] mov ax Fetch-Exec : State 2 Decode, Register Operations

CBP Comp 1017 Digital Technologies26 mov ax, [1] mov ax Fetch-Exec : State 3 ALU Operation

CBP Comp 1017 Digital Technologies27 mov ax, [1] mov ax Fetch-Exec : State 4 Memory Access

CBP Comp 1017 Digital Technologies28 mov ax, [1] mov ax Fetch-Exec : State 5 Register Write

CBP Comp 1017 Digital Technologies29 Pentium Fetch 2.Decode 3.ALU 4.Mem Ops 5.Reg Write

CBP Comp 1017 Digital Technologies30 The first microprocessor Keypad Lots of Electronics LCD Display Keypad LCD Display Code Memory Programmable Electronics A dedicated design or a re- usable design

CBP Comp 1017 Digital Technologies31