Upload
nobody47
View
218
Download
0
Embed Size (px)
Citation preview
8/9/2019 Lecture # 2 - Data Storage
1/32
Data Storage
8/9/2019 Lecture # 2 - Data Storage
2/32
Page 2
Bits and Bit Patterns
Bit: Binary Digit (0 or 1)
Bit Patterns are used to represent
information. Numbers
Text characters
Images Sound
And others
8/9/2019 Lecture # 2 - Data Storage
3/32
Page 3
Boolean Operations
Boolean Operation:An operation thatmanipulates one or more true/false
values
Specific operations
AND
OR XOR (exclusive or)
NOT
8/9/2019 Lecture # 2 - Data Storage
4/32
Page 4
The Boolean operations AND, OR, andXOR (exclusive or)
8/9/2019 Lecture # 2 - Data Storage
5/32
Page 5
Gates
Gate:A device that computes aBoolean operation
Often implemented as (small) electroniccircuits
Provide the building blocks from which
computers are constructedVLSI (Very Large Scale Integration)
8/9/2019 Lecture # 2 - Data Storage
6/32
Page 6
A pictorial representation of AND, OR, XOR, andNOT gates as well as their input and output values
8/9/2019 Lecture # 2 - Data Storage
7/32
Page 7
Hexadecimal Notation
Hexadecimal notation:A shorthandnotation for long bit patterns
Divides a pattern into groups of four bitseach
Represents each group by a single symbol
Example: 10100011 becomes A3
8/9/2019 Lecture # 2 - Data Storage
8/32
Page 8
The hexadecimal coding system
8/9/2019 Lecture # 2 - Data Storage
9/32
Page 9
Main Memory Cells
Cell:A unit of main memory (typically 8 bitswhich is one byte)
Most significant bit: the bit at the left(high-order) end of the conceptual row ofbits in a memory cell
Least significant bit: the bit at the right
(low-order) end of the conceptual row ofbits in a memory cell
8/9/2019 Lecture # 2 - Data Storage
10/32
Page 10
The organization of a byte-sizememory cell
8/9/2019 Lecture # 2 - Data Storage
11/32
Page 11
Main Memory Addresses
Address:A name that uniquely identifiesone cell in the computers main memory
The names are actually numbers. These numbers are assigned consecutively
starting atzero.
Numbering the cells in this mannerassociates an order with the memory cells.
8/9/2019 Lecture # 2 - Data Storage
12/32
Page 12
Memory cells arranged by address
8/9/2019 Lecture # 2 - Data Storage
13/32
Page 13
Memory Terminology
Random Access Memory (RAM):Memory in which individual cells can be
easily accessed in any order Dynamic Memory (DRAM): RAM
composed of volatile memory
8/9/2019 Lecture # 2 - Data Storage
14/32
Page 14
Measuring Memory Capacity
Kilobyte: 210 bytes = 1024 bytes Example: 3 KB = 3 times1024 bytes
Sometimes kibi rather than kilo Megabyte: 220 bytes = 1,048,576 bytes Example: 3 MB = 3 times 1,048,576 bytes Sometimes megi rather than mega
G
igabyte:230
bytes = 1,073,741,8
24bytes Example: 3 GB = 3 times 1,073,741,824
bytes Sometimes gigi rather than giga
8/9/2019 Lecture # 2 - Data Storage
15/32
Page 15
Mass Storage
On-line versus off-line
Typically larger than main memory
Typically less volatile than mainmemory
Typically slower than main memory
8/9/2019 Lecture # 2 - Data Storage
16/32
Page 16
Mass Storage Systems
Magnetic Systems Disk
Tape Optical Systems
CD
DVD
Flash Drives
8/9/2019 Lecture # 2 - Data Storage
17/32
Page 17
A magnetic disk storage system
8/9/2019 Lecture # 2 - Data Storage
18/32
Page 18
Magnetic tape storage
8/9/2019 Lecture # 2 - Data Storage
19/32
Page 19
CD storage
8/9/2019 Lecture # 2 - Data Storage
20/32
Page 20
Files
File:A unit of data stored in massstorage system
Fields and keyfields
Physical record versus Logical record
Buffer:A memory area used for the
temporary storage of data (usually as astep in transferring the data)
8/9/2019 Lecture # 2 - Data Storage
21/32
Page 21
Logical records versus physicalrecords on a disk
8/9/2019 Lecture # 2 - Data Storage
22/32
Page 22
Representing Text
Each character (letter, punctuation, etc.) isassigned a unique bit pattern.
ASCII: Uses patterns of 7-bits to represent mostsymbols used in written English text
Unicode: Uses patterns of 16-bits to represent themajor symbols used in languages world side
ISO standard: Uses patterns of 32-bits to
represent most symbols used in languages worldwide
8/9/2019 Lecture # 2 - Data Storage
23/32
Page 23
The message Hello. in ASCII
8/9/2019 Lecture # 2 - Data Storage
24/32
Page 24
Representing Numeric Values
Binary notation: Uses bits to representa number in base two
Limitations of computer representationsof numeric values Overflow occurs when a value is too big
to be represented
Truncation occurs when a value cannotbe represented accurately
8/9/2019 Lecture # 2 - Data Storage
25/32
Page 25
Representing Images
Bit map techniques Pixel: short for picture element
RGB Luminance and chrominance
Vector techniques Scalable
TrueType and PostScript
8/9/2019 Lecture # 2 - Data Storage
26/32
Page 26
Representing Sound
Sampling techniques
Used for high quality recordings
Records actual audio
MIDI
Used in music synthesizers
Records musical score
8/9/2019 Lecture # 2 - Data Storage
27/32
Page 27
The Binary System
The traditional decimal system is based
on powers of ten.
The Binary system is based on powers
of two.
8/9/2019 Lecture # 2 - Data Storage
28/32
Page 28
The base ten and binary systems
8/9/2019 Lecture # 2 - Data Storage
29/32
Page 29
Decoding the binaryrepresentation 100101
8/9/2019 Lecture # 2 - Data Storage
30/32
Page 30
The binary addition facts
8/9/2019 Lecture # 2 - Data Storage
31/32
Page 31
Compressing Images
GIF: Good for cartoons
JPEG: Good for photographs
TIFF: Good for image archiving
8/9/2019 Lecture # 2 - Data Storage
32/32
Page 32
Compressing Audio and Video
MPEG
High definition television broadcast
Video conferencing
MP3
Temporal masking
Frequency masking