CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION

Slides:



Advertisements
Similar presentations
Computer Architecture and Organization
Advertisements

Chapter 7: System Buses Dr Mohamed Menacer Taibah University
Computer Architecture
Digital Computer Fundamentals
CSCI 4717/5717 Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
TK 2123 COMPUTER ORGANISATION & ARCHITECTURE
1 Computer System Overview OS-1 Course AA
Chapter 3 System Buses.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
TECH CH03 System Buses Computer Components Computer Function
Computer Organization and Assembly language
CS-334: Computer Architecture
The Structure of the CPU
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Computer Architecture
THE COMPUTER SYSTEM. Lecture Objectives Computer functions – Instruction fetch & execute – Interrupt Handling – I/O functions Interconnections Computer.
ECE 456 Computer Architecture
Top Level View of Computer Function and Interconnection.
System bus.
COMPUTER ORGANIZATIONS CSNB123 NSMS2013 Ver.1Systems and Networking1.
Interrupts, Buses Chapter 6.2.5, Introduction to Interrupts Interrupts are a mechanism by which other modules (e.g. I/O) may interrupt normal.
2 nd Year - 1 st Semester Asst. Lect. Mohammed Salim Computer Architecture I 1.
COMPUTER ORGANIZATIONS CSNB123. COMPUTER ORGANIZATIONS CSNB123 Expected Course Outcome #Course OutcomeCoverage 1Explain the concepts that underlie modern.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
EEE440 Computer Architecture
System Buses. Program Concept Hardwired systems are inflexible Hardwired systems are inflexible General purpose hardware can do different tasks, given.
Review Question (last week) 1.With the aid of diagrams, explain the significant difference between Von Neumann and Harvard Architecture. 1.
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
By Fernan Naderzad.  Today we’ll go over: Von Neumann Architecture, Hardware and Software Approaches, Computer Functions, Interrupts, and Buses.
Chapter 6: Computer Components Dr Mohamed Menacer Taibah University
Dr Mohamed Menacer College of Computer Science and Engineering, Taibah University CE-321: Computer.
Lecture 1: Review of Computer Organization
Overview von Neumann Architecture Computer component Computer function
Group 1 chapter 3 Alex Francisco Mario Palomino Mohammed Ur-Rehman Maria Lopez.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Computer Architecture. Top level of Computer A top level of computer consists of CPU, memory, an I/O components, with one or more modules of each type.
Chapter 2: Computer Function And Interconnection
CHAPTER 4 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Computer System Overview
Chapter 3 Top Level View of Computer Function and Interconnection
Computer Organization and Architecture William Stallings 8th Edition
Computer System Overview
William Stallings Computer Organization and Architecture 8th Edition
ECEG-3202 Computer Architecture and Organization
Overview of Computer Architecture and Organization
BIC 10503: COMPUTER ARCHITECTURE
Chapter 3 System Buses.
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture
Presentation transcript:

CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION CSNB123 coMPUTER oRGANIZATION Ver.1 Systems and Networking

A sequence of steps What is a program? arithmetic or logical operation is done a different set of control signals is needed Ver.1 Systems and Networking

Function of Control Unit A unique code for each operation Example: ADD, MOVE Hardware Segment Accept codes Issues control signals Ver.1 Systems and Networking

Computer Components Computer PC = Program Counter IR = Instruction Register MAR = Memory Address Register MBR = Memory Buffer Register I/O AR = Input/Output Address Register I/O BR = Input/Output Buffer Register Central Processing Unit (CPU) PC MAR System Bus Main Memory Instruction . Data 1 2 IR MBR I/O AR Execution Unit I/O BR I/O Module Buffers . Ver.1 Systems and Networking

Instruction Cycle Two steps Fetch cycle Execute cycle Fetch cycle Execution cycle Fetch Next Instruction Execute Instruction Start Halt Ver.1 Systems and Networking

