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.

Slides:



Advertisements
Similar presentations
IT253: Computer Organization
Advertisements

I/O Organization popo.
CSIT 301 (Blum)1 Hard Drives Continued. CSIT 301 (Blum)2 Power Connectors The larger is the so-called Molex connector. The smaller is called the mini.
Improving Networks Worldwide. UNH InterOperability Lab Serial Advanced Technology Attachment (SATA) Use Cases.
Chapter 22 All About SCSI.
IT Systems In and Out EN230-1 Justin Champion C208 –
Storage Networking Technologies and Virtualization Section 2 DAS and Introduction to SCSI1.
Terms 5 Definitions and Questions. ISA The original 8- and 16-bit expansion card standard used in PCs. ISA cards run at a bus speed of 8MHz. You can plug.
Local Asynchronous Communications. Bit-wise data transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding.
UNH InterOperability Lab Serial Advanced Technology Attachment (SATA) Use Cases.
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.
Chapter 8 All About SCSI.
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:
CSC 370 (Blum)1 Hardware Overview Continued. CSC 370 (Blum)2 Serial Port The serial port is used along with a local communication standard that transmits.
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.
CSIT 301 (Blum)1 Hard Drives Continued. CSIT 301 (Blum)2 Latency and Spindle Speed The time it must wait for the correct sector to swing by clearly depends.
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).
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 22 All About SCSI.
SCSI Richard Goldman April 2000
Personal Computer Hard Drive ATA Interface
CHAPTER 5 I/O PRINCIPLE Understand the principles of System Bus
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.
System Resources.
Buses Warning: some of the terminology is used inconsistently within the field.
MICROPROCESSOR INPUT/OUTPUT
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
Storage Devices Chapter 7. Floppy Drive Overview The floppy drive subsystem consists of three main parts: ▫the electronic circuits or the controller,
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.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
SCSI Chapter 13. SCSI Small Computer System Interface introduced in 1979 as a means of mass storage Common SCSI devices Hard drives- Scanners Tape backup.
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.
Interrupts, Buses Chapter 6.2.5, Introduction to Interrupts Interrupts are a mechanism by which other modules (e.g. I/O) may interrupt normal.
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.
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
1 SCSI. 2 SCSI Hard Drives 3 SCSI drives are faster. SCSI drives are faster. More expensive. More expensive. Require a separate host adapter. Require.
CSIT 301 (Blum)1 Hardware Overview Continued. CSIT 301 (Blum)2 Serial Port The serial port is used along with a local communication standard that transmits.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 22 All About SCSI.
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.
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.
بسم الله الرحمن الرحيم MEMORY AND I/O.
What is a Bus? A Bus is a communication system that transfers data between components inside a computer or between computers. Collection of wires Data.
Next slide Previous slide Slide A Connecting Internal Components Revision Week 6 Adding Hard Drives (IDE), Expansion Cards and Memory Use the mouse.
IDE and SATA standards Group: Hoàng Thị Thanh Nhàn Hoàng Thị Lan Chung Đinh Thị Bình.
DIRECT MEMORY ACCESS and Computer Buses
SCSI.
Advanced Technology Attachment
Operating Systems (CS 340 D)
Mr C Johnston ICT Teacher
IRQ, DMA and I/O Ports - Introduction -
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.
Chapter 13: I/O Systems.
Presentation transcript:

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 (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

CSIT 301 (Blum)3 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.

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

CSIT 301 (Blum)5 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.

CSIT 301 (Blum)6 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.

CSIT 301 (Blum)7 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.

CSIT 301 (Blum)8 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).

CSIT 301 (Blum)9

10 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.

CSIT 301 (Blum)11 First Party “The party of the first part shall be known in this contract as the party of the first part ”

CSIT 301 (Blum)12 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.

CSIT 301 (Blum)13 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. Today, Ultra DMA is an industry standard.

CSIT 301 (Blum)14 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.

CSIT 301 (Blum)15 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.

CSIT 301 (Blum)16 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

CSIT 301 (Blum)17 80 wires and 40 pins?? 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.

CSIT 301 (Blum)18 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 IRQs Devices cannot interrupt the processor whenever they want. Instead they must request the processor’s attention. Interrupt Request Numbers are an addressing scheme so that the processor can determine which device wanted its attention when when it gets around to checking for interrupts.

CSIT 301 (Blum)20 Resources Many devices might want to interrupt the processor, so devices are assigned IRQs. –Usually this is done automatically. Occasionally two devices vie for the same slot and a conflict arises. Devices other than the hard drive transfer information to or from memory and they use DMA as well. Devices are assigned ranges of memory they can use for DMA so as to avoid conflicts. IRQs and DMA ranges are called system resources.

CSIT 301 (Blum)21

CSIT 301 (Blum)22

CSIT 301 (Blum)23

CSIT 301 (Blum)24 Viewing Resources for a Device

CSIT 301 (Blum)25 Viewing Resources for a Device

CSIT 301 (Blum)26 Viewing Resources for a Device Double click

