1 / 12

Computer System Overview

Computer System Overview. B.Ramamurthy Chapter 1. Basic Elements. Processor: control unit and registers Register : User visible, control and status registers User visible: R0.. R32, data registers, address registers, stack pointer..

coreyr
Télécharger la présentation

Computer System Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Computer System Overview B.Ramamurthy Chapter 1 B.Ramamurthy

  2. Basic Elements • Processor: control unit and registers • Register : User visible, control and status registers • User visible: R0.. R32, data registers, address registers, stack pointer.. • Control/status: PC (program counter), IR (Instruction register) • Main memory : Instructions and data • IO modules (buffer), system interconnection (bus). B.Ramamurthy

  3. Instruction Execution • A fundamental operation in a processor is instruction execution. • Instruction cycle: fetch cycle + execute cycle • PC holds the address of the next instruction to be executed. • Instruction pointed to by the PC is fetched from main memory into the IR. • Instruction is decoded and executed • Instruction may be process-memory, processor-IO, data processing, or control/logic B.Ramamurthy

  4. Interrupts • Normal processing of instructions can be interrupted so that the processor may respond to other events. • The mechanism provided for interruption is known as “interrupts”. • Interrupts are provided to improve processor efficiency. • Types of interrupts: program, timer, IO, hardware failure. B.Ramamurthy

  5. Program Flow with and without Interrupts • Fig 1.2 B.Ramamurthy

  6. Instruction Cycle with Interrupts • Fig 1.7 B.Ramamurthy

  7. Interrupt Processing • Consider the steps involved in IO interrupt when a device completes IO operation. 1.. CPU initiates IO operation to a device and goes about its normal processing. 2. Device completes IO and sends interrupts signal to the processor. 3. Processor completes current instruction before responding to the interrupt. 4. Processor determines the source of interrupt and sends acknowledgement. 5. Processor them saves its current state and transfers control to interrupt handler. B.Ramamurthy

  8. Interrupt Processing (contd.) 6. Interrupt handler (or interrupt service routine - ISR) completes executiona d returns control to the main routine by restoring the saved context from step 5. 7. Processor resumes its normal processing. B.Ramamurthy

  9. Multiple Interrupts • An interrupt may occur during the processing of another interrupt. This may lead to nested interrupt handling. This is permitted in many situations. • But it is also possible to control the response to interrupts by masking certain interrupts and by disabling interrupts. • Interrupts are useful not only in IO processing but also in multiprogramming. B.Ramamurthy

  10. IO Communication • Programmed IO • Interrupt-driven IO • Direct Memory Access • Fig. 1.19 B.Ramamurthy

  11. Direct Memory Access • IO <--> Memory is controlled by DMA unit. • DMA unit issues read and write cycles and is in control of the bus. • This process is called “cycle stealing”. • For block transfers DMA is far more efficient than interrupt driven IO. B.Ramamurthy

  12. Summary • Instruction cycle, interrupts, basic IO are fundamental processor operation. • We will look into memory related details in a later discussion. B.Ramamurthy

More Related