Top Banner
Data Storage
49

INTRODUCTION TO COMPUTING

Mar 18, 2016

Download

Documents

sonora

INTRODUCTION TO COMPUTING. Data Storage. PART I. What is Computer ? What is Hardware ? What is Software ? What are the Input/ Output Devices ? Von Neumann Architecture CPU Introduction to Memory. What is a Computer?. Hardware vs. Software. Common Desktop Hardware. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: INTRODUCTION TO  COMPUTING

Data Storage

Page 2: INTRODUCTION TO  COMPUTING

PART IWhat is Computer ?What is Hardware ?What is Software ?What are the Input/ Output Devices ?Von Neumann ArchitectureCPU Introduction to Memory

Page 3: INTRODUCTION TO  COMPUTING

What is a Computer?

Page 4: INTRODUCTION TO  COMPUTING

Hardware vs. Software

Page 5: INTRODUCTION TO  COMPUTING

Common Desktop Hardware

Page 6: INTRODUCTION TO  COMPUTING

von Neumann Architecture Although specific components may vary, virtually all

modern computers have the same underlying structure known as the von Neumann architecture named after computer pioneer, John von Neumann,

who popularized the design in the early 1950's

The von Neumann architecture identifies 3 essential components1. Input/Output Devices (I/O) allow the user to interact

with the computer2. Memory stores information to be processed as well as

programs (instructions specifying the steps necessary to complete specific tasks)

3. Central Processing Unit (CPU) carries out the instructions to process information

Page 7: INTRODUCTION TO  COMPUTING
Page 8: INTRODUCTION TO  COMPUTING

Central Processing Unit (CPU)the CPU is the "brains" of the computer, responsible for controlling its inner workings

made of circuitry – electronic components wired together to control the flow of electrical signals

the circuitry is embedded in a small silicon chip, 1-2 inches square

despite its small size, the CPU is the most complex part of a computer (CPU circuitry can have 100's of millions of individual

components)

commercial examples: Intel Core 2 Duo, AMD Athlon, Motorola PowerPC G4, ARM,

Page 9: INTRODUCTION TO  COMPUTING

CPU (cont.)the CPU works by repeatedly fetching a

program instruction from memory and executing that instructionindividual instructions are very simple (e.g.,

add two numbers, or copy this data)complex behavior results from incredible

speeda 2.53 GHz Celeron D processor can execute 2.53

billion instructions per seconda 2.93 GHz Core 2 Duo processor can execute

2.93 billion instructions per second

Page 10: INTRODUCTION TO  COMPUTING

Memorymemory is the part of the computer that stores

data and programs

modern computers are digital devices, meaning they store and process information as binary digits (bits)bits are commonly represented as either 0 or 1bits are the building block of digital memory

by grouping bits together, large ranges of values can be represented

Page 11: INTRODUCTION TO  COMPUTING

Memory (cont.)modern computers use a combination of memory types, each with its own performance and cost characteristics

main memory (or primary memory) is fast and expensive data is stored as electric signals in circuitry, used to store active data memory is volatile – data is lost when the computer is turned off examples: Random Access Memory (RAM), cache

secondary memory is slower but cheaper use different technologies (magnetic signals on hard disk, reflective spots on CD) memory is permanent – useful for storing long-term data examples: hard disk, floppy disk, compact disk (CD), flash drive

Page 12: INTRODUCTION TO  COMPUTING

Memory (cont.)higher-end computers tend to have

more main memory to allow for quick access to more data and programs more secondary memory to allow for storing more long-term data

Page 13: INTRODUCTION TO  COMPUTING

Input/Output (I/O) input devices allow the computer to receive data and instructions from external sources examples: keyboard, mouse, track pad, microphone, scanner

output devices allow the computer to display or broadcast its results examples: monitor, speaker, printer

Page 14: INTRODUCTION TO  COMPUTING

Software recall: hardware refers to the physical components of computers software refers to the programs that execute on the hardware

a software program is a sequence of instructions for the computer (more specifically, for the CPU) to carry out in order to complete some task e.g., word processing (Microsoft Word, Corel WordPerfect) e.g., image processing (Adobe Photoshop, Macromedia Flash) e.g., Web browsing (Internet Explorer, Mozilla Firefox)

Page 15: INTRODUCTION TO  COMPUTING

QuestioQuestions ???ns ???

Page 16: INTRODUCTION TO  COMPUTING

PART IIWhat are bits and Bytes?Boolean OperationsFlip Flop GatesOrganization of Main MemoryHexadecimal NotationMagnetic Disks and TapesRepresentation of Data, Sound , Text ,

Images

Page 17: INTRODUCTION TO  COMPUTING

Bits and Bit PatternsBit: Binary Digit (0 or 1)Bit Patterns are used to represent

information.NumbersText charactersImagesSoundAnd others

Page 18: INTRODUCTION TO  COMPUTING

Boolean OperationsBoolean Operation: An operation that

manipulates one or more true/false valuesSpecific operations

ANDORXOR (exclusive or)NOT

Page 19: INTRODUCTION TO  COMPUTING

Figure 1.1 The Boolean operations AND, OR, and XOR (exclusive or)

Page 20: INTRODUCTION TO  COMPUTING

GatesGate: A device that computes a Boolean

operationOften implemented as (small) electronic

circuitsProvide the building blocks from which

computers are constructedVLSI (Very Large Scale Integration)

