Computer Architecture Lecture 08 Fasih ur Rehman.

Slides:



Advertisements
Similar presentations
Bus arbitration Processor and DMA controllers both need to initiate data transfers on the bus and access main memory. The device that is allowed to initiate.
Advertisements

IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
IT253: Computer Organization
Computer Architecture
Computer Organization, Bus Structure
I/O Organization popo.
INPUT-OUTPUT ORGANIZATION
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
Input/Output Organization Asynchronous Bus
1/1/ / faculty of Electrical Engineering eindhoven university of technology Processor support devices Part 1:Interrupts and shared memory dr.ir. A.C. Verschueren.
Chapter 2 Microprocessor Bus Transfers. Big- and Little-Endian Ordering Bit-endian processor architecture –High-order-byte-first (H-O-B-F) map the highest-order.
Processor System Architecture
S. Barua – CPSC 440 CHAPTER 8 INTERFACING PROCESSORS AND PERIPHERALS Topics to be covered  How to.
Interfacing Processors and Peripherals Andreas Klappenecker CPSC321 Computer Architecture.
TECH CH03 System Buses Computer Components Computer Function
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
Group 7 Jhonathan Briceño Reginal Etienne Christian Kruger Felix Martinez Dane Minott Immer S Rivera Ander Sahonero.
INPUT-OUTPUT ORGANIZATION
Lecture 12 Today’s topics –CPU basics Registers ALU Control Unit –The bus –Clocks –Input/output subsystem 1.
CS-334: Computer Architecture
Digital System Bus A bus in a digital system is a collection of (usually unbroken) signal lines that carry module-to-module communications. The signals.
CPU BASICS, THE BUS, CLOCKS, I/O SUBSYSTEM Philip Chan.
Interrupts and DMA CSCI The Role of the Operating System in Performing I/O Two main jobs of a computer are: –Processing –Performing I/O manage and.
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
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Top Level View of Computer Function and Interconnection.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
DMA Versus Polling or Interrupt Driven I/O
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
Computer Architecture Lecture 09 Fasih ur Rehman.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
COMPUTER ORGANIZATIONS CSNB123. COMPUTER ORGANIZATIONS CSNB123 Expected Course Outcome #Course OutcomeCoverage 1Explain the concepts that underlie modern.
MBG 1 CIS501, Fall 99 Lecture 18: Input/Output (I/O): Buses and Peripherals Michael B. Greenwald Computer Architecture CIS 501 Fall 1999.
EEE440 Computer Architecture
Input-Output Organization
Chapter 4. Input/Output Organization
Modes of transfer in computer
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 26 Bus Interconnect May 7,
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
Direct Memory Access (DMA) Department of Computer Engineering, M.S.P.V.L. Polytechnic College, Pavoorchatram. A Presentation On.
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.
INPUT/OUTPUT ORGANIZATION
Types of format of data transfer
ASYNCHRONOUS DATA TRANSFER
Interconnection Structures
Department of Computer Science and Engineering
Chapter 6 Input/Output Organization
Presented By: Navneet Kaur Randhawa Lect. I.T. Deptt. GPC,Amritsar
I/O Memory Interface Topics:
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Computer Organization and Design
Input/Output Organization
Serial Communication Interface: Using 8251
INPUT/OUTPUT ORGANIZATION
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture
Presentation transcript:

Computer Architecture Lecture 08 Fasih ur Rehman

Last Class DMA Interface Circuits – Purpose – Port Serial Parallel

Today’s Agenda Serial Port and Serial Interface circuit Buses

Serial Port Serial port connects the processor to I/O device through “one” data line allowing transfer of only “one bit” at a time. – However, Parallel to serial conversion takes place within the interface circuit Serial port transfers data in serial mode to or from the device while on bus side the communication has to be in parallel.

Serial Interface

Input shift register accepts input one bit at a time from the I/O device. Once all the bits in a word are received, the contents of the input shift register are loaded in parallel into DATAIN register. Output data in the DATAOUT register are loaded into the output shift register. Bits are shifted out of the output shift register and sent out to the I/O device one bit at a time. As soon as data from the input shift reg. are loaded into DATAIN, it can start accepting another word of data bit – by – bit. Input shift register and DATAIN registers are both used at input so that the input shift register can start receiving another word from the input device after loading the contents to DATAIN, before the processor reads the contents of DATAIN. This is called as double- buffering.

Serial Interface Fewer lines are needed in serial interface – therefore more feasible for devices that are at larger distance from the computer. Speed of transmission over serial link is called “bit rate”. Since devices are available in range of speed, a serial interface must be able to work with a range of clock speeds. Examples – Universal Asynchronous Receiver Transmitter – RS – 232 – C.

Buses Processor, main memory and I/O devices are interconnected by a common bus – Provides communications path for transfer of data – Includes signals to handle interrupts and arbitration Bus protocol – Set of rules for transferring data on a bus

Bus Lines Three types – Data – Address – Control specify whether read or write, usually a single R/W signal, read when 1 write when 0 specify operand size Normally processor is master and device being addressed is the slave In terms of clock signals, a bus can be Synchronous or Asynchronous

Synchronous Bus Common clock used to derive timing Read: t0 master puts address and command on bus. Slave responds at t1, data is strobbed into master at t2

Multiple Cycle Transfer In previous example, slave must respond between t0 – t2, usually a control signal is used to inform master that the slave data is ready Thus slave could be of arbitrary speed Master can abort operation if no slave ready signal is received IA-32 uses this scheme

Asynchronous Bus (input) Handshake between master and slave t0: master places address and command on bus t1: master asserts Master-ready t2 slave puts data on bus and asserts Slave- ready t3: master sees that Slave-ready asserted, strobes in the data and releases Master- ready t4: master can now change address/command t5: slave removes Slave-ready

Asynchronous Bus (input)

Asynchronous Bus (output) Slave strobes data in after Master-ready is asserted

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.

Summary Serial Port and Serial Interface circuit Buses – Types – Synchronous – Asynchoronus – Arbitration