Overview von Neumann Architecture Computer component Computer function

Slides:



Advertisements
Similar presentations
Components of a computer system
Advertisements

The CPU The Central Presentation Unit What is the CPU?
I/O Organization popo.
Processor System Architecture
CSCI 4717/5717 Computer Architecture
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
1 Computer System Overview OS-1 Course AA
The CPU - Outline. Components of CPU Englander p
Computer System Overview
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Computer Organization and Assembly language
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.
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
The Structure of the CPU
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
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
Introduction to Computing: Lecture 4
Computer Architecture
THE COMPUTER SYSTEM. Lecture Objectives Computer functions – Instruction fetch & execute – Interrupt Handling – I/O functions Interconnections Computer.
ECE 456 Computer Architecture
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 1 Computer System Overview.
The CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
CPU How It Works. 2 Generic Block Diagram CPU MemoryInputOutput Address Bus Data Bus.
2 nd Year - 1 st Semester Asst. Lect. Mohammed Salim Computer Architecture I 1.
Input/Output Computer component : Input/Output I/O Modules External Devices I/O Modules Function and Structure I/O Operation Techniques I/O Channels and.
COMPUTER ORGANIZATIONS CSNB123. COMPUTER ORGANIZATIONS CSNB123 Expected Course Outcome #Course OutcomeCoverage 1Explain the concepts that underlie modern.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
Computer Architecture And Organization UNIT-II General System Architecture.
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
Indira Gandhi National Open University presents. A Video Lecture Course: Computer Platforms.
Computer Architecture 2 nd year (computer and Information Sc.)
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
Lecture 1: Review of Computer Organization
IT3002 Computer Architecture
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?
PART 4: (1/2) Central Processing Unit (CPU) Basics CHAPTER 12: P ROCESSOR S TRUCTURE AND F UNCTION.
Architectural Considerations A Review of Some Architectural Concepts.
Group 1 chapter 3 Alex Francisco Mario Palomino Mohammed Ur-Rehman Maria Lopez.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
CPU Lesson 2.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Chapter 5: Computer Systems Organization
BIC 10503: COMPUTER ARCHITECTURE
Computer Architecture
Chapter 5 Computer Organization
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.
Presentation transcript:

Overview von Neumann Architecture Computer component Computer function Instruction set CPU Memory I/O

von Neumann architecture All contemporary computer design are base on three key concepts : Data and instructions are stored in a single read-write memory. The contents of this memory are addressable by location Execution occurs in a sequential fashion from one instruction to the next

Computer Component Arithmetic and Logical Unit (ALU) Central Processing Unit (CPU) Arithmetic and Logical Unit (ALU) Control Unit (CU) Memory Unit I/O devices Storage devices System bus

Computer Function The basic function is program execution. The Program to be executed consists of a set of instruction stored in memory. The CPU does actual work by executing instructions specified in the program.

Instruction Sets Instruction : An individual pattern which instructs the computer to do a task. Consists of two part OP-code Operand or Address Instruction set classifies CPU into model or family

Central Processing Unit (CPU) Computer Component Central Processing Unit (CPU) Processor Where the data are manipulated by executing instruction Two basic parts are Control Unit (CU) Arithmetic and Logical Unit (ALU)

Executing Instruction Instruction cycle Fetch cycle : CPU read (fetches) instructions from memory one at a time. Execution cycle : CPU executes each instruction

Instruction Cycle No Are the Instruction awaiting execution? Yes Start No Are the Instruction awaiting execution? Yes Fetch the next instruction Execute the instruction halt No Are there interrupts require services? Yes Transfer control to interrupt handling program

CPU Control Unit (CU) Controls each part of components to perform instruction or program procedure load program into memory fetch instruction one at a time decode, create and send control signals

Control Unit Components CPU Control Unit Components The CU has three components Program Counter(PC): contains the address of the next instruction to be executed Instruction Register (IR) : holds the actual instruction that is being executed Instruction Decoder : determines the type of operation currently in the IR and sends control signal to implement that operation

Control Unit Function Instruction sequencing : selects instruction from memory to executed Instruction Interpretation : interprets and sends control signals to CPU through control lines

