Hardware
Hardware
CONTROL UNIT
ARITHMETIC/LOGIC UNIT
ROM
CLOCK
RAM
BUSES
CPU
PRIMARY
STORAGE
INPUT DEVICES
OUTPUT DEVICES
SECONDARY STORAGE
Computer Hardware
Motherboard
System Unit
Expansion Slots CPU
Ports
Memory
Input Devices
Output Devices
On the Motherboard
A motherboard CPU
Expansion slots
INPUT/OUTPUT
TERMINAL POINT-OF-SALES TERMINALS AUTOMATIC TELLER MACHINES PUNCHED CARDS MAGNETIC INK CHARACTER RECOGNITION (MICR): Used by banks to process checks *
INPUT/OUTPUT
OPTICAL CHARACTER RECOGNITION: Scanned material translated into computer characters IMAGING: Forms, documents, photos digitized for computer use BAR CODE LABEL: Product label information read into computer. Can be used to track inventory *
INPUT/OUTPUT
COMPUTER OUTPUT MICROFILM (COM): Computer rapidly generates microfilm documents for archive copies in small space VOICE RESPONSE UNITS: Computer recognizes, generates verbal messages MULTIMEDIA: Combines text, graphics, sound still images, animations, video *
Memories
ROM
Registers R1, R2
I/O Bus
External Storage Devices Expansion slots
ROM stands for Read Only Memory ROM is a non-volatile memory on a chip The ROM chip contains Basic input/output system BIOS The BIOS has the instructions necessary to start up your computer
RAM
RAM stands for Random Access Memory RAM is a volatile memory on a chip RAM chips store information in addresses that can be accessed directly and quickly
TYPES OF MEMORY
RAM : Random Access Memory
Dynamic: Changes thru processing Static: Remains constant (power on)
ADDRESSES IN MEMORY
Each location has an address (label) Each location can hold data (content)
101 201 301 102 202 302 103 203 303
Representing Information
Problems
Bits represent too little too many are needed Decimal numbers dont translate well into bits
Solutions
Group into blocks of 4 and 8 bits
8 bits = 256 characters, holds ASCII 8 bits make 1 byte things are organized into bytes 4 bits make 1 nibble
A byte?
8 bits = 28 = 256 states
N bits = 2n states
Decimal System
the decimal number system we use every day is built on base ten 10 it is based on 10 positions numbered 0 thru 9 each position corresponds to a power of 10 1024 = 1 x 103 -> 1 x 1000 = 1000 0 x 102 -> 0 x 100 = 000 2 x 101 -> 2 x 10 = 20 4 x 100 -> 4 x 1 = 4 ---1024
Binary numbers
Bit # 7 6 5 4 3 Value: 128 64 32 16 8 2 4 1 2 0 1
Example: 01000101 = 69
Representing information
How do we represent characters?
How many characters might we want to represent? What characters might we want to represent?
Representing information
How do we represent characters?
How many characters might we want to represent? What characters might we want to represent?
A-Z A-Z and a-z All the keys on my keyboard Maybe a power of 2? Maybe an even power of 2? Maybe an even bigger power of 2? 26 52 104 128 256 65536
PARITY BIT: extra bit added to each byte to help detect errors *
Representing characters
ASCII is the American Standard Code for Information Interchange. It is a 7-bit code. Many 8-bit codes contain ASCII as their lower half The ASCII standard was published by the United States of America Standards Institute (USASI) in 1968.
EXAMPLES OF BYTES
EBCDIC ASCII (assume even-parity system)
C: 1100 0011 0 100 0011 1 A: 1100 0001 1 100 0001 0 T: 1110 0011 1 101 0100 1 Note how sum for each byte is an EVEN number *
Unicode
Universal Character Set (UCS) contains all characters of all other character set standards. It also guarantees round-trip compatibility, i.e., conversion tables can be built such that no information is lost when a string is converted from any other encoding to UCS and back. UCS contains the characters required to represent almost all known languages. This includes apart from the many languages which use extensions of the Latin script also the following scripts and languages: Greek, Cyrillic, Hebrew, Arabic, Armenian, Gregorian,
Japanese, Chinese, Hiragana, Katakana, Korean, Hangul, Devangari, Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada, Malayam, Thai, Lao, Bopomofo, and a number of others. Work is going on to include further scripts like Tibetian, Khmer, Runic, Ethiopian, Hieroglyphics, various Indo-European languages, and many others.
Shorthand: Hexadecimal
0 1 2 3 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 8 1 0 0 0 1 0 0 1
9
A B
1 0 1 0
1 0 1 1 1 1 0 0
4
5 6
C
D E F
0 1 0 1
0 1 1 0 0 1 1 1
1 1 0 1
1 1 1 0 1 1 1 1
Hexadecimal numbers
We write (2AC4)16 to represent a decimal number that has 1 units, 12 16s, 10 256s and 2 65,536s (2AC4)16 = 1 x163 + 0 x162 + 0 x161 + 1 x160
ARITHMETIC/LOGIC UNIT
ROM
CLOCK
RAM
PRIMARY (MAIN) MEMORY
MACHINE CYCLE
STEPS NEEDED FOR SINGLE INSTRUCTION
Machine Cycle
Instruction Cycle
Fetch
Decode
Store
Execute
Execution Cycle
Fetch/Execute Cycle
1 2
Fetch
Memory Registers
4
Decode
Control Unit
Store
Execute
ALU
MACHINE CYCLE
Measuring Machine Cycle Speeds:
PCs & OLDER MACHINES: Microseconds (millionth second) POWERFUL MACHINES: Nanoseconds (billionth second)
COMPUTER TIME
# PER NAME LENGTH SECOND COMPARED TO 1 SECOND
COMPUTER GENERATIONS
1. VACUUM TUBES: 1946-1959
COMPUTER GENERATIONS
1. VACUUM TUBES: 1946-1959 2. TRANSISTORS: 1957-1963
COMPUTER GENERATIONS
1. VACUUM TUBES: 1946-1959 2. TRANSISTORS: 1957-1963 3. INTEGRATED CIRCUITS: 1964-1979
COMPUTER GENERATIONS
1. VACUUM TUBES: 1946-1959 2. TRANSISTORS: 1957-1963 3. INTEGRATED CIRCUITS: 1964-1979 4. VERY LARGE-SCALE INTEGRATED (VLSI) CIRCUITS: 1980- PRESENT
MICROPROCESSOR
Processing Power
WORD LENGTH: Bits processed at one time CYCLE SPEED MEASURED IN MEGAHERTZ: One million cycles per second DATA BUS WIDTH: Bits moved between CPU & other devices
MICROPROCESSOR
Processing Power
REDUCED INSTRUCTION SET COMPUTING (RISC): Embeds most used instructions on chip to enhance speed MultiMedia eXtension (MMX): Enhanced Intel chip improves multimedia applications Multiprocessors and coprocessors:
SECONDARY MEMORY
SEQUENTIAL ACCESS: A sequence of files arranged in order, say alphabetically. Usually stored on magnetic tape or cartridge DIRECT ACCESS: Records stored on a DIRECT ACCESS STORAGE DEVICE (DASD). Can move directly to any record *
Storage Modes
Random Access
Faster (nanoseconds) Usually more expensive
The dog barked. T H E D O G . .
Sequential
Slower (milliseconds) Less expensive
Th bar
d
k e
og ed
Disks
Read/Write Head
Sector
Cluster
Storage Technologies
Magnetic
Read/write head uses electrical impulses to create or interpret patterns of magnetic impulses
Floppy disks Hard disks Tape
Optical
Laser beam creates or reads non-reflective pits and reflective land areas
CDs DVDs
Starting Up
2. OS kernel, or supervisor program becomes memory resident. 1. BIOS read from ROM
CONTROLLER
LINK FOR INPUT/OUTPUT OR FILE DEVICES HIGHLY SPECIALIZED PROCESSOR: Manages the operation of attached devices to free the CPU from these tasks *
DATA CHANNEL
SPECIALIZED INPUT/OUTPUT PROCESSOR (A COMPUTER): Takes over function of device communication from the CPU CORRECTS FOR SPEED MISMATCH BETWEEN SLOW PERIPHERAL DEVICES AND VERY FAST CPU *
Managing Memory
Remember the Machine Cycle? Page is swapped in Decoding and Execution
Multi
Multitasking
More than one program apparently executes at a time Computer switches between foreground and background applications
Multithreading
Different parts of programs run at the same time Computer switches between foreground and background threads
Multiprocessing
More than one CPU is present Tasks are divided among CPUs in true parallel processing
SYMMETRIC MULTIPROCESSOR
PROCESSORS (CPUs) ARE IDENTICAL, WITH EACH PROCESSOR OPERATING INDEPENDENTLY OF THE OTHERS USED IN MOST MAINFRAMES AND SOME MIDRANGE MACHINES *
SYMMETRIC MULTIPROCESSOR
Control CPU
Combined Results
Computer Hardware