C HAPTER 4 OS: C OMPUTER O RGANIZATION TOPICS: The Von Neumann Architecture The CPU.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

The CPU The Central Presentation Unit What is the CPU?
1 (Review of Prerequisite Material). Processes are an abstraction of the operation of computers. So, to understand operating systems, one must have a.
Slide 4-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 4 Computer Organization.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 3 Operating System Organization.
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
CS4315A. Berrached:CMS:UHD1 Operating Systems and Computer Organization Chapter 4.
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
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
Elements of the Computer (How a processor works)
1 TK6123: COMPUTER ORGANISATION & ARCHITECTURE Prepared By: Associate Prof. Dr Masri Ayob Lecture 6: CPU and Memory (1)
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
6. The CPU and Memory Chapt. 7.
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
CPU Registers PC Arith Logic Unit Bus Interface I/O Bridge System bus Memory bus Main Memory USB Controller Graphics Adapter Disk Controller I/O Bus Mouse.
Computer Architecture Lecture 01 Fasih ur Rehman.
Processor Structure & Operations of an Accumulator Machine
The Structure of the CPU
Computer Organization Computer Organization & Assembly Language: Module 2.
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
Computer Processing of Data
Unit - 1 Basic Computer Architecture P. Sugin Benzigar.
CPU Computer Hardware Organization (How does the computer look from inside?) Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge.
Computer Science 210 Computer Organization The von Neumann Architecture.
The CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
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.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Computer Architecture
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture And Organization UNIT-II General System Architecture.
Computer Organization & Assembly Language © by DR. M. Amer.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
Lecture 2 Microprocessor Architecture Image from:
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Architecture 2 nd year (computer and Information Sc.)
Computer Studies/ICT SS2
Stored Program A stored-program digital computer is one that keeps its programmed instructions, as well as its data, in read-write,
Lecture on Central Process Unit (CPU)
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Overview von Neumann Architecture Computer component Computer function
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
CS4315A. Berrached:CMS:UHD1 Operating Systems and Computer Organization Chapter 4.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
CPU Lesson 2.
Systems Architecture Keywords Fetch Execute Cycle
Control Unit Lecture 6.
Lecture 5: Computer systems architecture
Computer Science 210 Computer Organization
Course Name: Computer Application Topic: Central Processing Unit (CPU)
CS703 - Advanced Operating Systems
General Architecture of Digital Computer
Chapter 4 The Von Neumann Model
Computer Science 210 Computer Organization
Functional Units.
Components of a CPU AS Computing - F451.
Computer Architecture
The Stored Program Computer
GCSE OCR 1 The CPU Computer Science J276 Unit 1
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.
Chapter 4 The Von Neumann Model
Presentation transcript:

C HAPTER 4 OS: C OMPUTER O RGANIZATION TOPICS: The Von Neumann Architecture The CPU

4.1 T HE VON N EUMANN A RCHITECTURE Stored program computers are often referred to as “general-purpose computers”. Meaning: can adapted to do many types of computational and information storage task independent of the hardware details. Von Neumann architecture designed a specific organization for stored program computers.

T HE V ON N EUMANN A RCHITECTURE 3 Components in a Von Neumann computer:  1. CPU (CU & ALU)  2. Primary Memory  3. I/O devices

T HE V ON N EUMANN A RCHITECTURE  Programs and data are brought into the machine from the external world using the device controllers and devices. Eg; disk,pendrive.  When program or data ready to be used, they are copied into the primary memory unit from either the external environment or storage device. Storage(pendrive) Primary Memory CU/ALU-read instruction, decode, execute

T HE V ON N EUMANN A RCHITECTURE  Once the program has been loaded into the primary memory, the control unit reads each instruction in the program, decodes the instruction.  The ALU performs all arithmetic operations such as adding, subtracting, multiplying and dividing numbers. It also performs logical operations such as comparing two numbers, detecting if a number is zero and so on. ALU: +,*,/ logical: comparison

 Bus carry electronic signals from unit to other.  Bus Address Bus Data Bus

 The ALU contains a function unit to perform the arithmetic and logical operations and various registers—to hold information being processed by the CPU

 General registers are loaded from a specified primary memory location.  general registers provide the operands to the function unit and accept the result of an operation by the function unit.  Status registers are used by various parts of the CPU to store the status of operations.eg. such as “the result of the last function unit operation was equal to 0”.  performing operations on the registers, and then saving the results back into memory.

T HE M EMORY O RGANIZATION 1.The memory unit stored the contents of the MDR (98765) into the memory location loaded in the MAR (1234). 2.A read operation is accomplished by placing address in the MAR and placing a read command into the command register. 3.After a memory cycle, the memory unit copies the contents of the designated memory cell into the MDR. CPU Registers Memory the memory address register (MAR), the memory data register (MDR), and the command register (Cmd).

Devices  The I/O-devices of the von Neumann machine are used to place data into the primary memory and to store its contents on a more permanent medium  The device may be the storage device such as magnetic disk or tape; a character device such as a terminal display, a mouse, or a keyboard; or a communication device such as a serial port connected to a modem or a network interface.

General Device Characteristics  characterized as block-oriented  character-oriented,  storage devices (permanently storing information )  communications devices ( interconnecting computers and/or terminals. introduce data into the machine and pass data from one machine to another.) depending on the number of bytes transferred on an individual operation (many or one, respectively).

Device Controllers  Part of motherboard. Function as bridge between the device and the operating system.  Hardware that understands software input. It translates software input into something a hardware device understand.Controller sometimes have their own memory & own CPU.  The Device Controller receives the data from a connected device and stores it temporarily in some special purpose registers (i.e. local buffer) inside the controller. Then it communicates the data with a Device Driver.Device Driver - Any device connected to the computer is connected by a plug and socket, and the socket is connected to a device controller. - It communicates with the CPU by interrupts.

D EVICE C ONTROLLERS  Function of device controllers.  To observe status  To provide detailed commands  To correct for minor errors

D EVICE DRIVERS  The device controller provides an interface to be used by the high level machine software.  Purely software and communicate between OS and the physical device controller.  Drivers for different devices impalement a similar interface.  Eg. Printer use specific device driver (need to install)  Mouse and keyboard use generic device driver.(no need to install)

I NTERRUPT  the most efficient overlap between the device and the CPU could be obtained if the device would signal the processor as soon as it has completed the I/O operation.  The von Neumann architecture can be modified to implement this approach by incorporating device interrupts through which a device notifies the processor when it has completed an I/O operation.  signal from the hardware to the software—the interrupt—causes the processor to cease executing the sequence of instructions addressed by the PC