Instruction sequencing PC = PC’ + K PC : next instruction address PC’: previous instruction address k : instruction length 0 3 4 15 Op Code Address (a) Instruction Format 0001 = Load AC From Memory 0010 = Store AC To Memory 0101 = Add to AC from Memory (b) Partial List of Opcodes

Example of program execution 300 301 302 3 0 0 PC AC IR 300 301 302 PC AC IR 1 9 4 0 1 9 4 0 3 0 0 5 9 4 1 5 9 4 1 0 0 0 3 2 9 4 1 1 9 4 0 2 9 4 1 1 9 4 0 CPU Registers . . . . 940 941 940 941 0 0 0 3 0 0 0 3 1 2 0 0 0 2 0 0 0 2 300 301 302 300 301 302 PC AC IR 1 9 4 0 3 0 1 PC AC IR 1 9 4 0 3 0 1 5 9 4 1 5 9 4 1 0 0 0 3 0 0 0 5 2 9 4 1 2 9 4 1 5 9 4 1 5 9 4 1 . . . . 940 941 316 + 216 = 516 940 941 0 0 0 3 0 0 0 3 3 4 0 0 0 2 0 0 0 2 300 301 302 300 301 302 1 9 4 0 3 0 2 PC AC IR 1 9 4 0 3 0 2 PC AC IR 5 9 4 1 0 0 0 5 5 9 4 1 0 0 0 5 2 9 4 1 2 9 4 1 2 9 4 1 2 9 4 1 . . . . 940 941 940 941 0 0 0 3 0 0 0 3 5 6 0 0 0 2 0 0 0 5

Instruction Interpretation Control Unit C’’ in C” out C’ in C’ out ALU Input data Output data Implementation Method Hardwired Control Unit Microprogram Control Unit

Arithmetic and Logical Unit (ALU) CPU Arithmetic and Logical Unit (ALU) The ALU has two part Functional unit : perform the operation (arithmetic operations and logical operations) Register : hold operands, results, errors and status information

Functional Unit Arithmetic Logical integer adder integer subtractor CPU Functional Unit Arithmetic integer adder integer subtractor integer multiplier integer divider arithmetic shift unit incrementor & decrementor floating-point arithmetic unit Logical comparator logic shift unit NOT unit AND unit OR unit

Operation of functional unit CPU Operation of functional unit Arithmetic + add - subtract * multiply / divide ^ raise by a power Logical =, = equal, not equal >, > greater than, not greater than <, < less than, not less than >, > greater than or equal, not ... <, < less than or equal, not ...

Diagram of functional unit CPU Diagram of functional unit Start/Stop signal from control unit Z := X op Y op X Y Z E Left Right Result Error/Status Timing signal Control signal Data ? Register

Register high-speed memory location contain data for functional unit CPU Register high-speed memory location contain data for functional unit register size -> word size 16-bit processor 32-bit processor 64-bit processor

Register Type Accumulator register : operand, result CPU Register Type General purpose register Accumulator register : operand, result Index register : address Special-purpose register Overflow register Carry register Shift register Temporary register Stack register Floating-point register Status information register

CPU Register & Memory reference by name instead of unsigned binary address : A, R1 higher speed than memory use for specific job, not general job use specific path for transfer data

Processor families Intel : Pentium AMD : K6, K7 Cyrix : Cyrix Motorola : 680X0

Memory Stores and retrieves (fetch) information Computer Component Memory Stores and retrieves (fetch) information It is divided into cells, and data are accessed by means of the unique address of the cell. 2n words of m-bit memory with addresses 0,1,2,…,2n-1

Store Fetch นำข้อมูลเข้าไปบรรจุใน memory ณ ตำแหน่งที่ระบุ Access data in memory Store นำข้อมูลเข้าไปบรรจุใน memory ณ ตำแหน่งที่ระบุ Fetch ดึงข้อมูลจาก memory

Memory component Memory Address Register(MAR): contains the address of the word we want to store or fetch Memory Buffer Register (MBR) : contains the contents of the location we want to do with Decoder : decodes address to be the location Read/Write Control Lines : provides the signal to control the memory perform a fetch or store operation.

