Lecture-01, Adv. Computer Architecture, CS-522
Lecture-01, Adv. Computer Architecture, CS-522
CS-522
MS – Computer Science
Lecture: 01
• It explores
• Advanced principles, design methodologies, and innovations in
computer systems
6
Grading Policy
Grading policy for this course is such that:
7
Reference Material
• Computer Organization and Architecture
• by William Stallings, 8th or Latest Edition
• Computer Organization and Design: The Hardware /
Software Interface
• by David A. Patterson and John L. Hennessy
• Computer System Architecture
• by Morris Mano, 3rd Edition
• Computer Architecture and Organization
• by John P. Hayes, International Edition
• Research papers and articles
• Conference and Journal research papers from various publishers 8
Detailed Objectives
1. To overview the History and Evolution of Computers
2. To examine
• Major components of a computer and their interconnections
• Internal and external memory and of input–output (I/O)
3. To examine the internal architecture and organization of the
processor
• Computer arithmetic, The Instruction set, Addressing modes, Reduced
instruction set computer (RISC), Superscalar approaches
4. To examine
• Internal structure of control unit, and use of Microprogramming
5. To deal with
• Parallel Organization and the Multicore Architecture
9
Pre-requisite
10
Pre-requisites
11
Number Systems
• The symbolic representation
• Used to express quantities and perform mathematical
operations
• Different number systems use distinct sets of symbols and
rules for representing and manipulating numbers
• Some common number systems:
• Binary: 0, 1
• Octal: 0, 1, 2, 3, 4, 5, 6, 7
• Decimal: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
• Hexadecimal (alpha-numeric)
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
A(10), B(11), C(12), D(13), E(14), F(15) 12
Number Representation
Number representations in various number systems
13
Arithmetic
Arithmetic in various number systems
25-7=18
15 in octal ki 13
13-7=6
1-0=1
result = 16 correct
14
Number Conversion
Binary Octal Decimal Hexadecimal
15
16
Exercise
17
Complements
18
Exercise - 1’s and 2’s Compliment
• Find the 1's complement of the given binary numbers:
• 1010102 010101
• 1101112 001000
11110001
--------------
00001110
+1
00001111
19
Data Formats
• ASCII: American standard code for information interchange
➢ 7-bit code for alphanumeric characters in a computer system
➢ B → 42 (0101010)
➢ ? → 3F
➢ @ → 40
• ALU
• Registers Array
• Control Unit
• Control Bus
• 16 bits
• Address Bus
• 20 bits
23
Memory (along mapped I/O)
(20 address lines can address 1MB, similarly 32GB memory can
be addressed using 35 address lines)
26
Instruction Set
Data transfer instructions → Move, Push, Pop, In, Out etc.
Addressing mode
28
Pin Diagram (8086)
29
Chapter # 1
Introduction
32
Structure & Function
• Structure → is the way in which components relate to each
other (i.e. interrelated)
33
Computer Functions
• In general, basic functions all computers can perform include:
– Data processing
• To process or execute data of various forms
– Data storage
• Computers perform long-term data storage function
• As well as a short-term data storage function while processing data
on fly (i.e. data get in → processed→ result go out)
– Data movement
• Between computer and outside world (source or destination)
– Control
• An unit/section that provides the computer with instructions
34
Functional View
of a computer
35
Operations (a): Data movement
36
Operations (b): Data Storage
37
Operation (c) Processing from/to
storage
38
Operation (d) Processing from
storage to I/O
39
Computer Structure - Top Level
Peripherals Computer
Central Main
Processing Memory
Unit
Computer
(Storage, Systems
Processing)
Interconnection
Input
Output
Communication
lines
40
Structure - The CPU
CPU
Computer Arithmetic
Registers and
I/O Login Unit
System CPU
Bus
Internal CPU
Memory Interconnection
Control
Unit
41
Structure - The Control Unit
Control Unit
CPU
Sequencing
ALU Logic
Control
Internal
Unit
Bus
Control Unit
Registers Registers and
Decoders
Control
Memory
42
Thank you
43