76
Lecture 1 • Basic structure of computer • History of computer development

Lecture 1

Embed Size (px)

DESCRIPTION

Lecture 1. Basic structure of computer History of computer development. Chapter 1. Basic structure of computer. Computer Systems. Is a system that includes computer as one of its components. Computer Organization. - PowerPoint PPT Presentation

Citation preview

Page 1: Lecture 1

Lecture 1

• Basic structure of computer• History of computer development

Page 2: Lecture 1

Basic structure of computer

Chapter 1

Page 3: Lecture 1

Computer Systems

Is a system that includes computer as one of its components

Page 4: Lecture 1

Computer Organization

Towards the operation units and interconnection which realize computer architecture specification

Page 5: Lecture 1

What is a Computer ?

Electronic device under the instruction and programming control; and execute four basic operation

• input• processing• output• storage

Page 6: Lecture 1

IPOS cycle

IPOS : Input, Processing, Output, Storage

Page 7: Lecture 1

Types of Computer

• Special purpose computer– Eg: Traffic light controller

• General purpose computer– Computer for individual– Computer for organization

Page 8: Lecture 1

Individual Computer

• Professional workstation• Desktop computers• Networked computers (NC)• Notebook computers• Subnotebooks• Personal Digital Assistants (PDA)/

– Handheld computers/ Palmtop

Page 9: Lecture 1

Computer for Organization

• Supercomputer– Fastest– Most expensive

• Mainframe– High speed– More expensive– Process huge amount of data and fast– Support many users– perform server jobs

• Minicomputer – Performance and speed lesser than mainframe

• Server

Page 10: Lecture 1

Computer Systems

• Hardware– Physical component of computer such as

mechanical & electronic circuit which can be touched

• Software– Program which instructs computer to do

something– Consist from bunch of programming, algorithm

and instruction set which can’t be touched

Page 11: Lecture 1

Computer Software

• System software:– All program related to computer operation

coordination • Eg

– Operating System- Windows 98, Mac OS, Unix, Linux, MS Dos

– Utility programs –file management– compiler, interpreter

• Application software– Program that direct computer to do specific task

• text processing (Microsoft Word), mathematical operation (Microsoft Excel), database management.

Page 12: Lecture 1

Personal Computer Hardware

• Component inside microcomputer system

Page 13: Lecture 1

Digital & Analog System

• Digital System - Any system which handle digital signal

(discrete)

• Analog System • Any system which handle analog signal

Page 14: Lecture 1

4 Basic Functional Unit of a Computer

Page 15: Lecture 1

1. Input Unit

• Computer receive coded information from input where the function is to read data

• Example of input device: keyboard, joystick, trackball, mouse.

Page 16: Lecture 1

2. Output Unit

• Its function is to send processed data to be displayed• Output device example:

Page 17: Lecture 1

3. Storage Unit

• Store program and data in extended period of time • Fix• Reliable • Easy – to find and fetch data swiftly

• Compressed storage– Diskettes –500 book pages– Optical Disk –500 books

• Economy– Save in term of physical storage cost – Convenient and fast in filing and access data

Page 18: Lecture 1

Storage type

•Magnetic disk storage

•Optical disk

–Magneto-optical

–CD-ROM

–CD-R

–CD-RW

–DVD-ROM

•Magnetic Tape Storage

Page 19: Lecture 1

Diskette

• Low capacity– small file• Portable• Layered with metallic

substance • Hard plastic jacket for

protection • 3 ½ inch, 1.44 MB

Page 20: Lecture 1

High Capacity Portable Diskette

• Large file• Portable • High capacity

– 120 / 200 MB– Eg: Superdisk

• Zip disk– 250 MB– Not compatible with 3 ½ inch diskette

Page 21: Lecture 1

Hard Disk

• Variety of size (Mb,Gb)• Portable characteristic

– Generally is not portable – Portable hard disk is also available

• Hard scrap layered with metallic material

Page 22: Lecture 1

4. Processing Unit• Central Processing Unit (CPU)• Types of Storage• Program execution • Search data inside memory

• System Unit• Microprocessor • Semiconductor memory • Bus line • Speed and power

Page 23: Lecture 1

Unit Pemprosesan Pusat(CPU)

Page 24: Lecture 1

Central Processing Unit (CPU)

• Change data to information• Control center • One set of electronic circuit which execute stored

instruction program • Two parts

– Control Unit (CU)– Arithmetic Logic Unit (ALU)

Page 25: Lecture 1

Control Unit

• Device which responsile to control• Instruct computer system to execute

program• Communicate with other parts inside a

device

Page 26: Lecture 1

Arithmetic Logic Unit (ALU)

Perrform mathematical operation

Perrform logical operation

Page 27: Lecture 1

Arithmetic Operation

AdditionSubtraction

MultiplicationDivision

Page 28: Lecture 1

Logical Operation

