Computer Systems 1 Fundamentals of Computing Von Neumann & Fetch Execute Cycle.

Slides:



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

Computer Architecture and the Fetch-Execute Cycle
Stored Program Architecture
D75P 34 – HNC Computer Architecture Week 10 Computer Memory. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where stated.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 14 Inside.
Computer Systems. Computer System Components Computer Networks.
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Computer Organization Prepared by:Anh Q. Vu Course:CS-147 Professor:Sin-Min Lee Date:Summer
IT Systems Memory EN230-1 Justin Champion C208 –
GCSE Computing - The CPU
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
The CPU The Central Presentation Unit Language Levels Fetch execute cycle Processor speed.
A-Level Computing#BristolMet Session Objectives#4 MUST describe the differences between the main types of primary memory SHOULD describe the function and.
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.
F1020/F1031 COMPUTER HARDWARE MEMORY. Read-only Memory (ROM) Basic instructions for booting the computer and loading the operating system are stored in.
COMPONENTS OF THE SYSTEM UNIT
Memory. Random Access Memory Defined What is memory? operating system and other system software that control the usage of the computer equipment application.
Computer Architecture Part III-A: Memory. A Quote on Memory “With 1 MB RAM, we had a memory capacity which will NEVER be fully utilized” - Bill Gates.
Atmega32 Architectural Overview
Computer Organization
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Von Neumann Architecture & Terminology & Performance Week 3.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
1 More on Computer Components Computer switches Binary number system Inside the CPU Cache memory Types of RAM Computer buses Creating faster CPUs NEXT.
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
Introduction to Computing: Lecture 4
Random access memory.
Computer Platforms Week 4: Assembly Language & Operating Systems.
© Banff and Buchan College 2007 DH2T 34 Computer Architecture 1 LO2 Lesson One Memory.
CADCAM HARDWARE.  The computing system in operation can be compared to a human being in terms of its operating characteristics.
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
Cis303a_chapt04.ppt Chapter 4 Processor Technology and Architecture Internal Components CPU Operation (internal components) Control Unit Move data and.
COMPUTER ORGANISATION I HIGHER STILL Computing Computer Systems Higher Marr College Computing Department 2002.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Assessment Covering… Von Neuman architecture Registers – purpose and use, the fetch execute cycle.
Stored Programs In today’s lesson, we will look at: what we mean by a stored program computer how computers store and run programs what we mean by the.
Stored Program A stored-program digital computer is one that keeps its programmed instructions, as well as its data, in read-write,
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Overview von Neumann Architecture Computer component Computer function
Computer operation is of how the different parts of a computer system work together to perform a task.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
What’s going on here? Can you think of a generic way to describe both of these?
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
CPU Lesson 2.
GCSE Computing - The CPU
The CPU, RISC and CISC Component 1.
Atmega32 Architectural Overview
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
CPUs, Motherboards, BIOS, fan & heatsink, internal memory
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Teaching Computing to GCSE
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Components of a CPU AS Computing - F451.
GCSE Computing - The CPU
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Chapter 4 The Von Neumann Model
Presentation transcript:

Computer Systems 1 Fundamentals of Computing Von Neumann & Fetch Execute Cycle

Computer Systems 1 ( ) Von-Neumann & Fetch Execute Von-Neumann Model Fetch Execute Cycle  Get It  Do It Follow these instructions…. Von-Neumann Bottleneck  Problems  RAM attempts to save the world! VRAM  Clean the Windows

Computer Systems 1 ( ) Von Neumann Model Logical Structure of the computer system  Routes of data transfer during processing

Computer Systems 1 ( ) Fetch Execute Cycle Defines how instructions are retrieved and carried out inside the processor (CPU) Sometimes called the Instruction Cycle or Automatic Sequence Control START Fetch next instruction from memory to CIR Increment PC Execute instruction in CIR STOP? END no yes

Computer Systems 1 ( ) Fetch Execute Cycle Fetch Stage  Copy contents of PC into MAR Value of PC presented via the address bus  Increment PC (point to next instruction)  Copy instruction from MBR into CIR via data bus Instruction retrieved from memory Placed in CIR START Fetch next instruction from memory to CIR Increment PC Execute instruction in CIR STOP? END no yes

Computer Systems 1 ( ) Fetch!

Computer Systems 1 ( ) Fetch Execute Cycle Execute Stage  Decode instruction from CIR  Run instruction in CIR May require getting data from memory  Unless current instruction is STOP, repeat cycle START Fetch next instruction from memory to CIR Increment PC Execute instruction in CIR STOP? END no yes

Computer Systems 1 ( ) Execute...

Computer Systems 1 ( ) MIPS & Hertz MIPS = Millions of Instructions per Second  How many instructions a processor can carry out each second  Old form of measurement Inaccurate Some instructions take longer than others Hz = number of complete cycles per second MHz = Millions of cycles per second  In a processor a cycle is when the state of the control lines are changed

