RESOURCE GUIDE STORED PROGRAM CONCEPT. Understand how the von Neumann architecture is constructed. Understand how the von Neumann architecture works.

Slides:



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

Computer Architecture and the Fetch-Execute Cycle
CSCI N301: Fundamental Computer Science Concepts Copyright ©2004  Department of Computer & Information Science Von Neumann Architecture.
Chapter 5 Computing Components Nell Dale John Lewis.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Chapter 5: Computer Systems Organization Invitation to Computer Science, C++ Version, Third Edition Added to by S. Steinfadt - Spring 2005 Additional source.
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
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.
Computer Structure.
Invitation to Computer Science 5th Edition
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.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Computer Architecture and the Fetch-Execute Cycle
Computer Architecture and the Fetch-Execute Cycle
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Microcode Source: Digital Computer Electronics (Malvino and Brown)
CSC 3210 Computer Organization and Programming Chapter 1 THE COMPUTER D.M. Rasanjalee Himali.
Computer Architecture And Organization UNIT-II Structured Organization.
5-1 Computer Components Consider the following ad.
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
CPU How It Works. 2 Generic Block Diagram CPU MemoryInputOutput Address Bus Data Bus.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Invitation to Computer Science 6th Edition Chapter 5 Computer Systems Organization.
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
INTRODUCTION TO COMPUTING CHAPTER NO. 05. Computer System Organization The Von Neumann Architecture Memory and Cache Input/Output and Storage devices.
Computer Architecture And Organization UNIT-II General System Architecture.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Computer Science 101 Computer Systems Organization.
PHY 201 (Blum)1 Microcode Source: Digital Computer Electronics (Malvino and Brown)
Computer Architecture 2 nd year (computer and Information Sc.)
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
20 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
Dale & Lewis Chapter 5 Computing components
Chapter 5 Computer Systems Organization. Levels of Abstraction – Figure 5.1e The Concept of Abstraction.
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.
CMSC 104, Lecture 061 Stored Programs A look at how programs are executed.
Chapter 5: Computer Systems Organization Invitation to Computer Science,
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.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Computer Architecture Adapted from CS10051 originally by Professor: Johnnie Baker Computer Science Department Kent State University von Neuman model.
CPU Lesson 2.
Systems Architecture Keywords Fetch Execute Cycle
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Von Neumann architecture
Starter: Stored Program Concept (von Neumann Architecture)
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Computer Science 210 Computer Organization
Lesson Objectives A note about notes: Aims
Subject - Computer Architecture and Technology
Hook – CPU Knowledge Check
IB Computer Science Topic 2.1.1
Teaching Computing to GCSE
The Processor and Machine Language
COMS 161 Introduction to Computing
The Von Neumann Model Basic components Instruction processing
Chapter 5: Computer Systems Organization
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Basic components Instruction processing
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.
Little work is accurate
Sec (2.3) Program Execution.
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

RESOURCE GUIDE STORED PROGRAM CONCEPT

Understand how the von Neumann architecture is constructed. Understand how the von Neumann architecture works. Understand how to program in basic assembly languag e.

THE STORED PROGRAM CONCEPT Von Neumann’s proposal was to store the program instructions right along with the data The stored program concept was proposed about fifty years ago; to this day, it is the fundamental architecture that fuels computers. Think about how amazing that is, given the short shelf life of computer products and technologies…

THE STORED PROGRAM CONCEPT AND ITS IMPLICATIONS The Stored Program concept had several technical process: Four key sub-components operate together to make the stored program concept work The process that moves information through the sub-components is called the “fetch execute” cycle Unless otherwise indicated, program instructions are executed in sequential order

CONTROL UNIT The last of the four subcomponents is the Control Unit. The control unit is the part that drives the fetch and execute cycle. We mentioned in memory, a cell address is loaded into the MAR – it is the control unit that figures out which address is loaded, and what operation is to be performed with the data moved to the MDR.

FOUR SUB-COMPONENTS There are four sub-components in von Neumann architecture: Memory Input/Output (called “IO”) Arithmetic-Logic Unit Control Unit …

MEMORY THERE ARE FOUR TYPES OF MEMORY –RAM /ROM/REGISTERS/OTHERS

RAM RAM is typically volatile memory (meaning it doesn’t retain voltage settings once power is removed) RAM is an array of cells, each with a unique address A cell is the minimum unit of access. Originally, this was 8 bits taken together as a byte. In today’s computer, word-sized cells (16 bits, grouped in 4) are more typical. RAM gets its name from its access performance. In RAM memory, theoretically, it would take the same amount of time to access any memory cell, regardless of its location with the memory bank (“random” access).

