Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

Machine cycle.
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
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.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Computer Organization. This module surveys the physical resources of a computer system. –Basic components CPUMemoryBus I/O devices –CPU structure Registers.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 14 Inside.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Computer Systems. Computer System Components Computer Networks.
LAB 9 Simulator Chap 14 REED. Datapath Simulator accompanying the text is a datapath simulator a.k.a. the Knob & Switch Computer developed by Grant Braught.
Computer ArchitectureFall 2007 © October 31, CS-447– Computer Architecture M,W 10-11:20am Lecture 17 Review.
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.
Inside The CPU. Buses There are 3 Types of Buses There are 3 Types of Buses Address bus Address bus –between CPU and Main Memory –Carries address of where.
The Computer Processor
Lecture 24: CPU Design Today’s topic –Multi-Cycle ALU –Introduction to Pipelining 1.
KEY COMPONENTS OF A COMPUTER SYSTEM ANDREW LOLAVAR.
CPU Fetch/Execute Cycle
Computer Organization - Syscalls David Monismith Jan. 28, 2015 Based on notes from Patterson and Hennessy Text and from Dr. Bill Siever.
Computer Organization Computer Organization & Assembly Language: Module 2.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Presented by: Sergio Ospina Qing Gao. Contents ♦ 12.1 Processor Organization ♦ 12.2 Register Organization ♦ 12.3 Instruction Cycle ♦ 12.4 Instruction.
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.
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
The Central Processing Unit (CPU) and the Machine Cycle.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
System Unit Working of CPU. The CPU CPU The CPU CPU stands for central processing unit. it is brain of computer It is most important component of the.
Dale & Lewis Chapter 5 Computing components
HOW COMPUTERS WORK THE CPU & MEMORY. THE PARTS OF A COMPUTER.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Chapter 14 Inside the Computer - the von Neumann Architecture
Chapter 10: Computer systems (1)
Systems Architecture I
Chapter 2 – Computer hardware
Data Representation – Instructions
The fetch-execute cycle
Lecture 3 CPU - Data Path for Branches
Systems Architecture II
The Little Man Computer
Systems Architecture I
PIPELINING Santosh Lakkaraju CS 147 Dr. Lee.
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Computer Concept and Practice
Systems Architecture I
A Top-Level View Of Computer Function And Interconnection
Information Representation: Machine Instructions
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Instruction execution and ALU
Computer Architecture
Sec (2.3) Program Execution.
Presentation transcript:

Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text

Single and Multi-Cycle CPUs Recall that a CPU is made up of multiple components: Program Counter and Instruction Register – Program Counter - keeps track of the next instruction to load from instruction memory – Instruction Register - stores the instruction to execute These represent the fetch step. Control Unit – This portion of the CPU works to decode the instruction and guide the other portionsof the CPU as to the current tasks to carry out It also ensures the fetch, decode, and execute cycle occurs in the proper order.

Computer Components Arithmetic Logic Unit (ALU), branching logic, and load/store logic – This portion of the CPU works to execute the delegated instructions provided by the Control Unit Registers - these store data on the CPU Each CPU component plays an important role in the fetch-decode- execute cycle Recall that both the program counter and portions of the execute cycle interact with memory The Program Counter and the Instruction Register interact with instruction memory. Instruction memory is the portion of memory where instructions are stored. During the execute step, the CPU may interact with data memory as well.

Memory An example of memory is provided on the class website in a JLS file. Notice that memory is provided via a number of words of a particular size. For example a memory may have a word size of 8 bits (1 byte) and there might be 64 words in memory. That memory can then be addressed using 6 bytes since there are 2^6 = 64 possible values for a 6 byte unsigned binary value. Memory is accessed by providing an address and providing inputs to specify whether a reador a write is occurs via the WE, CS, and OE inputs. A write occurs if WE and CS are both zero. A read occurs if CS and OE are both zero. An example of a memory is provided on the examples page of the class website.

CPU Cycle Notice that there are multiple steps in the CPU cycle. Provided we can transition from one step to the next and not need the data from the previousstep after we have made the transition, it will be possible to have more than one instruction in the CPU at the same time FetchDecodeExecute Notice that if we have the situation above where instructions are fed to the CPU in a pipelined manner, we may have as many as three instructions in the CPU at once. One could be in the fetch state, one in the execute and one in decode. In the next lecture, we will see how this is possible.