YH Microprocessors-6 Memory Elements
YH Microprocessors-6 Memory Elements
YH Microprocessors-6 Memory Elements
Memory elements
Yashar Hajiyev
Azerbaijan Caucasus University
1
The Key Characteristics of Computer Memory System
Word → unit of memory organization. CRAY C90 has 64-bits word length.
2
The Methods of accessing of memory elements
Sequential access → shared read/write mechanisms to separate records from current positions to
desired location.
Memory cycle time → time of access + additional time before next access available.
Transfer rate → rate for data can be transferred into or out of memory elements.
Is equal to 1/(cycle time)
3
The Memory Hierarchy
5
The Memory Addressing
6
The Architecture Addressing
7
8
9
10
11
12
The Magnetic Disc
Contemporary rigid disk system
13
Disks. Disk Hardware
14
Disks
A hard disk consists of a stack of aluminum, alloy, or glass platters
(boyuk mustevi) 5.25 inch or 3.5 inch in diameter (or even smaller
on notebook computers).
On each platter is deposited a thin magnetizable metal oxide. After
manufacturing, there is no information whatsoever on the disk.
16
Disks
A 2.5" hard drive that has been opened, exposing its inner workings.
Below 500GB Western Digital Scorpio Blue hard drive
with SATA connections.
This 2.5" hard drive is common in laptops.
17
Each sector stores a fixed amount of user-accessible data, traditionally 512 bytes
for hard disk drives (HDDs) and 2048 bytes for CD-ROMs
and DVD-ROMs.
18
Disk Hardware (2)
21
The Magnetic Disc
Contemporary rigid disk system
22
The Magnetic Disc
Contemporary rigid disk system
23
The Magnetic Disc
Contemporary rigid disk system
24
The Magnetic Disc
Contemporary rigid disk system
25
The Magnetic Disc
Contemporary rigid disk system
26
The Magnetic Disc
Contemporary rigid disk system
27
Contemporary rigid disk system
Data Organization and Formatting
30
A disk sector
31
A disk sector
32
33
Disk sectors
34
Contemporary rigid disk system
Data Organization and Formatting
ID field → identifier of
sector address/localization
37
Hard disk drive operating parameters
Features of disk I/O operations depend on 1) Computer system; 2) Operating system;
3)Nature of I/O channel; 4) Disk controller hardware.
Seek time to position head at track →disk controller waits when selected sector
rotates to line up with head. Average seek time is <10 ms.
Rotational delay time for beginning of sector to reach the head
rotation speed 3600—15000 rpm , one revolution per 4 ms → rotation delay =2 ms
for floppy disks rotation speed 300—600 rpm → rotation delay =100 — 50 ms ;
Access time = Seek time + Rotational delay time to get in position to read/write.
average access time Ta= Ts+ 1/2r + b/rN
Data transfer time time for read/write operation on sector under head.
T=b/rN ; T transfer time; N number of bytes on track;
r-rotation;
Wait for device time for waiting in a queue for device for I/O operations;
Wait for channel if device shares I/O channels with other disk drives →waiting 38
for
Hard disk drive operating parameters
Average seek — 4 ms
Average rotation delay — 2 ms
Read 500 sectors — 4 ms
------------
10 ms
Total time = 10+ (4 x 6) = 34 ms
Average seek — 4 ms
Average rotation delay — 2 ms
Read 1 sector — 0,008 ms
------------
6,008 ms
Total time = 2500 sectors x 6,008 ms = 15020 ms = 15 seconds
39
Disk Arm Scheduling Algorithms (1)
1. Seek time
2. Rotational delay
3. Actual transfer time
40
Disk Arm Scheduling Algorithms (2)
41
Disk Arm Scheduling Algorithms (3)
42
Disk Arm Scheduling Algorithms (3)
43
Error Handling
44
Search errors caused by Bad sectors and mechanical problems in the
arm.
The controller keeps track of the arm position internally.
To perform a seek, it issues a series of pulses to arm motor —
one pulse per cylinder,→ to move arm to new cylinder.
When arm gets to its destination, the controller reads the actual
cylinder number from the preamble of next sector.
If the arm is in the wrong place, a seek error has occurred.
Most hard disk controllers correct seek errors automatically, but most
floppy controllers (including the Pentium’s) just set an error bit and
leave the rest to the driver.
The driver handles this error by issuing a recalibrate command, to
move the arm as far out as it will go and reset the controller’s
internal idea of the current cylinder to 0.
Usually this solves the problem. If it does not, the drive must be
repaired. 45
46
3.5 inch4 in × 1 in × 5.75 in (101.6 mm × 25.4 mm × 146 mm) = 376.77344 cm³.
This smaller form factor is similar to that used in an HDD by Rodime in 1983,[104]
which was the same size as the "half height" 3½" FDD, i.e., 1.63 inches high.
Today, the 1-inch high ("slimline" or "low-profile") version of this form factor is the
most popular form used in most desktops. The format was standardized in terms
of dimensions and positions of mounting holes as EIA/ECA-740, co-published as
SFF-8301.[105]
52
Commercial Available HDD Parameters
CD Disk
58
Optical -disk Systems for Computer Data Storage
CD and CD-ROM organize info on single spiral track (not on concentric tracks) beginning
from center. Sectors are same length along the spiral track.
Info is packed in segments of same size and scanned by laser at the constant linear velocity
(CLV) or same rate by rotating disk at a variable speed.
Disk rotates slowly at outer edge than near the center.
CD-ROM capacity is about 680MB.
Data on CD-ROM are in the form of blocks which consists of following fields:
Sync is identification of beginning of block of 12 bytes →1 byte of 00s + 10 bytes of
11s + 1byte of 00s ;
Header contains block (3bytes) address (min+sec+sector) and mode byte →
mode 0 is blank data field;
mode 1→ is using error correcting code byte and 2048 bytes of data;
mode 2→ is 2336 bytes of data + no error correction code;
Digital Versatile Disk (DVD) originally was engineered to replace VHS video tape.
DVD has three differences from CD-ROM :
1 →bits are packed more closely.
In CD spacing between spirals is 1.6 µm, between pits 0.834 µm. Memory vol is 700 MB;
In DVD between spirals is 0.74 µm and between pits is 0.4 µm. Memory volume is 4.7 GB
2 →DVD has second layer of pits and lands on first layer, so dual-layer DVD has
mem/volume 8.5 GB .
3 →DVD can be two-sided with memory capacity up to 17 GB
60
Optical -disk Systems for Computer Data Storage
61
Semiconductor Main Memory
Basic element of semiconductor memory → is memory cell with
properties :
-has two stable states which persaved as 0 or 1;
-is capable of being written into to set the state;
-is capable of being read to sense the state
RAM is volatile/temporary storage element and has to be supplied with electric power →
divided in Dynamic RAM (DRAM) and Static RAM (SRAM).
ROM is non-volatile storage element and no-power source is required to maintain bit in
memory.
Best application for ROM is microprogramming, system programs, function tables,
library for frequently wanted functions, for high-volume production runs.
ROM is integrated circuit chip, where data is wired in chip during fabrication process.
Three types of ROM → used for read-mostly memory where read operations are
more fluent than writing EPROM, EEPROM, and flash memory.
Flash memory →is between EPROM and EEPROM, uses electrical erasing
(like EEPROM). It’s possible to erase blocks of memory rather than entire chip,
and not byte-level erasure. Flash like EPROM uses 1 transistor per bit –high
density.
RAM and ROM chip organization
Static and Dynamic RAMs are volatile → power must be
4 bits are read/written at permanently.
time. DRAM – much smaller and chipper, but some slower than SRAM.
Memory array consist of DRAM – for main memory, SRAM – for cache memory
2048 (211) by 2048 (211)
elements Chip Logic 16- Mbit DRAM (4M x 4)
WE is write enable
Two signal packets are signal – from D1-D4.
passing through 11 OE is output enable
address lines at time signal – to D1-D4
CE chip enable (CE) pin – to indicate address code is valid for this
chip → is connected to higher address lines above A19;
Chip Packaging
Memory Module Organization Archtecture
SDRAM has mode register and associated control logic that specifies
burst length .number of data synchronously fed in bus
Burst read
command
when at rising
edge of
clock pulse →
CS & CAS are
low,
and RAS & WE
are high
Mode Register
Is set by CAS
that equals to
delay from start
of command to
when data from
first cell appears
on outputs
Double data rate SDRAM (DDR-SDRAM) is enhanced version, that overcomes of
once-per-cycle limitation. It can send data to processor twice per clock cycle
Rambus DRAM (RDRAM)
Rambus DRAM adopted by INTEL for Pentium and Itanium processors is the main
competitor for SDRAM.
Rambus DRAM chips are vertical packages with all pins on one side changes data with
MP over 28 wires bus no longer 12 cm.
Special high speed BUS can address up to 320 RDRAM chips is rated at 1.6 GBps.
BUS delivers address and control info by using asynchronous block-oriented protocol.
Initial access time →460 ns. Data rate → 1.6 GBps
Controlled signals RAS, CAS, R/W and CE are the same as for SDRAM. Memory request over
Bus contains desired address, type of operation, and number of bytes In operation.
RDRAM module sends data to Controller synchronously to clock; Controller to module in
opposite direction.