• Evaluate condition• Compare• Can compare

– Numbers– Characters– Specialized character

Page 29: Lecture 1

Register

Special purposeHigh speed

Temporary storageInside CPU

Instruction register

Hold instruction currently being used Data register

Hold data which waiting to be processed

Hold answers from processing outcome

ControlUnit ALU

Register

Memory

Page 30: Lecture 1

Types of Storage• Secondary

– Data which will be used in the end– Long term

• Main Memory– Data which will be used in short period of time – Temporary – Access faster that secondary storage

• Register– Data which related to opeation being execute– Access faster than main memory

Page 31: Lecture 1

Measure storage capacity

KB – kilobyte• 1024 byte• diskette• Cache memory

MB – megabyte• million byte• RAM

GB – gigabyte• Billion bytes• Hard disk• CDs and DVDs

TB – terabytes• Trillion bytes• Large hard disk

Page 32: Lecture 1

Memory

Primary storagePrimary memory

Main storageInternal storageMain memory

Page 33: Lecture 1

Types of memory

RAMRandom Access Memory

ROMRead Only Memory

Page 34: Lecture 1

RAM

• Need electric energy to store data• Not fix• Data and instruction can be read and altered• User always referred to this type of storage

Page 35: Lecture 1

What inside a RAM?

• Operating system• Program that’s running• Data needed by the program• Intermediate answer which wait to be

displayed as output

Page 36: Lecture 1

ROM

• Fix• Instruction to start computer• Data and instuction can be read but can’t be

altered• Mostly, instruction is written in the factory

Page 37: Lecture 1

Execute Program

• Control unit (CU) received one instruction and placed in memory

• CU decode the instruction• CU inform related device to take action• Control in transferred to related device• Task executed• Control returned to CU

Page 38: Lecture 1

Machine Cycle I-time + E-time

Instruction time (I-time)• CU fetch one instruction inside memory and place

in one register• CU decode the instruction and determine the

memory location for the needed data

Page 39: Lecture 1

Machine Cycle

Execution time (E-time)• Execution

– CU moved data from memory to register in ALU– ALU is given the control and execute the instruction– Control is returned to control unit

• CU store operation answer inside memory or register

Page 40: Lecture 1

System Clock

• Clock system produced pulse in a fix rate• Every pulse is one machine cycle• One instruction program actually might be

consist of a number of instruction to the CPU

• Every CPU instruction will take one pulse• CPU has one instruction set – instructions

which it can understand and process

Page 41: Lecture 1

Finding data inside a memory

• Each location inside memory have unique address– Address never change– Content might change

• Memory location can hold one instruction or one data• Programmer used symbolic names

Page 42: Lecture 1

Data representation On/Off

Binary number system represent circuit condition

Page 43: Lecture 1

Bit, Byte, Word

• BIT– Binary DigIT– On/off circuit– 1 or 0

• BYTE– 8 bit– Store one alphanumeric character– 01001010 = J

• WORD– Register size– Number of BIT processed by CPU in one unit– Differ from one computer to another computer (64bit/8

bit)

Page 44: Lecture 1

Coding Scheme• One code to determine which bit group representing which

character on keyboard• ASCII

– Use one byte (8-bit)– 28 = 256 combination or character – Almost all PC and larger computer

• EBCDIC– Use one byte (8-bit)– 28 = 256 combination or character – Used mainly on IBM compatible mainframes

• Unicode– Use two bytes 8-bit (16 bits)– 216 = 65,536 combination or character – Support character for all language in the world– Compatible with ASCII

Page 45: Lecture 1

System Unit• Store electronic component

– Main board – Storage device– Interconnection

• A number of Apple Macintosh have system unit in its monitor

Page 46: Lecture 1

System Unit

Main Board• Microprocessor chip• Memory chip• Interconnection to other

device’s parts• Additional chip -

mathematical processor

Page 47: Lecture 1

System Unit

Storage Device

Hard DriveDisk Drive

CD-ROM DriveDVD-ROM Drive

Page 48: Lecture 1

Microprocessor

• CPU etched on chip• One chip is ¼ x ¼ inci• Consist of silicon• Consist of million gates

– Electric switch that allows electric supply to flow

Page 49: Lecture 1

Microprocesor’s Component

• Control Unit - CU• Arithmetic Logic Unit – ALU• Register• System clock

Page 50: Lecture 1

Development of a better microprocessor

• Microprocessor computer print circuit on microchip– Cheaper– Faster

• Perform other device task– Current mathematical co-processor is part of

microprocessor– Current multimedia instruction is part of

microprocessor

Page 51: Lecture 1

Development of a better microprocessor

• Faster computer execution• Cheaper it is made• More reliable

More functions combined in one microprocessor:

Page 52: Lecture 1

Types of Microprocessor

Intel• Pentium• Celeron • Xeon and Itanium

Compatible Intel• Cyrix• AMD

Page 53: Lecture 1

