Docsity

top level view of computer function, Slides of Computer Architecture and Organization

Partial preview of the text

Download top level view of computer function and more Slides Computer Architecture and Organization in PDF only on Docsity!

William Stallings Computer Organization and Architecture 8 th Edition Chapter 3 Top Level View of Computer Function and Interconnection

What is a program?

  • (^) A sequence of steps
  • (^) For each step, an arithmetic or logical operation is done
  • (^) For each operation, a different set of control signals is needed

Computer Components: Top Level View

Instruction Cycle

  • (^) Two steps: —Fetch —Execute

Execute Cycle

  • (^) Processor-memory —data transfer between CPU and main memory
  • (^) Processor I/O —Data transfer between CPU and I/O module
  • (^) Data processing —Some arithmetic or logical operation on data
  • (^) Control —Alteration of sequence of operations —e.g. jump
  • (^) Combination of above

Example of Program Execution

Interrupt Cycle

  • (^) Added to instruction cycle
  • (^) 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

Transfer of Control via Interrupts

Program Timing Short I/O Wait

Program Timing Long I/O Wait

Computer Modules

Memory Connection

  • (^) Receives and sends data
  • (^) Receives addresses (of locations)
  • (^) Receives control signals —Read —Write —Timing

Input/Output Connection(2)

  • (^) Receive control signals from computer
  • (^) Send control signals to peripherals —e.g. spin disk
  • (^) Receive addresses from computer —e.g. port number to identify peripheral
  • (^) Send interrupt signals (control)

CPU Connection

  • (^) Reads instruction and data
  • (^) Writes out data (after processing)
  • (^) Sends control signals to other units
  • (^) Receives (& acts on) interrupts