Fetch Cycle Program Counter (PC) Holds address of next instruction to fetch Processor Fetch instruction from memory location pointed to by PC Increment PC Instruction Register (IR) Load the instruction Interprets instruction Perform required actions Ver.1 Systems and Networking

Systems and Networking Execute Cycle Processor I/O Execution Cycle Processor -Memory Data Processing Control Ver.1 Systems and Networking

Program Execution - Example Ver.1 Systems and Networking

Instruction Cycle State Diagram Instruction Fetch Operand Fetch Operand Store Multiple Results Multiple Operands Instruction Address Calculation Instruction Operation Decoding Operand Address Calculation Data Operation Operand Address Calculation Instruction complete, Fetch next instruction Return for string or vector data Ver.1 Systems and Networking

Systems and Networking Interrupts Mechanism by which other modules (e.g. I/O) may interrupt normal sequence of processing Ver.1 Systems and Networking

Systems and Networking Classes of Interrupts Program Stack overflow, division by zero Timer Generated by internal processor timer Used in pre-emptive multi-tasking I/O I/O controller – signal the error condition Hardware failure Power failure Ver.1 Systems and Networking

Interrupt – Program Flow Control Ver.1 Systems and Networking

Interrupt Cycle Added to instruction cycle Fetch cycle Execution cycle Interrupts disabled Fetch Next Instruction Execute Instruction Check for interrupt; process interrupt Start Interrupts enabled Halt Ver.1 Systems and Networking

Interrupt Cycle (Cont.) Processor checks for interrupt Indicated by an interrupt signal If no interrupt, fetch next instruction If interrupt pending: Suspend execution of current program Save context Set PC to start address of interrupt handler routine Process interrupt Restore context and continue interrupted program Ver.1 Systems and Networking

Transfer of Control via Interrupts Ver.1 Systems and Networking

Program Timing: Short I/O Wait Ver.1 Systems and Networking

Program Timing: Long I/O Wait Ver.1 Systems and Networking

Multiple Interrupts - Approaches Disable interrupts Processor - ignore that interrupt request signal Situation: executing the program and interrupt occurs – interrupts are disable immediately Pending - checked after the processor has enabled interrupts After interrupt handler routine completes Enable interrupts before resume Check additional interrupt Handle interrupt in strict sequential order Ver.1 Systems and Networking

Multiple Interrupts – Sequential Interrupt Processing Ver.1 Systems and Networking

Multiple Interrupts – Nested Interrupt Processing Ver.1 Systems and Networking

Multiple Interrupts – Approaches (Cont.) Define priorities Low priority interrupts can be interrupted by higher priority interrupts When higher priority interrupt has been processed, processor returns to previous interrupt Ver.1 Systems and Networking

Time Sequence of Multiple Interrupts - Example Ver.1 Systems and Networking

Time Sequence of Multiple Interrupts – Example (Cont) Step t Description 1 Program begins 2 10 Printer interrupt occurs Place user information on the system stack Execution continues at the printer interrupt service routine (ISR) 3 15 Routine in (2) still executing Communication interrupt occurs  higher priority than printer 4 20 Routine in (3) still executing Disk interrupt occurs  low priority than communication ISR but priority is higher than printer 5 25 Communication ISR is completed Continue to execute disk ISR 6 35 Disk ISR is completed Continue to execute printer ISR 7 40 Routine completes Return to the user program Ver.1 Systems and Networking

Interconnection Structures Collection of paths connecting the various modules Modules: Memory Processor I/O module Ver.1 Systems and Networking

Modules: Major Form of Input and Output - Memory Word of data - Read from or written into the memory Assigned a unique numerical address Nature of the operation – indicated by read and write control signals Address – specify the location for the operation Ver.1 Systems and Networking

Modules: Major Form of Input and Output - Processor Reads instruction and data Writes out data (after processing) Sends control signals to other units Receives (& acts on) interrupts Ver.1 Systems and Networking

Modules: Major Form of Input and Output – I/O Module Operations; Read Write Control more than one external device External data path – input and output of data Send interrupt signals to CPU Ver.1 Systems and Networking

