Department of Computer Science and Engineering

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

I/O Organization popo.
INPUT-OUTPUT ORGANIZATION
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
CS-334: Computer 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.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
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.
Unit-5 CO-MPI autonomous
2. Methods for I/O Operations
INPUT-OUTPUT ORGANIZATION
CS-334: Computer Architecture
Computer Architecture Lecture 08 Fasih ur Rehman.
Spring EE 437 Lillevik 437s06-l2 University of Portland School of Engineering Advanced Computer Architecture Lecture 2 NSD with MUX and ROM Class.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
Top Level View of Computer Function and Interconnection.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DMA Versus Polling or Interrupt Driven I/O
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.
EEE440 Computer Architecture
Chapter 4. Input/Output Organization
Modes of transfer in computer
Organisasi Sistem Komputer Materi VIII (Input Output)
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
Networked Embedded Systems Pengyu Zhang & Sachin Katti EE107 Spring 2016 Lecture 11 Direct Memory Access.
INPUT/OUTPUT ORGANIZATION
INPUT/OUTPUT ORGANIZATION
Computer Organization
ASYNCHRONOUS DATA TRANSFER
Interconnection Structures
Chapter 6 Input/Output Organization
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Presented By: Navneet Kaur Randhawa Lect. I.T. Deptt. GPC,Amritsar
Operating Systems (CS 340 D)
William Stallings Computer Organization and Architecture 7th Edition
I/O Memory Interface Topics:
Module-2 Input / Output organization
CHAPTER 4 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
CS 286 Computer Organization and Architecture
Overview Peripheral Devices Input-Output Interface
INPUT-OUTPUT ORGANIZATION
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Input/Output Organization contd:
Computer Architecture
William Stallings Computer Organization and Architecture 6th Edition
Input/Output Organization
Serial Communication Interface: Using 8251
INPUT-OUTPUT ORGANIZATION
Overview of Computer Architecture and Organization
Created by Vivi Sahfitri
Overview of Computer Architecture and Organization
INPUT/OUTPUT ORGANIZATION
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture
Presentation transcript:

Department of Computer Science and Engineering D. Lakshmi Assistant Professor Department of Computer Science and Engineering Bannari Amman Institute of Tech Sathyamangalam 15/12/2007

Introduction to DMA Allows external devices to access memory without processor intervention Requires a DMA control circuit which is part of I/O device interface called DMA Controller. To transfer the data between external devices and memory the following instructions : Move DATAIN R0 [ From External Device to Memory] 15/12/2007

Steps a DMA Device Interface Must Take to Transfer a Block of Data Become bus master Send memory address and R/W signal Synchronized sending and receiving of data using Complete signal. 4. Synchronization is achieved through Interrupt Enable Flag and Interrupt Request Flag. 5. Release bus as needed (perhaps after each transfer). 6. Advance memory address to point to next data Item. 7. Count number of items transferred and check for end of data block. 8. Repeat if more data to be transferred. 15/12/2007

Steps a DMA Device Interface Must Take to Transfer a Block of Data Many DMA Controllers can be used. Among different DMA devices, top priority is given to high-speed peripherals such as a disk, a high-speed network interface or a graphics display device. Two types of DMA interweaving techniques Cycle stealing – DMA device takes the memory from the processor and steals the one cycle required for read or write. Block or Burst Mode – DMA controller may be given exclusive access to the main memory to transfer a block of data without interruption. 15/12/2007

Bus Arbitration Bus Master: The device that is allowed to initiate data transfers on the bus at any given time is called bus master. Bus Arbitration: It’s the process by which the next device to become the bus master is selected and bus mastership is transferred to it. Centralized Arbitration: A single bus arbiter performs the required arbitration. Distributed Arbitration: All devices participate in the selection of the next bus master. 15/12/2007

Centralized Arbitration 1. Bus Request Line – A wired ‘OR’ that the controller knows a request was made, but does not know which device made the request. 2. Bus Grant Line – First a signal is propagated to all devices. The Bus Grant Line is asserted to the first device in the chain. If that device made the request it takes a hold of the bus and leaves the Bus Grant Line negated for the next device in the chain. If that device didn’t make the request then the Bus Grant Line is asserted for the next device in the chain. If two devices make a request for the bus at the same time then the device closer to the controller gets the bus. This is called daisy chaining 15/12/2007

Centralized Arbitration – Using Daisy Chaining DMA Controller sends Bus-Request to become bus master Processor activates Bus-Grant signal, BG1, indicating to the DMA controllers that they may use the bus when it becomes free. Bus master indicates to all other devices by activating BBSY that it is using the bus BBSY Processor BR DMA Controller 1 DMA Controller 2 BG1 BG2 15/12/2007

Distributed Arbitration Start-Arbitration Signal: When one or more devices request the bus, hey assert this signal Open Collector lines ARB0 – ARB3: 4-bit ID number is placed on these lines A winner is selected as a result of the interaction among the signals trnsmited over these lines. 15/12/2007

Synchronous data transmission Asynchronous data transmission Buses The bus lines used for transferring data may be grouped into three types: data address, and control lines (R/W). And also it carries timing information-they specify the times at which the processor and the I/O devices may place data on the bus or receive data from the bus. The device that initiates data transfer is called an initiator (master). The device addressed by the master is referred to as a slave or target. Synchronous data transmission Asynchronous data transmission 15/12/2007

All devices derive timing information from a common clock line. Synchronous Bus All devices derive timing information from a common clock line. 15/12/2007

Sequence of signals during transfer of bus mastership At time t0, the master places the device address on the address lines and sends an appropriate command on the control lines. At time t1, addressed device responds and it places the requested input data on the data lines. At time t2, the master strobes the data on the data lines into its input buffer. 15/12/2007

Multiple Cycle transfers 15/12/2007

Asynchronous Bus Data transfer is done based on he use of handshake signal between he master and the slave. The common clock is replaced by two timing control lines, Master Ready and Slave ready. 15/12/2007

Parallel Port Keyboard to processor connection Data Encode and Debouncing Circuit Keyboard Swithes Processor DATAIN Address Data R/W SIN . Master-ready Valid Input Interface Slave-ready 15/12/2007

Printer to Processor connection Data Processor Printer DATAIN Address Data R/W SOUT Valid Master-ready Idle Ouput Interface Slave-ready 15/12/2007

A serial interface Serial Input Input shift register My address Chip and register select RS1 RS0 DATAIN R/W Ready … Accept D7 D0 DATAOUT Serial Output Output shift register Status and control Receiving clock INTR Transmission clock 15/12/2007

Computer system using different interface Main memory Processor Processor Bus Bridge PCI Bus Additional Memory SCSI controller Ethernet interface USB controller ISA interface SCSI bus Video IDE disk Disk Controller CD ROM controller Disk1 Disk2 CD ROM Keyboard Game 15/12/2007

PCI bus in a computer system Host Main memory PCI bridge PCI bus Disk Printer Ethernet interface 15/12/2007

Data transfer signals on the PCI bus Name Function CLK A 33-MHz FRAME# Sent cy the initiator to indicate the duration of a transaction AD 32 address/data lines, which may be optionally increased to 64 C/BE# 4 command/byte-enable lines IRDY#,TRDY# Initiator-ready and target-ready signals DEVSEL# A response from the device indicating that it has recognized its address and is ready for a data transfer transaction IDSEL# Initialization Device Select 15/12/2007

SCSI Memory disk CPU SCSI Ethernet 15/12/2007