Types of Microprocessor

• PowerPC– Collabration of Apple, IBM, and Motorola– Used in Apple Macintosh PC group– Inside server and additional system

• Alpha– Produced by Compaq– High power server and workstation

Page 54: Lecture 1

Semiconductor memory

• Reliable• Small • Low cost• Low power consumption • Economically produced in bulk • Not fix• All circuit together become one storage unit that

can’t be separated

Page 55: Lecture 1

Semiconductor memory CMOS

• Complementary metal oxide semiconductor• Use low electric supply• Used inside PC to store device control

needed to start a computer• Store information using power from battery

Page 56: Lecture 1

RAM

• Store instruction and data for current program

• Data inside memory can be randomly accessed

• Easy and fast access• Not fix• Can be erased• Able to be Rewrite

Page 57: Lecture 1

Types of RAM

SRAM (Static RAM)

• Store content when power exist• Faster than DRAM

Page 58: Lecture 1

Types of RAM

DRAM (dynamic RAM)

• Must always refresh• Used in most PC memory because of size and cost• SDRAM

– Faster than DRAM• Rambus DRAM

– Faster than SDRAM– Expensive

Page 59: Lecture 1

Adding RAM

• Buy memory module packaged on circuit board• SIMMS – chip on one side• DIMMS – chip on two sides• Maximum RAM that can be installed is based on

main board design

Page 60: Lecture 1

ROM

• Program and data that has been permanently recorded in factory

• Read only• Can’t be changed by user• Store start computer routine which is

activated when computer is switched on• Fix

Page 61: Lecture 1

PROM

• Programmable ROM • ROM burner can change instruction on

some ROM chip

Page 62: Lecture 1

Bus Line

• Path which transfer electric signal• Bus system

– Transfer data between CPU and memory

• Bas width– Bit data numbers which can carried at one time– Most of the time the same size woth CPU word

• Speed is measured in MHz

Page 63: Lecture 1

Bus Line

CPU can support more and variety of instruction

Larger bus width = More powerful computer

CPU can transfer more data at one time = Faster computer

CPU can refer larger address = More memory can be

used

Page 64: Lecture 1

Expansion Bus

• Connect main board to expansion slot • Attach expansion board to slot

– Interface card – Changeable card

• External connection/port– Serial – Parallel

Page 65: Lecture 1

Expansion Bus

Page 66: Lecture 1

Bus and PC Port

ISA Slow device like mouse and modem

PCI Fast device like hard disk and network card

AGP Connect memmory and graphic card to present faster video

USB Support “daisy-chaining” eliminate the needs to have variety type of expansion card; hot change

IEEE 1394 (FireWire)

High speed bus connects video device with computer

PC Card Credit card size PC card devices mostly found in laptop computer

Page 67: Lecture 1

Speed and power

What make computer fast?

• Microprocssor speed • Bus line size• Cache• Flash memory• RISC type computer• Parallel processing

Page 68: Lecture 1

Computer processing speed

Time to executer one instruction• Millisecond• Microsecond• Nanosecond

– Modern Computer • Picosecond

– In the future

Page 69: Lecture 1

Computer processing speed

• Clock speed– Megahertz (MHz) – Gigahertz (GHz)

• Number of instruction per second• Million Instruction per Second (MIPS)• Complex mathematic operation

– One million operation floating point per second (Megaflop )

Page 70: Lecture 1

Cache

• Small memory block and temporary• Accelerate data transfer• Always used recent instruction and data

Page 71: Lecture 1

Cache

Step 1Processor ask data or instruction

Step 2Go to address in main

memory and read

Step 3Transfer to main CPU and cache

The next processor ask• See first in cache • Go to memory

PROCESSOR

R

A

M

Cache

Page 72: Lecture 1

Types of Cache

• Internal Cache– Level 1 (L1)– Embed in microprocessor – Up to 128KB

• External Cache– Level 2 (L2)– External chip– 256KB or 512 KB– SRAM technology– Cheaper and slower than L1– Faster and more expensive than memory

Page 73: Lecture 1

Flash memory

• RAM that is not change• Used in

– Mobile phone– Digital camera– Digital music recorder– PDA

Page 74: Lecture 1

Instruction set

• CISC Technology• Complex Instruction Set Computing

– Conventional computer – A lot of the instruction is not used

• RISC Technology • Reduce Instruction Set Computing

– Small instruction subset – Increase speed– Program with a number of complex instruction

• Graphic • Engineering

Page 75: Lecture 1

Types of processing

• Serial processing– Executer one instruction at one time – Fetch, decode, execute and store

• Parallel Processing– More than one processor used simultaneously– Can do trillion floating point per second teraflops– Example: Network server, supercomputer

Page 76: Lecture 1

Types of Processing

• Pipelining– instruction do not need to finish before the next is

started– Fetch instruction 1, start to decode and fetch

instruction 2