ROM It gets its name from its cell-protection feature. This type of memory cell can be read from, but not written to. Unlike RAM, ROM is non-volatile; it retains its settings after power is removed. ROM is more expensive than RAM, and to protect this investment, you only store critical information in ROM …

REGISTERS There is a third, key type of memory in every computer – registers. Register cells are powerful, costly, and physically located close to the heart of computing. Among the registers, several of them are the main participants in the fetch execute cycle.

OTHERS Modern computers include other forms of memory, such as cache memory. memory types exist at different levels The study of memory organizations and access schemes is an innovative one within Computer Science.

MEMORY OPERATIONS Two basic operations occur within this operation : a fetch operation, and a store. The fetch operation: A cell address is loaded into the MAR. The address is decoded, which means that through circuitry, a specific cell is located. The data contents contained within that cell is copied into another special register, called a Machine Data Register (MDR). This is a non-destructive operation – that is, the data contents are copied, but not destroyed

STORE OPERATION The fetch is a read operation; the store is a write operation In the store, the address of the cell into which data is going to be stored is moved to the MAR and decoded. Contents from yet another special register, called an accumulator, are copied into the cell location (held in the MAR). This operation is destructive, which means that whatever data was originally contained at that memory location is overwritten by the value copied from the accumulator.

THE ALU The third component in the von Neumann architecture is called the Arithmetic Logic Unit. This is the subcomponent that performs the arithmetic and logic operations for which we have been building parts. The ALU is the “brain” of the computer It keeps the special memory locations, called registers, of which we have already mentioned The ALU is important enough that we will come back to it later, For now, just realize that it contains the circuitry to perform addition, subtraction,multiplication and division, as well as logical comparisons (less than, equal to and greater than).

CONTROL UNIT The last of the four subcomponents is the Control Unit. The control unit is the unit that drives the fetch and execute cycle. We did mention that in memory, a cell address is loaded into the MAR – it is the control unit that figures out which address is loaded, and what operation is to be performed with the data moved to the MDR.

OTHER RESOURCE NEEDS ENGINEERING NEEDS MEMORY LOCATION DECODER CIRCUITS MULTIPLEXOR CIRCUITS

WHAT WE HAVE DONE SO FAR We have been going through the von Neumann architecture of 4 sub-components. We have figured out how to build the appropriate circuitry to perform arithmetic and logic operations on the data contained at specific memory locations. The mastermind behind these final pieces of our operational model is the Control Unit It is the Control Unit that fuels the stored program concept To do its job, the Control Unit has several tools

Lets take a look at some flow chart examples. We will do a simple Decoder Exercise and build a small decoder circuit Let us imagine a computer with 4 memory cells in RAM, Then our formula will be : 2 n, thus n = 2 so that 2 n =4. The MAR will need to be N cells big, and the biggest number it would have to hold is the address range, 2 n -1=3. Now let us build the decoder circuit Let us Design a circuit with 2 input lines (a, b) and 4 output lines (d 0,d 1,d 2,d 3 ) The output lines are uniquely high if only the following conditions are met: d 0 is high IFF both inputs are low d 1 is high IFF a is low and b is high d 2 is high IFF a is high and b is low d 3 is high IFF both a and b are high

Let us go through the sub expressions In our output chart with high values (1’s), we have the following a,b input conditions: d 0 = ~a * ~b d 1 = ~a * b d 2 = a * ~b d 3 = a *

CIRCUIT DIAGRAM – DECODER CIRCUIT aabb d0d0d0d0 d0d0d0d0 d1d1d1d1 d1d1d1d1 d2d2d2d2 d2d2d2d2 d3d3d3d3 d3d3d3d3 To the MDR MARMAR

Assume the contents of the MAR are 01. Which line would fire? Remember the Boolean expression: (~a b) This would cause the d1 line to fire, which in turn is connected to the d1 memory location. The d1 memory location is read non-destructively, and a copy of its contents (let’s assume the contents equal 61), is copied to the MDR.

FLOW CHART - 4 X 16 DECODER

LETS CONTINUE …… We have now designed a decoder circuit, and mentioned how this control circuit could perform in translating between the address label contained in the MAR and obtaining contents of the referenced location. Computers utilize a 2-dimensional approach in decoder operation, using a row/column MAR addressing scheme to identify specific address locations. A 2-D grid is illustrated on the next slide

GRID

2 D MEMORY OPERATION

LETS MOVE ON …….. We have now seen how to use circuitry to decode the contents of the MAR to identify a specific memory location. We still need to learn as to how to interpret the results of the ALU circuitry to load a correct process answer into the MDR. The learning process does not end here it leads onto study and analysing of Multiplexor Circuits. This subject is vast. In our discussions we have only given a brief outline on the process and we hope this will give a brief insight to what we need to discuss.

THANK YOU