530 likes | 658 Vues
Chapter 3. Data Storage. Learning outcomes. By the end of this Chapter you will know the difference between Electronic memory Magnetic memory Optical memory. Additional Reading. Essential Reading Stalling (2003): Chapters 5 and 6 Further Reading Burrell (2004): Chapters 3 and 7
E N D
Chapter 3 Data Storage IS50004A
Learning outcomes • By the end of this Chapter you will know the difference between • Electronic memory • Magnetic memory • Optical memory IS50004A
Additional Reading • Essential Reading • Stalling (2003): Chapters 5 and 6 • Further Reading • Burrell (2004): Chapters 3 and 7 • Schneider and Gersting (2004): Chapters 4 and 5 • White (2002): Parts 3 and 4. IS50004A
Hardware Components IS50004A
Introduction • Information can be stored in different ways: • Books, • Films • Information is stored to be re-used. • Information in computers must be able to able to be processed by computers: • Information must be stored in appropriate places IS50004A
Introduction (Cont) • Computers use the binary system to store and process information. • Different type of media storage • Electronic memory (main memory) • Magnetic memory (hard disc) • optical memory (CD-ROM) IS50004A
Main memory CPU Add. bus Data bus Control bus IS50004A
Main memory IS50004A
Main Memory (Electronic Memory) • What is the role of the main memory? • Main memory stores data which are currently been processed or ready to be processed • Electronic memory (fast) • Based on electronic principles. • Formed with logic gates • Main Memory is volatile • It is divided into cells • Each cell is a sequence of one-bit memories • Each cell has a unique address IS50004A
Arrangement of Memory Cells • Each cell has a unique address • Longer strings stored by using consecutive cells value = 01101101 • RAM (random access memory) IS50004A
Media storage • Magnetic Storage • Tapes • Hard drives (not always removable) • Floppy • Zips • Jaz • ,Optical Storage • CDs • DVDs • Solid State Storage • Compact flash • Smart Media IS50004A
What is Magnetic Media? • The most common and enduring form of removable-storage technology is magnetic storage. • The magnetic medium can be easily erased and rewritten, and it will "remember" things stored onto the medium for many years. IS50004A
Magnetic Memory IS50004A
Magnetic tape (2) • Serial access (slow) • Good choice for off-line data storage (archives) IS50004A
Magnetic Tape (1) • Serial access • Slow • Very cheap • High capacity • Backup IS50004A
Magnetic Memory IS50004A
spots sector Magnetic disc • Each track contains same number of sectors • Each sector contains a number of • magnetized and demagnetized spots IS50004A
Magnetic Disk Terminology • Platter: • rigid metal or glass platter Coated with magnetic material. • rotating at constant angular velocity • Arm: • With movable magnetic read/write heads • Track: • A complete ring of data • The disk surface is divided into tracks • Sectors: • Each track is subdivided into sectors • Cylinder: • A vertical collection of tracks at the same radial position IS50004A
Magnetic Disks IS50004A
Magnetic disc density • Same number of bits per track • Tracks near the centre are more dense • The further is the tracks the less dense it is. • Constant Angular Velocity (CAV) • The disc rotation speed is constant to maintain a constant transfer. Stalling (2003) pages:167-168 IS50004A
Magnetic Disks Thus as the platter rotates under the head, a stream of bits can be written and later read back. IS50004A
Read and Write Mechanism (1) • Recording and retrieval via conductive coil called a head • May be single read/write head or separate ones • During read/write, head is stationary, platter rotates • Write • Electric Current through coil of wire produces magnetic field • Magnetic Pulses sent to the head • Magnetic pattern recorded on surface below • Read • Magnetised bit pattern • Magnetic field induces an electrical current in the coil • The bit pattern contains 1 • Demagnetised bit pattern • No Magnetic field induced, hence, no electrical current in the coil • The bit pattern contains 0 IS50004A
Fixed/Movable Head Disk • Fixed head • One read/write head per track • Heads mounted on fixed ridged arm • Movable head • One read/write head per side • Mounted on a movable arm IS50004A
Access Information on a Floppy disk • To access information on a floppy: • Track number, and • Sector number. • Head moves to the target track. • waits for the desired sector to spin underneath it • read/write begins. IS50004A
Maximum data transfer rate • It is the rate at which data passes under the read/write head (bytes/sec). • Number of bytes / track * Number of rev / sec IS50004A
Multiple Platter (hard disk) • Permanent storage that is inside of the computer, and NOT portable. • Consists of several platters which spin very fast • Heads are joined and aligned • Aligned tracks on each platter form cylinders • Data is striped by cylinder • reduces head movement • Increases speed (transfer rate) IS50004A
Multiple Platters (2) • Disk platters speed (3600 to 10 000 rpm (rev/min). • floppy (360rpm). • The read data we need to specify cylinder, head, and sector numbers. • Each cylinder represents a track number. IS50004A
Cylinders IS50004A
Magnetic Tape (1) • Serial access • Slow • Very cheap • High capacity • Backup IS50004A
Features of Magnetic Memory • Memory capacity: • Floppy can hold 700KB – 120MB. • Hard disk can hold dozen of GB, 10, 20,.. • Tapes can hold 100MB- 80GB. • Access method • Floppy and hard disks is random as the main memory • Tape is serial • Access time: • It is the average time taken to position the R/W head over the data to be read • For disk drives is about 10-3 sec when in MM 10-9sec. • Transfer rate: is slower. It is the transfer of data between MM and Mag/M. Floppy (500kB-2MB) and hard disc (4-12MB). IS50004A
Optical Storage – CD-ROM • Is a disc with highly reflective surface. • Tiny areas flat and depressed: • Flat (land) strong reflection. • Depressed (pits) low reflection. • Laser landstrong reflectionphoto-sensor generates electrical voltagestore 1s. • Laser: (light Amplification stimulated emission of radiation). • Lightpitslow reflection no electrical voltage stores 0s. IS50004A
CD-ROM Operation • Data stored by creating variations in the reflective surface • Data retrieved by means of a laser beam • Data stored uniformly (so CD rotation speed varies) • Random access much slower than for magnetic disks IS50004A
The pits and lands are written in a single continuous spiral starting near the hole and working out a distance of 32 mm toward the edge. The spiral makes 22,188 revolutions around the disk (about 600 per mm). If unwound, it would be 5.6 km long. IS50004A
Optical disc– Random access • Difficult • Move head to the right position • Set correct speed • Read address • Adjust to required location IS50004A
rev/m edges Constant linear velocity sector Constante density centre IS50004A