Computer Architecture

Slides:



Advertisements
Similar presentations
Computer Architecture and Organization
Advertisements

I/O Organization popo.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
Processor System Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Interrupts (contd..) Multiple I/O devices may be connected to the processor and the memory via a bus. Some or all of these devices may be capable of generating.
Basic Input/Output Operations
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
TECH CH03 System Buses Computer Components Computer Function
Computer Organization and Assembly language
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
Computer Architecture Lecture 12 Fasih ur Rehman.
CS-334: Computer Architecture
Computer Architecture Lecture 08 Fasih ur Rehman.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
Computer Architecture Lecture 01 Fasih ur Rehman.
CPU BASICS, THE BUS, CLOCKS, I/O SUBSYSTEM Philip Chan.
Computer Architecture
MICROPROCESSOR INPUT/OUTPUT
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
Khaled A. Al-Utaibi  Interrupt-Driven I/O  Hardware Interrupts  Responding to Hardware Interrupts  INTR and NMI  Computing the.
Top Level View of Computer Function and Interconnection.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DMA Versus Polling or Interrupt Driven I/O
Computer Architecture Lecture 09 Fasih ur Rehman.
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
EEE440 Computer Architecture
Lecture 14 Today’s topics MARIE Architecture Registers Buses
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
Modes of transfer in computer
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
Computer Architecture Lecture 32 Fasih ur Rehman.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Architecture Lecture 03 Fasih ur Rehman.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Dr Mohamed Menacer College of Computer Science and Engineering, Taibah University CE-321: Computer.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Group 1 chapter 3 Alex Francisco Mario Palomino Mohammed Ur-Rehman Maria Lopez.
بسم الله الرحمن الرحيم MEMORY AND I/O.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Computer Architecture
Chapter 3 Top Level View of Computer Function and Interconnection
ECEG-3202 Computer Architecture and Organization
Presentation transcript:

Computer Architecture Lecture 31 Fasih ur Rehman

Last Class Computer Communication Multiplexing OSI Layers Error Detection and Correction

Today’s Agenda Revision Basic Concepts Components of a Computer Performance Addresses and Addressing Modes Input and Output organization Interrupts DMA and I/O interface Circuits Bus Organization Basic Processing Unit Control Unit Design

Fundamental Concepts

Bus Organization Interconnect used for communication between the processor, memory and I/O devices Multiple buses are often used for better performance

Operational Concepts Instructions (programs) govern the activities of computer Appropriate list of instructions is stored in the memory to perform a task Processor performs the operation of instruction by bringing the instruction in to processor decoding the instruction perform the task everything is coordinated by control unit that generates appropriate control and timing signals All operands (data) are also stored in memory

Performance Performance depends on following factors T: processor time required to execute a program that has been prepared in high-level language N: number of actual machine language instructions needed to complete the execution (note: loop) S: average number of basic steps needed to execute one machine instruction. Each step completes in one clock cycle R: clock rate

Primitive Operations A computer must have instructions capable of performing four types of operations Data transfers between the memory and the processor registers Arithmetic and logic operations on data Program sequencing and control I/O transfers

Addressing Modes

Stack List of data elements (usually bytes or words) Elements can only be removed at one end of the list Last-in-first-out Can be implemented in several ways, one way is First element placed in BOTTOM Grows in direction of decreasing memory address Assume 32-bit data word

Comparison Memory Mapped I/O Separate Addr. space for I/O Devices and the memory share the same address space Any machine instruction that can access memory can be used to transfer data to or from an I/O device. Simpler software. Separate Addr. space for I/O Devices and the memory have different address spaces Special instructions to transfer data to and from I/O devices. I/O devices may have to deal with fewer address lines. I/O address lines need not be physically separate from memory address lines. In fact, address lines may be shared between I/O devices and memory, with a control signal to indicate whether it is a memory address or an I/O address.

Interrupts Processor is, say, executing the instruction located at address i when an interrupt occurs. Routine executed as a result of interrupt request is known as the interrupt-service routine (ISR). When an interrupt occurs, control must be transferred to the ISR. But before transferring control, the current contents of the PC (i+1), must be saved in a known location usually stack This way the execution at i+1 will resume upon return from interrupt.

Vectored Interrupts Interrupting device sends a code over the data bus to identify itself Processor jumps to a table of addresses, indexed by the interrupt-vector code The code may be the address of the first instruction of ISR

Direct Memory Access A special control unit is provided to transfer a block of data directly between an I/O device and the main memory, without continuous intervention by the processor. The operation of DMA controller, however, must be under the control of the program executed by the processor. Means the processor must initiate the DMA transfer Normally, used to transfer large blocks of data at high speed.

Interface Circuits To add a peripheral to a microprocessor, need to design an interface circuit Involves hooking up whenever is required to the processor’s bus I/O device involves the following Storage buffer Status flags that can be accessed by the processor Address decoding circuitry Appropriate timing signals Format conversions e.g. serial to parallel

Bus Arbitration Device allowed to initiate data transfers on bus transactions is called bus master After using the bus, bus master relinquishes control of the bus so others can acquire it Bus arbitration is required to decide who is master when more than one requests bus at the some time. Two types Centralized Arbiter circuit ensures only one request is granted at any time and enforces a priority scheme. Rotating priority is also possible. Distributed All devices waiting to use the bus have equal responsibility in carrying out bus arbitration without using a central arbiter.

CPU and Execution

Multiple Bus Organization

Control Unit Basic Tasks Control unit is driven by the processor clock To go through a control sequence for each instruction To generate appropriate control signals for each task (or control step) Control unit is driven by the processor clock Generated Control signal depends on The actual step to be executed The condition and status flag of the processor The actual instruction executed Any external signal received (such as interrupts)

Hardwired Control

Microprogrammed Control