Memory component Decoder MAR MBR address 0000 0001 0002 0003 0004 … size Read control lines Write control lines MBR m-1 .. .. .. ... 2 1 0 Flow of information Control Signal Memory width

Read procedure Stores address of data in MAR. Sends read signal through read control line. Decodes data in MAR to be the location in memory bank. Reads data from that location and stores in MBR.

Write procedure Stores address of data in MAR. Stores data we want to write in MBR. Sends write signal throgh write control line. Decodes data in MAR to be the location in memory bank. Writes data in MBR into that location.

Memory Hierarchy Register Caches : L1, L2, .. Main Memory Magnetic Disk Magnetic Tape

Characteristics Location Capacity Unit of Transfer Access Method CPU Internal External Capacity Word size Number of words Unit of Transfer Word Block Access Method Sequential Direct Random Associative

Characteristics (cont.) Performance Access time Memory cycle time Transfer rate Physical type Semiconductor Magnetic surface Physical characteristics Volatile/Non-volatile Erasable/Non-erasable

RAM Random Access Memory EDO RAM (Extended Data-Out RAM) DRAM (Dynamic RAM) SRAM (Static RAM) SDRAM (Synchronous DRAM) DDR SDRAM (Double Data Rate SDRAM) VRAM (Video RAM)

ROM Read only memory : contain a permanent pattern of data for starting a computer to work ROM Typed PROM (Programmable ROM) EPROM (Erasable ROM) EEPROM (Electrical Erasable PROM)

Data in ROM Important memory routines of system Loader program Compiler and interpreter Important error-recovers procedures some part of Operating System

Cache Memory Main L1 L2 Cache CPU Memory Disk cache Memory cache L1 cache : internal cache L2 cache : external cache Word transfer Block transfer CPU Main Memory L2 Cache L1

Input/Output I/O module I/O function I/O devices components Data transfer Techniques

I/O Module The entity with in a computer responsible for the control of one or more external devices and for the exchange of data between those devices and main memory and/or CPU register. The major function for an I/O module control and timing CPU communication Device communication Data buffering Error detection

I/O Function The third key element of a computer is a set of I/O module. Each module interface to the system bus or central switch and controls one or more peripheral devices. I/O module contains logic for performing a communication function between the peripheral and the bus.

The Component of I/O devices I/O Mechanism The mechanical, electrical that make up I/O devices I/O Controller The component that manages the flow of information between the I/O device and the computer

Data Transfer Techniques Programmed I/O Interrupt Driven I/O DMA I/O Controller

Programmed I/O Data are exchanged between the CPU and the I/O module. The CPU executes a program that gives it direct control of the I/O operation. When the CPU issues to the I/O modules, it must wait until the I/O operation is complete. If the CPU is faster than the I/O module, this is wasteful of CPU time.

Programmed I/O Issue read command to I/O module CPU --> I/O Read status of I/O module I/O --> CPU Not Ready Check status Error Condition Ready Read word from I/O module I/O --> CPU Write word into memory CPU --> Memory No Done? Programmed I/O Yes

Interrupt-Driven I/O The CPU send START signal to I/O controller for start working. After send signal, the CPU can continue their jobs When I/O controller finish work, it send interrupt signal to the CPU The CPU suspend their works and load data into memory

Interrupt-Driven I/O CPU --> I/O Issue read command to I/O module Do Something Else Read status of I/O module Interrupt I/O --> CPU Check status Error Condition Ready Read word from I/O module I/O --> CPU Write word into memory CPU --> Memory No Done? Interrupt-Driven I/O Yes

DMA I/O Controller Consist of 2 registers DAR (DMA Address Register) : stores address of data in memory WC (Word Count Register) : specifies data size to write in memory

DMA I/O Controller (cont.) Store address of data in DAR Store size of data in WC Send START signal to I/O Controller When finishing data transfer, it send interrupt signal to the CPU

Read status of DMA module CPU --> DMA Issue read block command to DMA module Do Something Else Read status of DMA module Interrupt DMA --> CPU Direct Memory Access