DMA. Transfer Mode The transfer mode describes the way in which the data moves from the hard disk through the interface (IDE/ATA) and to the memory. For.

Slides:



Advertisements
Similar presentations
IT253: Computer Organization
Advertisements

Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Chapter 6 Errors, Error Detection, and Error Control
Chapter 6 Errors, Error Detection, and Error Control.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Chapter 6: Errors, Error Detection, and Error Control
Chapter 6 Errors, Error Detection, and Error Control
Input/Output and Communication
Chapter 6 AN INTRODUCTION TO FILES AND FILE PROCESSING Dr. Ali Can Takinacı İstanbul Technical University Faculty of Naval Architecture and Ocean Engineering.
The SCSI Interface Objectives In this chapter, you will: -Understand the different SCSI standards and confusing naming schemes -Identify cables and connectors.
RAID Redundancy is the factor for development of RAID in server environments. This allows for backup of the data in the storage in the event of failure.
CSIT 301 (Blum)1 Memory. CSIT 301 (Blum)2 Types of DRAM Asynchronous –The processor timing and the memory timing (refreshing schedule) were independent.
PHY 201 (Blum) Buses Warning: some of the terminology is used inconsistently within the field.
Parts and usage. Motherboard is the most important component in any personal computer. It contains almost every important elements of the computer. Sometimes.
COEN 180 Hard Drive Interface Evolution. Hard Drive Interface How does the system interact with the disk. Slow development towards autonomous, intelligent.
The University of New Hampshire InterOperability Laboratory Serial ATA (SATA) Protocol Chapter 10 – Transport Layer.
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 20 – The Hard Drive Interface.
PC Maintenance: Preparing for A+ Certification
IDE Interface. Objectives In this chapter, you will -Learn about each of the ATA standards (ATA-1 through ATA-6) used in PCs -Identify the ATA connector.
CENG334 Introduction to Operating Systems Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY URL:
HDD INSTALLATION AND SETUP. HDD Introduction Hard disk is the most popular storage device used to store various kinds of data in most computers. Hard.
1 Chapter Overview CD-ROM and DVD Drives Advanced Hard Disk Drives SCSI Drives.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 8 Understanding and Installing Hard Drives.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
File Systems CSIT 301 (Blum).
Personal Computer Hard Drive ATA Interface
CSIT 301 (Blum)1 DMA. CSIT 301 (Blum)2 Transfer Mode The transfer mode describes the way in which the data moves from the hard disk through the interface.
Mr C Johnston ICT Teacher BTEC IT Unit 02 - Lesson 03 Inside Computers #2 – Drives, Connectors and Internal Memory.
Cis303a_chapt06_exam.ppt CIS303A: System Architecture Exam - Chapter 6 Name: __________________ Date: _______________ 1. What connects the CPU with other.
Cpr E 308 Input/Output Recall: OS must abstract out all the details of specific I/O devices Today –Block and Character Devices –Hardware Issues – Programmed.
Buses Warning: some of the terminology is used inconsistently within the field.
Survey of Existing Memory Devices Renee Gayle M. Chua.
MICROPROCESSOR INPUT/OUTPUT
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.
Version 3 Troubleshooting PC Hardware Module 13. Version 3 2 Troubleshooting Basics Effective troubleshooting uses techniques to diagnose and fix computer.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Computer Architecture Part IV-B: I/O Buses. Chipsets Intelligent bus controller chips found on the motherboard Enable higher speeds on one or more buses.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Data Communications & Computer Networks, Second Edition1 Chapter 6 Errors, Error Detection, and Error Control.
Chapter 6: Errors, Error Detection, and Error Control Data Communications and Computer Networks: A Business User’s Approach Third Edition.
Hard drives use magnetism to store information just like on old cassette tapes. Copper heads are used as they are easy to magnetize and demagnetize.
CSIT 301 (Blum)1 Disk Drives. CSIT 301 (Blum)2 Geometry Review A platter is divided into concentric circles called tracks. The tracks are further divided.
D ISCOVERING IDE D EVICES. IDE OVERVIEW The hard drive controller is responsible for converting signals made by the system CPU to signals that the hard.
Disk Interfaces Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Computer Architecture CST 250
Computer Architecture Lecture 32 Fasih ur Rehman.
D75P 34 – HNC Computer Architecture Week 8 Direct Memory Access. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where stated.
CSIT 301 (Blum)1 Processor Specs. CSIT 301 (Blum)2 Pentium 4 Processor Specs.
Input/Output Organization III: Commercial Bus Standards CE 140 A1/A2 20 August 2003.
1 COMPUTER ARCHITECTURE (for Erasmus students) Assoc.Prof. Stasys Maciulevičius Computer Dept.
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
CSIT 301 (Blum)1 NTFS. CSIT 301 (Blum)2 FAT Review FAT (16) uses up to 16 bits to address data on the hard drive (or partition thereof) –2 16 = 65,536.
CSIT 301 (Blum)1 DMA. CSIT 301 (Blum)2 Transfer Mode The transfer mode describes the way in which the data moves from the hard disk through the interface.
بسم الله الرحمن الرحيم MEMORY AND I/O.
10/15: Lecture Topics Input/Output –Types of I/O Devices –How devices communicate with the rest of the system communicating with the processor communicating.
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
Review ATA - IDE Project name : ATA – IDE Training Engineer : Minh Nguyen.
Chapter 7 Input/Output and Storage Systems. 2 Chapter 7 Objectives Understand how I/O systems work, including I/O methods and architectures. Become familiar.
DIRECT MEMORY ACCESS and Computer Buses
Input/Output and Communication
Advanced Technology Attachment
I/O System Chapter 5 Designed by .VAS.
I/O Memory Interface Topics:
Mr C Johnston ICT Teacher
Hard Drive Technologies
Chapter Overview CD-ROM and DVD Drives Advanced Hard Disk Drives
I/O BUSES.
DMA CSC 370 (Blum).
Hard Drive Components 1.5 Install and configure storage devices and use appropriate media YT Video 3:30.
Presentation transcript:

DMA

Transfer Mode The transfer mode describes the way in which the data moves from the hard disk through the interface (IDE/ATA) and to the memory. For example, it tells how fast data is transferred or what device is in charge of the transfer. There are two basic categories –PIO (Programmed I/O) Mode The processor micro-manages data transfer –DMA (Direct Memory Access) Mode The processor delegates data transfer

Programmed I/O (PIO) Modes In the PIO category, the processor controls the data transfer. There are various PIO modes which differ mainly by speed. Through the early to mid-90s PIO was the standard way to transfer data to the hard disk. The original ATA standards document defined the first three modes. With ATA-2, two faster modes were introduced.

Standard PIO Modes 3.3 MB/s = 3.3  10 6 bytes / second = (2 bytes / 600  s) Two bytes are transferred every 600 nanoseconds.

External rates The PIO rates on the previous slide are external rates meaning that they reflect the rate that data in the hard disk’s buffer/cache can be transferred. Recall that access times to locate and read from a random sector are of the order of milliseconds. –Reading a sector (512 bytes) in 20 ms would correspond to a rate of 25 KB/s. If one were not buffering and transferring consecutive data, the PIO mode rates would be sufficient. But we do transfer buffered data and the PIO transfer rates are considered prohibitively slow by today’s standards.

PIO is too, too slow PIO is slow in two ways: –One does not achieve the same data transfer rates as with Ultra DMA, which is the standard transfer mode used for IDE/ATA today. –Because the processor controls the details of the transfer in PIO, the processor is distracted from performing other tasks. Despite its slowness, PIO is still around because: –PIO is simple (built into the BIOS so it does not require drivers). –Backward compatibility –Can be used as a backup when something goes wrong with DMA.

DMA The alternative to PIO is DMA, Direct Memory Access. In DMA, a device transfers information to or from the memory directly rather than in a processor- controlled fashion. DMA has been around awhile but it was not always well supported early on. But speed requirements have made it preferred over PIO.

Various Modes As with PIO, DMA has various modes differing mainly by speed. DMA modes split into two categories: –Single-word modes which send one word (two bytes) at a time –Multiple-word modes which send several words in rapid succession (rather like the idea of bursting that accounts for improved memory speeds).

Assume it’s multiword The single-word DMA modes are too slow, today it is understood that DMA is multiword DMA and the term is rarely mentioned and usually implied. In fact, the single-word DMA modes were dropped from the standards with ATA-2. Ultra DMA is multiword.

First Party “The party of the first part shall be known in this contract as the party of the first part ”

First Party vs. Third Party In Third-Party DMA there is a third device, the DMA controller mediating the transfer between the hard disk and memory. –Third party DMA is slow and old fashioned. In First-Party DMA, a.k.a. bus mastering, the middle man is eliminated. The hard drive controls the transfer of data between itself and memory. –The device (hard drive in this case) takes control of (masters) the bus along which the information is sent.

Ultra DMA DMA only became the norm with the introduction of Ultra DMA. –It just wasn’t well supported before. DMA gained the advantage over PIO when Ultra DMA/33 doubled the interface transfer rate. –Support for it also improved. Ultra DMA became an industry standard.

Ultra DMA uses DDR and CRC One feature that made Ultra DMA “ultra” was that it transferred data on both the positive and negative edges of the clock. –Same idea as in DDR (Double Data Rate) memory As Ultra DMA pushed the limit on transfer rate, it made the occurrence of errors somewhat more likely. Thus it introduced a CRC (Cyclic Redundancy Check) as part of the standard. –Recall CRC is error detection. If an error occurs in transmission the data is retransmitted.

Ultra DMA transfer rates DMA finally beats PIO Mode 4’s 16.7 MB/s with the added bonus of freeing up the processor. The modes are usually named after their maximum transfer rate and the interface they use: Ultra ATA/100 instead of Ultra DMA/Mode 5.

New cable needed The faster speeds did require a change in the cable used to connect the drive. The 80-conductor ATA/EDE cable. Color Code –Blue: connects to the host (motherboard or controller). –Gray: connects to the slave drive (if there is one) –Black: connects to the master drive

80 wires and 40 pins?? (pre SATA) Signals are varying currents. Currents produce magnetic fields, varying currents produce varying magnetic fields. Varying magnetic fields produce currents. Oops, the current in wire 1 begins to change the current in wire 2. There is interference (a.k.a. cross talk) The extra wires shield the signal-carrying wires from each other.

Block Mode Certain BIOSs allow for a Block Mode setting. Block Mode allows 16 or 32 sectors (512 bytes each) to be handled using a single interrupt (even if the processor is not running the show it needs to know something has happened).

CSIT 301 (Blum)19 References PC Hardware in a Nutshell (Thompson and Thompson) All-in-One A+ Certification, Meyers and Jernigan