Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.

Slides:



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

Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
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.
Overview The von Neumann Machine - the programmable digital computer Introducing the LC-3 Computer - A “toy” computer for us to learn from Computer machine.
Overview von Neumann Model Components of a Computer Some Computer Organization Models The Computer Bus An Example Organization: The LC-3.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
Basic Operational Concepts of a Computer
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computer Science 210 Computer Organization The von Neumann Architecture.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 4 The Von Neumann Model Basic components Instruction processing.
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
Chapter 4 The Von Neumann Model
CPU How It Works. 2 Generic Block Diagram CPU MemoryInputOutput Address Bus Data Bus.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Introduction to Computer Engineering CS/ECE 252, Fall 2009 Prof. Mark D. Hill Computer Sciences Department University of Wisconsin – Madison.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture And Organization UNIT-II General System Architecture.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 4 The Von Neumann Model Basic components Instruction processing.
Computer Science 101 Computer Systems Organization.
Fetch-execute cycle.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
Dale & Lewis Chapter 5 Computing components
Von Neumann Model Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens The Stored Program Computer 1945: John von Neumann –
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.
Chapter 4 The Von Neumann Model
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
CPU Lesson 2.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Computer Organization and Machine Language Programming CPTG 245
The Stored Program Computer
Chapter 4 The Von Neumann Model
Computer Science 210 Computer Organization
Chapter 4 The Von Neumann Model
Introduction to Computer Engineering
Computer Architecture
Chapter 4 The Von Neumann Model
The Processor and Machine Language
Chapter 4 The Von Neumann Model
Computer Science 210 Computer Organization
Functional Units.
COMS 161 Introduction to Computing
Introduction to Computer Engineering
The Von Neumann Model Basic components Instruction processing
Basic Computer Organization
Chapter 5: Computer Systems Organization
Chapter 4 The Von Neumann Model
The Stored Program Computer
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Basic components Instruction processing
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.
Introduction to Computer Engineering
Introduction to Computer Engineering
Introduction to Computer Engineering
Introduction to Computer Engineering
Chapter 4 The Von Neumann Model
Presentation transcript:

Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing

4 - 2 Putting it all together The goal:  Turn a theoretical device - Turing’s Universal Computational Machine - into an actual computer...  … interacting with data and instructions from the outside world, and producing output data. Smart building blocks:  We have at our disposal a powerful collection of combinational and sequential logic devices. Now we need a master plan...

4 - 3 The von Neumann Model - 1  Memory: holds both data and instructions  Processing Unit: carries out the instructions  Control Unit: sequences and interprets instructions  Input: external information into the memory  Output: produces results for the user Memory Processing Unit Input Output MARMDR ALUTEMP Control Unit PCIR (keyboard) (monitor)

4 - 4 The von Neumann Model - 2 Memory  Each location has an address and contents  Address: bit pattern that uniquely identifies a memory location  Contents: bit pattern stored at a given address.  analogy: p.o. boxes have fixed numbers, but changing contents.  Address Space:  The total number of memory locations (“boxes”) available.  eg. a 28 bit address provides an address space of 2 28 locations.  The LC-3 has an address space of 2 16 locations - i.e. it uses a 16 bit address.

4 - 5 The von Neumann Model - 3 Memory (continued)  Addressability (Byte vs. Word):  a word is the basic unit of data used by the processing unit, often multiple bytes; frequently, an instruction must store or retrieve an entire word with a single memory access.  Addressability refers to the number of bytes of memory referenced by a given address.  Extending the p.o. box analogy with an ISA (bus) whose word size is 2 bytes:  if we have to deliver wide envelopes, we could convert pairs of the original single-width boxes into new double-wide boxes.  or we could renumber them all, giving a single address to each of the wider boxes

4 - 6 The von Neumann Model - 4 Memory (continued)  How does processing unit get data to/from memory?  MAR: Memory Address Register  MDR: Memory Data Register To LOAD a location (A): 1.Write the address (A) into the MAR (sets up decoder circuit). 2.Send a “read” signal to the memory which moves data into the MDR. 3.Read the data from MDR. To STORE a value (X) to a location (A): 1.Write the data (X) to the MDR. 2.Write the address (A) into the MAR (sets up decoder circuit). 3.Send a “write” signal to the memory which moves the data in MDR into memory.

4 - 7 The von Neumann Model - 5 Processing Unit  Does the actual work!  Can consist of many units, each specializing in one complex function.  At a minimum, has Arithmetic & Logic Unit (ALU) and General Purpose Registers (GPRs).  The number of bits a basic Processing Unit operation can handle is called the WORD SIZE of the machine.  ALU  Performs basic operations: add, subtract, and, not, etc.  Generally operates on whole words of data.  Some can also operate on subsets of words (eg. single bits or bytes)  ADD, AND, NOT  Registers:  Fast “on-board” temporary storage for a small number of words  Holds results of functional units  has 8 (R0, …, R7)

4 - 8 The von Neumann Model - 6 Control Unit  The control unit coordinates all actions needed to execute the instruction  It fetches & decodes each instruction from memory, and sets up the appropriate inputs for the Memory, Processing, and I/O units as required.  It communicates with memory via the Program Counter (PC) and Instruction Register (IR)  PC (aka Instruction Pointer)  Holds the address of the next instruction to be fetched.  IR  Holds the instruction currently being executed.  This can be a single word, or multiple words depending on the complexity of the instruction

4 - 9 A von Neumann machine (for interest sake)

Instruction Cycle - overview Six phases of the complete Instruction Cycle  Fetch: load IR with instruction from memory  Decode: determine action to take (set up inputs for ALU, RAM, etc.)  Evaluate address: compute memory address of operands, if any  Fetch operands: read operands from memory or registers  Execute: carry out instruction  Store results: write result to destination (register or memory)