Computer Systems 1 ( ) CPU Instructions Instruction Set  The types of instruction that a particular machine can execute  The instructions that are carried out during the Fetch Execute Cycle  Types of instruction: Arithmetic and logical calculations on data Input and output of data Changing the sequence of program execution Transferring data between memory and CPU registers Transferring data between CPU registers

Computer Systems 1 ( ) CPU Instructions Instructions are split into two parts:  Opcode (Operation Code)- the operation to be carried out  Operand- The data upon which the operation should be performed Different manufacturers - different instruction sets  Can vary in architecture  Functions will often be the same or similar but may vary in name  More advanced functions may be present Likely to vary between manufacturers  e.g.- Intel instruction set Vs. AMD instruction set

Computer Systems 1 ( ) Assembly Language Is at a level below programming languages  Eg.- C++, Java, Pascal Assembly language is converted into machine code  Machine code is raw data that would take ages for a human to decipher  This is the data and instructions which is used by the Fetch Execute Cycle

Computer Systems 1 ( ) Assembly Language Programs or sequences can be written in assembly language  Which is what is effectively done when we compile a C++ program Why write in assembly language?  Faster (direct) access to CPU  Some programs need to be written to operate at a lower level E.g.- Device Drivers

Computer Systems 1 ( ) A simple Assembly program (Honest!) org 100h mov dx,msg mov ah,9 int 21h mov ah,4Ch int 21h msg db 'Hello, World!',0Dh,0Ah,'$'

Computer Systems 1 ( ) A simple Assembly program (Honest!) org 100h mov dx,msg mov ah,9 int 21h Tells the compiler (NASM) the program will be loaded at memory address 100h Moves the address of our message (msg) into a register which is known as the DX Register (Data Register) Moves the value 9 into a register called the AH Register ‘int’ calls an ISR (interrupt service routine) “DOS Services” this is combined with contents of AH (9) to determine that we want to output a message– contents of DX (msg)

Computer Systems 1 ( ) A simple Assembly program (Honest!) mov ah,4Ch int 21h msg db 'Hello, World!',0Dh,0Ah,'$' Effectively tells the processor to stop (combines int 21h with contents of AH ). Otherwise it will try to fetch and execute the next instructions it comes to msg is a variable name (the name of out message string) db is an instruction to the compiler to use the information the follows as data Then out message ‘Hello, World!’ (note: ‘ ‘ marks) 0Dh, 0Ah – performs carriage return and line feed $ terminate string output – (int 21h & 9 in ah requirement)

Computer Systems 1 ( ) A simple Assembly program (Honest!) OK, so what does it actually do?  Output “Hello, World!” to the screen How?  Type the program into a text document and call it ‘hello.asm’  Use the NASM program This is used to compile assembly language programs  Rename the produced file as type COM ren hello hello.com  Run the program hello

Computer Systems 1 ( ) A simple Assembly program (Honest!)

Computer Systems 1 ( ) Von-Neumann Bottleneck Originally CPU & RAM ran at similar speeds  CPU development began to increase faster than RAM Fundamental problem:  CPU is faster than RAM Attempt to solve the problem:  Sophisticated RAM technologies

Computer Systems 1 ( ) Memory (RAM) Many different types of RAM  SDRAM Synchronous Dynamic RAM Synchronises with processor buses Max. approx 133 MHz Contemporary  DDR SDRAM Double Data Rate SDRAM Transfers data on both sides of the clock cycle Effectively doubles transmission rate

Computer Systems 1 ( ) Memory (RAM) Older methods:  EDO DRAM Extended Data Out DRAM  Gets the next block of memory while current block is being sent to the processor  BEDO DRAM Burst EDO RAM  Only synchronise with CPU for short time (‘bursts’) Processes four memory addresses in one go  Only supports max. 66MHz processor buses

Computer Systems 1 ( ) Memory (RAM) FPRAM  Fast Page RAM  “Page Mode Memory”  Dynamic RAM  Allows faster access to adjacent memory locations Does not always store complete addresses NVRAM  Non Volatile RAM  Retains it’s contents when power is switched off  Powered by a battery  Or uses an EEPROM chip Electrically Erasable Programmable ROM Combination of SRAM and EEPROM chips  SRAM is an NVRAM derivative

Computer Systems 1 ( ) Video Memory (VRAM) WRAM  Windows RAM Windows are large blocks of memory Supports two paths to transport data  Sends data for display as new information is being sent to the graphic adapter’s memory  Same principle as standard VRAM  Faster than ordinary VRAM because of Windowing SGRAM  Synchronous Graphic RAM Dynamic RAM Synchronise with processor buses up to 100 MHz Capable of opening two memory pages at once  Simulates dual data transmission of VRAM and WRAM Better than standard VRAM

Computer Systems 1 ( ) CS1: Week 8 What you know now:  Von-Neumann & Fetch Execute Cylcle  Stages of the F/E Cycle Retrieval Execution  Performance measurement  Instruction sets  Bottleneck remedies Types of RAM  Types of VRAM