You are on page 1of 57

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

Towards the operation units and


interconnection which realize computer
architecture specification
What is a Computer ?
Electronic device under the instruction and
programming control; and execute four
basic operation

• input
• processing
• output
• storage
IPOS cycle
IPOS : Input, Processing, Output, Storage
Types of Computer

• Special purpose computer


– Eg: Traffic light controller

• General purpose computer


– Computer for individual
– Computer for organization
Individual Computer

• Professional workstation
• Desktop computers
• Networked computers (NC)
• Notebook computers
• Subnotebooks
• Netbook
• Tablet/ Tablet PC
• Ultrabook
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
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
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.
Personal Computer Hardware
• Component inside microcomputer system
Digital & Analog System
• Digital System
- Any system which handle digital signal
(discrete)

• Analog System
• Any system which handle analog signal
4 Basic Functional Unit of a
Computer
1. Input Unit
• Computer receive coded information from input where
the function is to read data
• Example of input device: keyboard, joystick, trackball,
mouse.
2. Output Unit
• Its function is to send processed data to be displayed
• Output device example:
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 (absolute)
– Optical Disk –500 books

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

•Magnetic disk storage

Magnetic disk: random access, faster than tape

•Magnetic Tape Storage

Magnetic tape- serial access,


less expensive than disk
Storage type

•Optical disk
–Magneto-optical, CD-ROM, CD-R, CD-RW,
DVD-ROM, Blu Ray
Diskette (absolute)

• Low capacity– small file


• Portable
• Layered with metallic
substance
• Hard plastic jacket for
protection
• 3 ½ inch, 1.44 MB
High Capacity Portable Diskette (absolute)
• Large file
• Portable
• High capacity
– 120 / 200 MB
– Eg: Superdisk
• Zip disk
– 250 MB
– Not compatible with 3 ½ inch diskette
• Thumb Drive/USB Flash Drive
– As of January 2013, drives of up to 512 gigabytes (GB) were
available
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
Hard Disk
• Solid State Drive (SSD)
– As of 2010, most SSDs use NAND-based flash memory, which
retains data without power.
– SSDs may be constructed from random-access memory (RAM)
for fast access. Such devices may employ separate power sources,
such as batteries, to maintain data after power loss.
– Solid State Hybrid Drives (SSHD) combine the features of SSDs
and HDDs in the same unit,

SSD SSHD
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
Central Processing Unit (CPU)
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)
Control Unit

• Device which responsile to control


• Instruct computer system to execute
program
• Communicate with other parts inside a
device
Arithmetic Logic Unit (ALU)

Perrform mathematical operation


Perrform logical operation
Arithmetic Operation

Addition
Subtraction
Multiplication
Division
Logical Operation

• Evaluate condition
• Compare
• Can compare
– Numbers
– Characters
– Specialized character
Register

Special purpose
High speed Control
ALU
Unit
Temporary storage
Inside CPU Register

Memory
Instruction register

Hold instruction
currently being used Data register

Hold data which waiting to be


processed

Hold answers from


processing outcome
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
Measure storage capacity

KB – kilobyte GB – gigabyte
• 1024 byte • Billion bytes
• diskette • Hard disk
• Cache memory • CDs and DVDs

MB – megabyte TB – terabytes
• million byte • Trillion bytes
• RAM • Large hard disk
Memory

Primary storage
Primary memory
Main storage
Internal storage
Main memory
Types of memory

RAM
Random Access Memory

ROM
Read Only Memory
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
What inside a RAM?

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

• Fix
• Instruction to start computer
• Data and instuction can be read but can’t be
altered
• Mostly, instruction is written in the factory
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
Data representation
On/Off

Binary number system represent


circuit condition
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)
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
System Unit
• Store electronic component
– Main board
– Storage device
– Interconnection

• A number of Apple Macintosh have system unit


in its monitor
System Unit

Main Board
• Microprocessor chip
• Memory chip
• Interconnection to
other device’s parts
• Additional chip -
mathematical processor
System Unit

Storage Device
Hard Drive
Disk Drive
CD-ROM Drive
DVD-ROM Drive
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
Microprocesor’s Component

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

Intel Compatible Intel


• Pentium • Cyrix
• Celeron • AMD
• Xeon and Itanium
• I series
• Atom

ARM microprocessor
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
1. DIP 16-pin (DRAM chip, usually pre-fast page
mode DRAM (FPRAM)) DIMM 240-pin (DDR2 SDRAM and DDR3
2. SIPP 30-pin (usually FPRAM) SDRAM)
3. SIMM 30-pin (usually FPRAM)
4. SIMM 72-pin (often extended data out DRAM
(EDO DRAM) but FPRAM is not uncommon)
5. DIMM 168-pin (SDRAM)
6. DIMM 184-pin (DDR SDRAM) RIMM 184-pin RDRAM memory with integrated
heat spreader
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, operating system etc
– How to find max RAM capacity
– Max RAM for Windows
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
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 High speed bus connects video device with computer
(FireWire)
PC Card Credit card size PC card devices mostly found in laptop
computer
Cache

• Small memory block and temporary


• Accelerate data transfer
• Always used recent instruction and data
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
Further readings
• http://www.computerhope.com/help/mb.htm

You might also like