CBP 2013-14Comp 1017 Digital Technologies1 Let’s make a Computer.

Slides:



Advertisements
Similar presentations
Machine cycle.
Advertisements

Chapter 1. Basic Structure of Computers
CBP 2009Comp 3014 The Nature of Computing 1 Laundry Model Washer Drier Store Basket Wardrobe.
Microprocessor.  The CPU of Microcomputer is called microprocessor.  It is a CPU on a single chip (microchip).  It is called brain or heart of the.
CBP Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley.
1 Lecture-2 CSIT-120 Spring 2001 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
CSE115: Introduction to Computer Science I
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
Stored Program Concept: The Hardware View
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Overview The von Neumann Machine - the programmable digital computer Introducing the LC-3 Computer - A “toy” computer for us to learn from Computer machine.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
1 Sec (2.3) Program Execution. 2 In the CPU we have CU and ALU, in CU there are two special purpose registers: 1. Instruction Register 2. Program Counter.
Processor Types And Instruction Sets Barak Perelman CS147 Prof. Lee.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
KEY COMPONENTS OF A COMPUTER SYSTEM ANDREW LOLAVAR.
CPU Fetch/Execute Cycle
Department of Communication Engineering, NCTU 1 Unit 6 Design and Synthesis of a RISC Store-Program Machine.
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.
ECEn 191 – New Student Seminar - Session 9: Microprocessors, Digital Design Microprocessors and Digital Design ECEn 191 New Student Seminar.
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.
Computer Architecture and the Fetch-Execute Cycle
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.
CS 111 – Sept. 15 Chapter 2 – Manipulating data by performing instructions “What is going on in the CPU?” Commitment: –Please read through section 2.3.
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 …
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.
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.
CPUz 4 n00bz.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
The Processor The Main Components Arithmetic/Logic Unit (ALU) Control Unit System Clock Registers.
Chapter 10: Computer systems (1)
COMP 1321 Digital Infrastructure
Lecture 13 - Introduction to the Central Processing Unit (CPU)
CPU Organisation & Operation
Choices in Designing an ISA
Lecture on Microcomputer
Digital Logic Last Time … This Time … Control Path, Arithmetic Ops a
Computer Architecture
Multi-Cycle CPU.
The fetch-execute cycle
Functional Units.
Computer Structure S.Abinash 11/29/ _02.
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
Sec (2.3) Program Execution.
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

CBP Comp 1017 Digital Technologies2 Let’s make a CPU

CBP Comp 1017 Digital Technologies3 Pentium

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 Multimedia MMX

CBP Comp 1017 Digital Technologies add Processing Idea Nr. 1 Move data from memory Move data into memory Data Memory 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 AX BX

CBP Comp 1017 Digital Technologies9 Registers AX BX MAR

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

CBP Comp 1017 Digital Technologies11 SAM-2

CBP Comp 1017 Digital Technologies12 Hierarchy of Programming 2. Written in HLL (C) 3. CPU executes machine code mov ax,[x] mov bx,[y] add ax, bx mov [w],ax w = x + y ; 1. Application

CBP Comp 1017 Digital Technologies13 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 Technologies14 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 Technologies15 Adding Numbers Instruction Memory mar 3 4 add ax, bx BX AX Add ax,bx 7 For example …

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

CBP Comp 1017 Digital Technologies17 Pentium Organization and control

CBP Comp 1017 Digital Technologies18 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 add ax, bx 4. Do any Memory Access ALU <- ax ALU <- bx ax + bx (Data cache) ax <- ALU None needed

CBP Comp 1017 Digital Technologies19 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 Technologies24 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 Technologies25 mov ax, [1] mov ax Fetch-Exec : State 1 Instruction Fetch

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

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

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

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

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