Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 3 Data Storage. Media Storage Main memory (Electronic Memory): Stores data currently being used Is made of semiconductor chips. Secondary Memory.

Similar presentations


Presentation on theme: "Chapter 3 Data Storage. Media Storage Main memory (Electronic Memory): Stores data currently being used Is made of semiconductor chips. Secondary Memory."— Presentation transcript:

1 Chapter 3 Data Storage

2 Media Storage Main memory (Electronic Memory): Stores data currently being used Is made of semiconductor chips. Secondary Memory magnetic (floppy discs, hard disc ) Optical (CD-ROM, DVD)

3 Main Memory Large collection of circuits, each capable of storing a single bit Arranged in small cells, typically of 8 bits each (a.k.a.: byte)

4 Arrangement of Memory Cells value = 01101101 Each cell has a unique address Longer strings stored by using consecutive cells RAM (random access memory)

5 Memory cells In reality, most electronic memories have 8-bit cells. m cells n-bit cells Can hold m*n bits

6 Accessing Data in the Main Memory Instructions and data are stored in the main memory in a serial order. CPU executes instructions one by one top down. An instruction may tell the CPU to jump to particular cell and execute the instruction held in it, or fetch the data stored is that cell. How is this done?

7 System Bus Main memory and CPU are linked using a set of wire: Three wires: address lines, data lines and control lines. Known as address bus, data bus and control bus. System bus

8 CPU Main memory Add. bus Data bus Control bus To identify each memory cell To read data from each cell To issue read or write signal

9 Address Bus CPU Main memory Address bus Address Of the cell To activated Address Of the cell To activated

10 Binary Address Representation Each cell has a unique address. I.e. using 4 digit binary representation we have: 0000 cell 0 0001 cell 1 0010 cell 2 0100 cell 3 How many bits are needed to represent an address?

11 Address Decoder CPU Main memory Address bus Address Of the cell To activated Unique cell Has a unique Address. Decoder

12 A Simple Address Decoder Q0 00 C0 Q1 01 C1 Q2 10 C2 Q3 11 C3 A1 A0 2 ad-lines 4 address cells Decoder is a device between the Main Memory and the address lines.

13 Decoder with N Address Lines Main Memory 0000…0000 0000…0001 0000…0010 1111…1111 a0a0 a1a1 AN-1 N add. lines 2 N add cell

14 Multiplexer Cells form rows and columns. Each cell can be identified by a row address and column address. Each cells address uses only N/2 address lines. This can be done using a multiplixed addresses.

15 Decoder with 4 Address Lines (non-multiplexed addresses) 0000000100100011 0100010101100111 1000100110101011 1100110111101111

16 Decoder with 2 Address Lines (multiplexed addresses) 00000100100011 01000101100111 10001001101011 11001101111011 00 01 10 11 01 10 00

17 Two-Input Multiplexer A multiplexer is an electronic device that allows multiple logical signals to be transmitted simultaneously across a single physical channel (address line).

18 Choose the correct answer A computer’s main memory is linked to a decoder with 8 address lines. The maximum number of address that can be generated is (a) 2 8 (b) 8 2 (c) 2 16

19 Example 1 Suppose computer’s Main Memory is linked to a decoder with 8 address lines. 1. Can 1000 memory cells be used? 2. If no what is the maximum number of addresses that can generated?

20 Answer Suppose computer’s Main Memory is linked to a decoder with 8 address lines. 1. Can 1000 memory cells be used? 2. If no what is the maximum number of addresses that can generated? Answer: 1. NO 2. With 8 address lines, the maximum number of addresses is 2 8 =256

21 Example 2 Suppose that a computer’s Main Memory has 1013 cells. How many address lines are needed in order for all the cells to be useable? Explain your answer.

22 Answer Suppose that a computer’s Main Memory has 1013 cells. How many address lines are needed in order for all the cells to be useable? Explain your answer. Answer: With N address lines a computer can have a maximum 2 N usable cells. 2 9 = 512, 2 10 = 1024. 9 address lines would not generate enough addresses for 1013 cells to be used. 10 address lines would. Having more than 10 address lines would lead to too many addresses wasted. So the desired number of address lines is 10. N = ⌈ log2(1050) ⌉ can be used to find the number of address lines. If multiplexed addresses is used, then 5 address lines would be sufficient for 1013 cells to be useable.

23 Address Space The address space of a computer is the maximum number of cells a computer can hold. The address space is determined by the number of address lines used in a computer. If each cell in a memory is 8-bit, then the memory is called byte addressable: 1 byte long has a unique address

24 Features of the Main Memory Memory Capacity. Access of information Access time Transfer rate

25 Memory Capacity Most computer’s memory have 8-bit (1-byte) cells. In this case we have: 32KB, 256MB and 20GB are used to describe the memory capacity. Address lines N o of cells Capacity N2^N2^N * 1

26 Capacity Units 1kB = 2 10 = 1024 Byte. 1MB =1024 KB = 2 20 Bytes= 1, 048,576 B. 1GB =1024 MB = 2 30 kB=1, 073,741,824 Bytes.

27 Access Time Access time is taken between the moment when the CPU wants the read/write from/into a cell and the moment when the cell is activated. It is the moment that the CPU takes to activate a cell. 60ns (10 -9 sec)

28 Transfer Rate Is the amount of information per second exchanged between the CPU and main memory. Main memory electronic signals Implies fast transfer rate in the scale about 100MB/sec

29 Random Access If the CPU wants to activate particular cell. It does not search for the target cell from top to bottom. It does put the address of the target cell in the address line, then the cell will be activated. This type of accessing information is called Random Access

30 The need for other type of memories. Main memory Fast as all the exchange between CPU and Main memory is done electronically. However, it is volatile. Information lost when the machine is turned off. The need for non-volatile memory: Hold information when the machine is off. i.e. Magnetic disk, optical disk, magnetic tape

31 A Magnetic Disk Storage System Each track contains same number of sectors Location of tracks and sectors not permanent (formatting) Examples: hard disks, floppy disks,...

32 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 (see slides 71-72): A vertical collection of tracks at the same radial position

33 Read/write Head A coil of wire wound onto an iron former. gap. If a spot on the magnetic memory passes under the gap then an electrical current is induced in the coil. And the read/write head will know that there is a 1 stored on that spot. Otherwise it is 0. By passing an electric current on the wire we can magnetise and demagnetise spots. Coil of wire Iron former

34 Add. bus Data bus Control bus CPU 1 01010 1 1 Read and Write Mechanism (2)

35 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

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

37 Cylinders

38 Magnetic Tape (1) Serial access Slow Very cheap High capacity Backup

39 Optical Storage CD-ROM Originally for audio 650 Mbytes giving over 70 minutes audio Polycarbonate coated with highly reflective coat, usually aluminium Data stored as pits Read by reflecting laser Constant packing density (data/surface= constant) More data in outer edges Less data towards the centre of the disc Constant linear velocity The drive must adjust the disc speed (495 to 212 rev/m)  edges Faster when reading data closer to the centre Slower when reading data in outer edges

40 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  land  strong reflection  photo-sensor generates electrical voltage  store 1s. Laser: (light Amplification stimulated emission of radiation). Light  pits  low reflection  no electrical voltage  stores 0s.

41 Summary Main memory RAM Low storage capacity Fast (electrical signals) Volatile. Magnetic memory Floppy disk Hard disk Magnetic tape Optical memory CD_ROM disk DVD


Download ppt "Chapter 3 Data Storage. Media Storage Main memory (Electronic Memory): Stores data currently being used Is made of semiconductor chips. Secondary Memory."

Similar presentations


Ads by Google