Professional Documents
Culture Documents
Chapter 1
Chapter 1
Chapter 1
COMPUTER
ARCHITECTURE
INTRODUCTION
Intel 8086
microprocessor
(1978)
Intel Core i7
microprocessor
(2008)
MEMORY
▪ Input devices:
• Keyboard
• Mice
• Disk drives
• Scanner
▪ Output devices:
• Monitor/screen
• Printer
• Plotter
• Disk drives
• USB
BUS SYSTEM
▪ Source:
https://en.wikipedia.org/wiki/Cray_X-MP
5th GENERATION
❖1990 - present:
▪ Very Large Scale Integrated Circuit (VLSI)
▪ 0.18m – 0.045m
▪ Example: Pentium II, III, IV, M, D, Core Duo, Core 2 Duo,
Core Quad,...
▪ Multi/Parallel processing
▪ High speed/performance
▪ Multimedia processing.
5th GENERATION EXAMPLES
Kiến trúc
von-Neumann
cổ điển
MODERN von-NEUMANN ARCHITECTURE
HARVARD ARCHITECTURE
Computer
Organization
Computer
Organization
COMPUTER ORGANIZATION
motherboard
motherboard
motherboard
NUMERAL SYSTEMS
❖Human: decimal systems {0,1,2,..,9}
❖Machine: binary numbering system {0,1}
❖For shorter: hexadecimal numbering system {0-9, A,
B, C, D, E, F}.
DECIMAL NUMBERING SYSTEM
❖ A decimal number can be presented as a
polynomial:
anan-1...a1 = an*10n-1+ an-1*10n-2*...+a1*100
❖Example:
123 = 1*102 + 2 * 101 + 3*100 = 100+20+3
123.456 = 1*102 + 2*101 + 3*100 + 4*10-1 + 5*10-2 + 6*10-3
= 100 + 20 + 3 + 0.4 + 0.05 + 0.006
BINARY NUMBERING SYSTEM
❖Convert a binary number to a decimal number:
(anan-1...a1)2 = an*2n-1 + an-1*2n-2 +... + a1*20
❖Example:
(11001010)2 = 1*27 + 1*26 + 0*25 + 0*24 + 1*23 + 0*22 + 1*21 + 0*20
= 128 + 64 + 8 + 2 = (202)10
DECIMAL TO BINARY
HEXADECIMAL NUMBERING SYSTEM
❖16-base: { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F}
❖ a hexa. number can be presented in 4-digit binary
DATA ORGANIZATION
❖Bits:
▪ Smallest of storage unit.
▪ Can store either 0 or 1.
❖Nibbles:
▪ A nibble is a group of 4 bits
▪ A nibble can store 16 different values from (0000)2 to
(1111)2,or a hexa. number.
DATA ORGANIZATION
❖Bytes:
▪ A byte is a group of 8 bits or 2 nibbles.
▪ A byte can store up to 256 values, from (0000 0000)2 to
(1111 1111)2, or from (00)16 to (FF)16.
DATA ORGANIZATION
❖Words:
▪ A word is a group of 2 bytes
▪ A word can store 216 (65536)values, from (0000)16 to
(FFFF)16.
DATA ORGANIZATION
❖Double words :
▪ A double word consists of 32 bits, or 4 bytes, or 2 words
▪ A double word can store 232 values from (0000 0000)16 to
(FFFF FFFF)16.
SIGNED NUMBERS
❖ a n-bit number is in the range of:
▪ Signed number: from -2n-1 -1 to +2n-1
• 8 bits: from -127 to +127
• 16 bits: from -32767 to +32767
• 32 bits: from -2,147,483,647 to +2,147,483,647
▪ Unsigned number: from 0 to 2n -1
• 8 bits: from 0 to 255
• 16 bits: from 0 to 65535
• 32 bits: from 0 to 4,294,967,295
ASCII CODE
❖ASCII is stand for American Standard Code for
Information Interchange;
❖ 8 bits presents one character;
ASCII CODE (CONTROL CHARACTERS)
ASCII CODE