CSIT 301 (Blum)27 Viewing Resources for a Device

CSIT 301 (Blum)28 A Different Device

CSIT 301 (Blum)29 Yet Another Device

CSIT 301 (Blum)30 ATAPI The ATA/IDE Interface was originally designed for hard drives only. AT Attachment Packet Interface (ATAPI) is a protocol that allows devices that are not hard drives to use this interface. –Instructions are sent to it in “packets”

CSIT 301 (Blum)31 ATA Standard Summary Table

CSIT 301 (Blum)32 Connecting a Hard Drive There are typically three sets of pins and/or connectors associated with a hard drive –Power (Molex): the juice that allows it to operate –Data Interface: where data, addresses, instructions enter and leave –Jumper: switches that specify in what mode the drive will operate

CSIT 301 (Blum)33 Power, Jumper and Data Interface

CSIT 301 (Blum)34 Power Connectors The larger is the so-called Molex connector. The smaller is called the mini connector.

CSIT 301 (Blum)35 Two Categories There are two basic categories of hard drives which have different interfaces. IDE/ATA –ATA (Advanced Technology Attachment) is the formal name for IDE (Integrated Drive Electronics) is one of the standard interfaces between the motherboard and drives SCSI: –Small Computer System Interface (“scuzzy”) is another interface particularly well suited for connecting many devices to

CSIT 301 (Blum)36 Different Interfaces/Different Connectors IDE/ATA uses a 40-pin rectangular connector. SCSI uses one of the following –50-pin D-shaped connector (narrow SCSI) –68-pin D-shaped connector (wide SCSI) –or 80-pin D-shaped connector (wide SCSI using single connector attachment (SCA))

CSIT 301 (Blum)37 Data Interface Connectors ATA/IDE SCSI

CSIT 301 (Blum)38 IDE/ATA Jumper Settings If two IDE/ATA drives share the interface, one is designated the master, the other the slave. The various jumper settings are mainly connected with this. It may specify the drive –As the master –As the slave –As either depending on its position

CSIT 301 (Blum)39 IDE/ATA Jumpers MA: Master SL: Slave CS: Cable select SO: Sole/Only (not shown) SP: Slave Present (not shown)

CSIT 301 (Blum)40 SCSI Jumper SCSI drives tend to be higher-end drives. They are more sophisticated and the SCSI interface more flexible. Thus the SCSI drives tend to have more jumpers.

CSIT 301 (Blum)41 SCSI Jumper (Cont.) The master-slave designation in ATA/IDE drives is effectively an an address – one bit to distinguish/address between two drives The SCSI interface allow more devices (in this case drives) to be connected to a single interface. There are more bits (3 or 4) in the address. The jumpers indicating this address are known as the device ID jumpers.

CSIT 301 (Blum)42 The Terminator SCSI devices are connected to one another in an arrangement known as a daisy chain. The termination active jump determines if the device is the “end of the line.”

CSIT 301 (Blum)43 Disable Auto Start/ Delay Auto Start Recall the power issues involved in spinning up. Disable Auto Start says do not spin up as soon as you get power but wait for some signal from the controller Delay Auto Start says when you detect power, delay awhile, then spin up Stagger Spin: delay for a time factor based on your ID (address)

CSIT 301 (Blum)44 More SCSI Jumper Settings Narrow/Wide: select between two standard SCSI bus widths Force SE: select between Single Edge (SE) and (high voltage) Differential (HVD) signals –SE uses one voltage which may be high or low; HVD uses two voltages the 2 nd is the negative of the first, one then examines the voltage difference Disable Parity: will or won’t use parity

CSIT 301 (Blum)45 Serial ATA The older, regular ATA is a parallel data connection, it is being replaced by serial ATA (SATA). –Similar to the USB port taking over roles previously played by the parallel port, the notion that serial connections are prohibitively slow has been overcome. –During this period of transition from a parallel ATA standard to a serial ATA standard, one has to be wary of compatibility issues.

CSIT 301 (Blum)46 SATA ports on a motherboard

CSIT 301 (Blum)47 A 15-pin Serial ATA power connector.

CSIT 301 (Blum)48 A 7-pin Serial ATA data cable.

CSIT 301 (Blum)49 SATA The serial connection not only requires fewer wires (making it more flexible) but also allows those wires to be longer. –Also with fewer wires, there is less of a chance for crosstalk (interference). –SATA cables can be up to 1 m (39 in.) long. PATA ribbon cables, in comparison, carry either 40 or 80- conductor wires and are limited to 46 cm (18 in.) in length –PATA: Parallel Advanced Technology Attachment

CSIT 301 (Blum)50 SATA specifications First-generation Serial ATA interfaces, also known as SATA/150, run at 1.5 gigahertz. –(3.0 Gbs with SATA 3Gb/s (sometimes known as SATA II) This encoding scheme has an efficiency of 80%, resulting in an actual data transfer rate of 1.2 gigabits per second (Gbit/s), or 150 megabytes per second. Following another trend, the SATA standard uses low voltages (specifically Low voltage differential signaling LVDS).

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