Page 21: INTRODUCTION TO  COMPUTING

Figure 1.2 A pictorial representation of AND, OR, XOR, and NOT gates as well as their input and output values

Page 22: INTRODUCTION TO  COMPUTING

Flip-flopsFlip-flop: A circuit built from gates that can

store one bit.One input line is used to set its stored value to 1One input line is used to set its stored value to 0While both input lines are 0, the most recently

stored value is preserved

Page 23: INTRODUCTION TO  COMPUTING

Figure 1.3 A simple flip-flop circuit

Page 24: INTRODUCTION TO  COMPUTING

Figure 1.4 Setting the output of a flip-flop to 1

Page 25: INTRODUCTION TO  COMPUTING
Page 26: INTRODUCTION TO  COMPUTING
Page 27: INTRODUCTION TO  COMPUTING

Figure 1.5 Another way of constructing a flip-flop

Page 28: INTRODUCTION TO  COMPUTING

Hexadecimal NotationHexadecimal notation: A shorthand

notation for long bit patternsDivides a pattern into groups of four bits eachRepresents each group by a single symbol

Example: 10100011 becomes A3

Page 29: INTRODUCTION TO  COMPUTING

Figure 1.6 The hexadecimal coding system

Page 30: INTRODUCTION TO  COMPUTING

Main Memory CellsCell: A unit of main memory (typically 8

bits which is one byte)Most significant bit: the bit at the left (high-

order) end of the conceptual row of bits in a memory cell

Least significant bit: the bit at the right (low-order) end of the conceptual row of bits in a memory cell

Page 31: INTRODUCTION TO  COMPUTING

Figure 1.7 The organization of a byte-size memory cell

Page 32: INTRODUCTION TO  COMPUTING

Main Memory AddressesAddress: A “name” that uniquely

identifies one cell in the computer’s main memoryThe names are actually numbers.These numbers are assigned consecutively

starting at zero.Numbering the cells in this manner associates

an order with the memory cells.

Page 33: INTRODUCTION TO  COMPUTING

Figure 1.8 Memory cells arranged by address

Page 34: INTRODUCTION TO  COMPUTING

Memory TerminologyRandom Access Memory (RAM): Memory

in which individual cells can be easily accessed in any order

Dynamic Memory (DRAM): RAM composed of volatile memory

Page 35: INTRODUCTION TO  COMPUTING

Measuring Memory CapacityKilobyte: 210 bytes = 1024 bytes

Example: 3 KB = 3 times1024 bytesSometimes “kibi” rather than “kilo”

Megabyte: 220 bytes = 1,048,576 bytesExample: 3 MB = 3 times 1,048,576 bytesSometimes “megi” rather than “mega”

Gigabyte: 230 bytes = 1,073,741,824 bytesExample: 3 GB = 3 times 1,073,741,824 bytesSometimes “gigi” rather than “giga”

Page 36: INTRODUCTION TO  COMPUTING

Mass StorageOn-line versus off-lineTypically larger than main memoryTypically less volatile than main memoryTypically slower than main memory

Page 37: INTRODUCTION TO  COMPUTING

Mass Storage SystemsMagnetic Systems

DiskTape

Optical SystemsCDDVD

Flash Drives

Page 38: INTRODUCTION TO  COMPUTING

Figure 1.9 A magnetic disk storage system

Page 39: INTRODUCTION TO  COMPUTING

Figure 1.10 Magnetic tape storage

Page 40: INTRODUCTION TO  COMPUTING

Figure 1.11 CD storage

Page 41: INTRODUCTION TO  COMPUTING

FilesFile: A unit of data stored in mass storage

systemFields and keyfields

Physical record versus Logical recordBuffer: A memory area used for the

temporary storage of data (usually as a step in transferring the data)

Page 42: INTRODUCTION TO  COMPUTING

Figure 1.12 Logical records versus physical records on a disk

Page 43: INTRODUCTION TO  COMPUTING

Representing TextEach character (letter, punctuation,

etc.) is assigned a unique bit pattern.ASCII: Uses patterns of 7-bits to represent

most symbols used in written English textUnicode: Uses patterns of 16-bits to represent

the major symbols used in languages world side

ISO standard: Uses patterns of 32-bits to represent most symbols used in languages world wide

Page 44: INTRODUCTION TO  COMPUTING

Figure 1.13 The message “Hello.” in ASCII

Page 45: INTRODUCTION TO  COMPUTING

Representing Numeric ValuesBinary notation: Uses bits to represent a

number in base twoLimitations of computer representations of

numeric valuesOverflow – occurs when a value is too big to be

representedTruncation – occurs when a value cannot be

represented accurately

Page 46: INTRODUCTION TO  COMPUTING

Representing ImagesBit map techniques

Pixel: short for “picture element”RGBLuminance and chrominance

Vector techniquesScalableTrueType and PostScript

Page 47: INTRODUCTION TO  COMPUTING

Representing SoundSampling techniques

Used for high quality recordingsRecords actual audio

MIDIUsed in music synthesizersRecords “musical score”

Page 48: INTRODUCTION TO  COMPUTING

Figure 1.14 The sound wave represented by the sequence 0, 1.5, 2.0, 1.5, 2.0, 3.0, 4.0, 3.0, 0

Page 49: INTRODUCTION TO  COMPUTING

QuestioQuestions ???ns ???