Modules: Major Form of Input and Output Ver.1 Systems and Networking

Systems and Networking Types of Transfers Memory to processor: Processor reads instruction/data from memory Processor to memory: Processor writes data to memory I/O to processor: Processor reads data from I/O device (via I/O module) Processor to I/O: Processor sends data to I/O device I/O to/from memory: allowed to exchange data using Direct Memory Access (DMA) – exclude processor Ver.1 Systems and Networking

Systems and Networking Bus Interconnection Communication pathway connecting two or more devices Key characteristic: shared transmission medium Consists of multiple communication pathways/lines Lines – transmit signals representing binary 1 and 0 – one data at a time Ver.1 Systems and Networking

Systems and Networking System Bus A bus that connects major computer components (CPU, memory, I/O) Computer interconnection structures – use one or more system buses Consists of 50 to hundreds of separate lines Each line – function. E.g: power Ver.1 Systems and Networking

Systems and Networking Data Line Provide a path for moving data among system modules Collective – data bus Ver.1 Systems and Networking

Systems and Networking Data Bus Collective of data lines Width of the data bus - Number of lines; 32, 64, 128 … Key factor in determining overall system performance Number of data lines – represents number of data can be transferred at a time Ver.1 Systems and Networking

Systems and Networking Address Lines Designate the source or destination of the data on data bus Ver.1 Systems and Networking

Systems and Networking Address Bus Collective of address lines Width of the address bus determines the maximum possible memory capacity of the system Ver.1 Systems and Networking

Systems and Networking Control Lines Used to control the access to and the use of the data and address lines Control signals transmit both command and timing information among system modules Command signals – specify operations to be performed Timing signals – validity of data and address information Ver.1 Systems and Networking

Bus Interconnection Scheme Ver.1 Systems and Networking

Systems and Networking Operation of the Bus Send data Obtain the use of the bus Transfer data via the bus Request data Transfer a request to the other module over appropriate control and address lines Ver.1 Systems and Networking

Systems and Networking System Bus - Physical Number of parallel electrical conductors – metal lines on the circuit board Ver.1 Systems and Networking

Physical Realization of Bus Architecture Ver.1 Systems and Networking

Systems and Networking Single Bus - Problem Many of devices on one bus leads to: Propagation delays Long data paths mean that co-ordination of bus use can adversely affect performance If aggregate data transfer approaches bus capacity Most systems use multiple buses to overcome these problems Ver.1 Systems and Networking

Traditional (ISA) - with cache Ver.1 Systems and Networking

Systems and Networking High Performance Bus Ver.1 Systems and Networking

Systems and Networking Types of Bus Dedicated Separate data & address lines Multiplexed Shared lines Address valid or data valid control line Advantage Fewer lines Disadvantages More complex control Reduction in performance Ver.1 Systems and Networking

Systems and Networking Bus Arbitration Process of insuring only 1 devices places information onto the bus at a time Master - slave mechanism Master is given control of the bus and can place information onto it Slave receives the information from the master Two methods Centralized Decentralized Ver.1 Systems and Networking

Master–Slave Mechanism: Methods Centralized Central bus controller mediates all device requests for the bus May be part of CPU or a hardware of its own (arbiter) Decentralized No centralized controller All devices contain logic to control access to the bus Ver.1 Systems and Networking

Systems and Networking Bus Timing Synchronous Occurrence of events on the bus is determined by the clock All events start at the beginning of a clock cycle Example: PCI bus (Peripheral Component Interface bus Asynchronous The occurrence of one event follows and depends on the occurrence of a previous event More flexible than synchronous bus but more complicated as well Accommodates wider range of device speeds Example: Futurebus+ Ver.1 Systems and Networking

Synchronous Timing Diagram Ver.1 Systems and Networking

Asynchronous Timing – Read Diagram Ver.1 Systems and Networking

Asynchronous Timing – Write Diagram Ver.1 Systems and Networking