CBP 2005-6Comp 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
RAM (cont.) 220 bytes of RAM (1 Mega-byte) 20 bits of address Address
Advertisements

Machine cycle.
Chapter 1. Basic Structure of Computers
CBP 2009Comp 3014 The Nature of Computing 1 Laundry Model Washer Drier Store Basket Wardrobe.
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 Technologies1 Let’s make a Computer.
CSE115: Introduction to Computer Science I
Introduction to Computer Systems
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
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,
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.
Microcode Source: Digital Computer Electronics (Malvino and Brown)
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
General Concepts of Computer Organization Overview of Microcomputer.
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.
Computer Science 101 Computer Systems Organization.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
CMSC 150 PROGRAM EXECUTION CS 150: Wed 1 Feb 2012.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
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.
CBP 2002ITY 270 Computer Architecture1 Digital Logic This Time … Control Path, Arithmetic Ops 12 a U1 34 b Last Time …
Dale & Lewis Chapter 5 Computing components
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.
HOW COMPUTERS WORK THE CPU & MEMORY. THE PARTS OF A COMPUTER.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
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.
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.
1 TM 1 Embedded Systems Lab./Honam University ARM Microprocessor Programming Model.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
The Processor The Main Components Arithmetic/Logic Unit (ALU) Control Unit System Clock Registers.
Systems Architecture Keywords Fetch Execute Cycle
COMP 1321 Digital Infrastructure
Computing Systems Organization
CPU Organisation & Operation
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Choices in Designing an ISA
Lecture on Microcomputer
THE CPU i Bytes 1.1.
Digital Logic Last Time … This Time … Control Path, Arithmetic Ops a
Computer Architecture
Instructions at the Lowest Level
The fetch-execute cycle
COMP 1321 Digital Infrastructure
COMP 1321 Digital Infrastructure
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

CBP Comp 1017 Digital Technologies3 CPU Memory Keyboard VDU Computer Program (Code) 1 do this 2 do that 3 now this 4 goto 1

CBP Comp 1017 Digital Technologies4 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 Inside the CPU

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

CBP Comp 1017 Digital Technologies6 Minimalist CPU What do we need to build a CPU? “Execution Unit” ALU (Arithmetic Logic Unit) Memory (to store intermediate data) Input Output A good Name

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

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

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 Technologies11 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 Technologies12 ip Data Memory Instruction Memory mar Our computer so far …

CBP Comp 1017 Digital Technologies13 Instruction Memory A couple of extra bits Data Memory Instruction Register Memory Data Register Data Address add ax,bx 1.Line of code goes in 2.Electrical bit signals come out Energize ax Energize bx Select ALU “add"

CBP Comp 1017 Digital Technologies14 SAM-2

CBP Comp 1017 Digital Technologies15 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 Technologies16 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 Technologies17 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 Technologies18 I’ve never wrestled with such a complex problem before It must take a lot of organization and control !

CBP Comp 1017 Digital Technologies19 Pentium Organization and control

CBP Comp 1017 Digital Technologies20 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 Technologies21 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 Technologies26 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 Technologies27 mov ax, [1] mov ax Fetch-Exec : State 1 Instruction Fetch

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

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

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

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

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

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