SlideShare a Scribd company logo
CSC 203 1.5
Computer System Architecture
Budditha Hettige
Department of Statistics and Computer Science
University of Sri Jayewardenepura
Computer ArchitectureComputer Architecture
2Computer System Architecture2011
What isWhat is Computer ArchitectureComputer Architecture??
• Set of data types, Operations, and features are
call its architecture
• It deals with those aspects that are visible to
user of that level
• Study of how to design those parts a computer
is called Computer Architecture
3Computer System Architecture2011
WhyWhy Computer ArchitectureComputer Architecture
• Maximum overall performance of system
keeping within cost constraints
• Bridge performance gap between slowest and
fastest component in a computer
• Architecture design
– Search the space of possible design
– Evaluate the performance of design choose
– Identify bottlenecks, redesign and repeat process
4Computer System Architecture2011
Computer OrganizationComputer Organization
• The Simple Computer concise with
– CPU
– I/O Devices
– Memory
– BUS (Connection method)
5Computer System Architecture2011
Simple ComputerSimple Computer
6Computer System Architecture2011
CPU – Central Processing UnitCPU – Central Processing Unit
• Is the “Brain”
• It Execute the program and stored in the main
memory
• Composes with several parts
– Control Unit
– Arithmetic and Logic Units
– Registers
7Computer System Architecture2011
RegistersRegisters
• High-speed memory
• Top of the memory hierarchy, and provide the
fastest way to access data
• Store temporary results
• Some useful registers
– PC – Program counters
• Point to the next instructions
– IR - Instruction Register
• Hold instruction currently being execute
8Computer System Architecture2011
Registers more…Registers more…
• Types
– User-accessible Registers
– Data registers
– Address registers
– General purpose registers
– Special purpose registers
– Etc.
9Computer System Architecture2011
InstructionInstruction
• Types
– Data handling and Memory operations
• Set, Move, Read, Write
– Arithmetic and Logic
• Add, subtract, multiply, or divide
• Compare
– Control flow
• Complex instructions
– Take many instructions on other computers
• saving many registers on the stack at once
• moving large blocks of memory
10Computer System Architecture2011
Parts of an instructionParts of an instruction
• Opcode
– Specifies the operation to be performed
• Operands
– Register values,
– Values in the stack,
– Other memory values,
– I/O ports
11Computer System Architecture2011
Type of the operationType of the operation
• Register-Register Operation
– Add, subtract, compare, and logical operations
• Memory Reference
– All loads from memory
• Multi Cycle Instructions
– Integer multiply and divide and all floating-point
operations
12Computer System Architecture2011
Fetch-Decode execute circleFetch-Decode execute circle
• Instruction fetch
– 32-bit instruction was fetched from the cache
• Decode
• Execute
• Memory Access
• Write back
13Computer System Architecture2011
Fetch-Decode execute circleFetch-Decode execute circle
14Computer System Architecture2011
MIcroprocessorsMIcroprocessors
• Processors can be identify by two main
parameters
– Speed (MHz/ GHz)
– Processor with
• Data bus
• Address bus
• Internal registers
15Computer System Architecture2011
Data busData bus
• Known as Front side bus, CPU bus and
Processor side bus
• Use between CPU and main chipset
• Define a size of memory
– 32 bit
– 64 bit etc.
16Computer System Architecture2011
Data busData bus
17Computer System Architecture2011
I/O Ports with data transfer ratesI/O Ports with data transfer rates
Controller Port / Device
Typical Data
Transfer Rate
Super I/O
PS/2 (keyboard / mouse) 2 KB/s
Serial Port 25 KB/s
Floppy Disk 125 KB/s
Parallel Port 200 KB/s
Southbridge
Integrated Audio 1 MB/s
Integrated LAN 12 MB/s
USB 60 MB/s
Integrated Video 133 MB/s
IDE (HDD, DVD) 133 MB/s
SATA (HDD, DVD) 300 MB/s
18Computer System Architecture2011
Address BusAddress Bus
• Carries addressing information
• Each wire carries a single bit
• Width indicates maximum amount of RAM
the processor can handle
• Data bus and address bus are independent
19Computer System Architecture2011
How CPU works?How CPU works?
• A Simple CPU
– 4 Bit Address bus
– Registers A, B and C (4 Bit)
– 8 Bit Program ( 4 BIT Instruction, 4 BIT Data)
20Computer System Architecture2011
How CPU works?How CPU works?
2011 Computer System Architecture 21
A B
C
IP
Instruction SET
0000 Sleep
0001 LOAD M → A
0010 LOAD M → B
0101 SET A → M
0110 SET B → M
1000 ADD A + B → C
1111 MOVE
1001 RESET
IC
ALUALU
Register CRegister C
Instruction CounterInstruction Counter
How CPU works?How CPU works?
2011 Computer System Architecture 22
A B
C
C
0 0 0 0
Instruction SET
0000 Sleep
0001 LOAD M → A
0010 LOAD M → B
0101 SET A → M
0110 SET B → M
0111 SET C → M
1000 ADD A + B → C
1 0 0 0 0 0 0 0 0
2 0 0 0 1 0 0 1 0
3 0 0 1 0 0 1 0 1
4 1 0 0 0 0 0 0 0
5 0 1 1 1 0 0 0 0
6
IC
01
How CPU works?How CPU works?
2011 Computer System Architecture 23
A B
C
C
0 0 0 1
Instruction SET
0000 Sleep
0001 LOAD M → A
0010 LOAD M → B
0101 SET A → M
0110 SET B → M
0111 SET C → M
1000 ADD A + B → C
1 0 0 0 0 0 0 0 0
2 0 0 0 1 0 0 1 0
3 0 0 1 0 0 1 0 1
4 1 0 0 0 0 0 0 0
5 0 1 1 1 0 0 0 0
6
0 0 1 0
IC
02
How CPU works?How CPU works?
2011 Computer System Architecture 24
A
0 0 1 0
B
C
C
0 0 1 0
Instruction SET
0000 Sleep
0001 LOAD M → A
0010 LOAD M → B
0101 SET A → M
0110 SET B → M
0111 SET C → M
1000 ADD A + B → C
1 0 0 0 0 0 0 0 0
2 0 0 0 1 0 0 1 0
3 0 0 1 0 0 1 0 1
4 1 0 0 0 0 0 0 0
5 0 1 1 1 0 0 0 0
6
0 1 0 1IC
03
How CPU works?How CPU works?
2011 Computer System Architecture 25
A
0 0 1 0
B
0 1 0 1
C
0 1 1 1
C
1 0 0 0
Instruction SET
0000 Sleep
0001 LOAD M → A
0010 LOAD M → B
0101 SET A → M
0110 SET B → M
0111 SET C → M
1000 ADD A + B → C
1 0 0 0 0 0 0 0 0
2 0 0 0 1 0 0 1 0
3 0 0 1 0 0 1 0 1
4 1 0 0 0 0 0 0 0
5 0 1 1 1 0 0 0 0
6 1 0 0 1 0 0 0 0
7 1 1 1 1 0 0 0 1
8
IC
04
How CPU works?How CPU works?
2011 Computer System Architecture 26
A
0 0 1 0
B
0 1 0 1
C
0 1 1 1
C
0 1 1 1
Instruction SET
0000 Sleep
1111 MOVE
1001 RESET
0101 SET A → M
0110 SET B → M
0111 SET C → M
1000 ADD A + B → C
1 0 0 0 0 0 0 0 0
2 0 0 0 1 0 0 1 0
3 0 0 1 0 0 1 0 1
4 1 0 0 0 0 0 0 0
5 0 1 1 1 1 1 1 1
6 1 0 0 1 0 0 0 0
7 1 1 1 1 0 0 0 1
8
0 1 1 1
IC
05
How CPU works?How CPU works?
2011 Computer System Architecture 27
A
0 0 1 0
B
0 1 0 1
C
0 1 1 1
C
1 0 0 1
Instruction SET
0000 Sleep
1111 MOVE
1001 RESET
0101 SET A → M
0110 SET B → M
0111 SET C → M
1000 ADD A + B → C
1 0 0 0 0 0 0 0 0
2 0 0 0 1 0 0 1 0
3 0 0 1 0 0 1 0 1
4 1 0 0 0 0 0 0 0
5 0 1 1 1 1 1 1 1
6 1 0 0 1 0 0 0 0
7 1 1 1 1 0 0 0 1
8 0 1 1 1
IC
06
How CPU works?How CPU works?
2011 Computer System Architecture 28
A
0 0 0 0
B
0 0 0 0
C
0 0 0 0
C
0 0 0 0
Instruction SET
0000 Sleep
1111 MOVE
1001 RESET
0101 SET A → M
0110 SET B → M
0111 SET C → M
1000 ADD A + B → C
1 0 0 0 0 0 0 0 0
2 0 0 0 1 0 0 1 0
3 0 0 1 0 0 1 0 1
4 1 0 0 0 0 0 0 0
5 0 1 1 1 1 1 1 1
6 1 0 0 1 0 0 0 0
7 1 1 1 1 0 0 0 1
8
IC
06
How CPU works?How CPU works?
2011 Computer System Architecture 29
A
0 0 0 0
B
0 0 0 0
C
0 0 0 0
C
1 1 1 1
Instruction SET
0000 Sleep
1111 MOVE
1001 RESET
0101 SET A → M
0110 SET B → M
0111 SET C → M
1000 ADD A + B → C
1 0 0 0 0 0 0 0 0
2 0 0 0 1 0 0 1 0
3 0 0 1 0 0 1 0 1
4 1 0 0 0 0 0 0 0
5 0 1 1 1 1 1 1 1
6 1 0 0 1 0 0 0 0
7 1 1 1 1 0 0 0 1
8
IC
07
How CPU works?How CPU works?
2011 Computer System Architecture 30
A
0 0 0 0
B
0 0 0 0
C
0 0 0 0
C
0 0 0 0
Instruction SET
0000 Sleep
1111 MOVE
1001 RESET
0101 SET A → M
0110 SET B → M
0111 SET C → M
1000 ADD A + B → C
1 0 0 0 0 0 0 0 0
2 0 0 0 1 0 0 1 0
3 0 0 1 0 0 1 0 1
4 1 0 0 0 0 0 0 0
5 0 1 1 1 1 1 1 1
6 1 0 0 1 0 0 0 0
7 1 1 1 1 0 0 0 1
8
IC
01
How BUS System works?How BUS System works?
2011 Computer System Architecture 31
DATA BUS
CPU
Device ADevice A Device BDevice B Device CDevice C
ADDRESS BUSADDRESS BUS
CONTROL BUSCONTROL BUS
How BUS System worksHow BUS System works
2011 Computer System Architecture 32
DATA BUS
ADDRESS BUSADDRESS BUS
CONTROL BUSCONTROL BUS
How BUS System worksHow BUS System works
2011 Computer System Architecture 33
DATA BUS
CPU
Device ADevice A Device BDevice B Device CDevice C
ADDRESS BUSADDRESS BUS
CONTROL BUSCONTROL BUS
ADDRESS BUS 4 BIT
DATA BUS 4 BIT
CONTROL BUS 2 BIT
How BUS System worksHow BUS System works
2011 Computer System Architecture 34
DATA BUS
ADDRESS BUSADDRESS BUS
CONTROL BUSCONTROL BUS
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0100
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0010
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0001
How BUS System worksHow BUS System works
2011 Computer System Architecture 35
DATA BUS
ADDRESS BUSADDRESS BUS
CONTROL BUSCONTROL BUS
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0100
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0010
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0001
0 0 0 00 0 0 00 0 0 0 0 00 0
How BUS System worksHow BUS System works
2011 Computer System Architecture 36
DATA BUS
ADDRESS BUSADDRESS BUS
CONTROL BUSCONTROL BUS
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0100
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0010
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0001
0 1 0 00 1 0 00 0 0 0 0 00 0
How BUS System worksHow BUS System works
2011 Computer System Architecture 37
DATA BUS
ADDRESS BUSADDRESS BUS
CONTROL BUSCONTROL BUS
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0100
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0010
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0001
0 1 0 00 1 0 01 01 0 1 01 0
How BUS System worksHow BUS System works
2011 Computer System Architecture 38
DATA BUS
ADDRESS BUSADDRESS BUS
CONTROL BUSCONTROL BUS
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0100
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0010
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0001
0 0 1 00 0 1 01 01 0 0 00 0
How BUS System worksHow BUS System works
2011 Computer System Architecture 39
DATA BUS
ADDRESS BUSADDRESS BUS
CONTROL BUSCONTROL BUS
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0100
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0010
CONTROL 2 BIT
01 – READ,
10 – Write
ADDRESS 0001
0 0 1 00 0 1 01 01 0 0 10 1

More Related Content

DOC
Version support for huawei s7700 components (1)
PDF
Computer organisation and architecture module 1
PDF
Intermediate machine architecture
PPTX
CST 20363 Session 4 Computer Logic Design
PPT
PPTX
3.1 - CPU Architecture and Fetch Execute - JR.pptx
PPTX
Computer architecture unit 1 ppt for IT students
Version support for huawei s7700 components (1)
Computer organisation and architecture module 1
Intermediate machine architecture
CST 20363 Session 4 Computer Logic Design
3.1 - CPU Architecture and Fetch Execute - JR.pptx
Computer architecture unit 1 ppt for IT students

Similar to Computer System Architecture Lecture Note 3: computer architecture (20)

PPTX
Unit 1 computer architecture (1)
PPT
Introduction to Computer Architecture
PPTX
CSE331_Lecture1.pptx
PPTX
COMPUTER_ORGANIZATION (1).pptx
PPT
COMPUTER_ORGANIZATION.ppt dokg[osdpfkogjslk'gsei
PPT
COMPUTER_ORGANIZATION basic presentation.ppt
PPT
Arsitektur komputer TRK pertemuan pertama
PPT
Computer Organization and Architecture (UNIT-II)
PPT
COMPUTER_ORGANIZATION_architeture_computer.ppt
PPT
COMPUTER_ORGANIZATION ITS ARCHITECTURE.ppt
PPT
COMPUTER_ORGANIZATION AND COMPUTER MEMORY.ppt
PPT
COMPUTER_ORGANIZATION.ppt
PPT
COA Chapter computer organization and architecture course for engineering1.ppt
PDF
Computer Organization (1).pdf
PDF
Computer organization basics
PPT
Computer hardware
PPT
Intro to comp. hardware
PPT
BASIC COMPUTER ORGANIZATION AND DESIGN.ppt
PPT
Microprocessor
PPT
Computer Hardware
Unit 1 computer architecture (1)
Introduction to Computer Architecture
CSE331_Lecture1.pptx
COMPUTER_ORGANIZATION (1).pptx
COMPUTER_ORGANIZATION.ppt dokg[osdpfkogjslk'gsei
COMPUTER_ORGANIZATION basic presentation.ppt
Arsitektur komputer TRK pertemuan pertama
Computer Organization and Architecture (UNIT-II)
COMPUTER_ORGANIZATION_architeture_computer.ppt
COMPUTER_ORGANIZATION ITS ARCHITECTURE.ppt
COMPUTER_ORGANIZATION AND COMPUTER MEMORY.ppt
COMPUTER_ORGANIZATION.ppt
COA Chapter computer organization and architecture course for engineering1.ppt
Computer Organization (1).pdf
Computer organization basics
Computer hardware
Intro to comp. hardware
BASIC COMPUTER ORGANIZATION AND DESIGN.ppt
Microprocessor
Computer Hardware
Ad

More from Budditha Hettige (20)

PDF
Algorithm analysis
PDF
PDF
Link List
PDF
PDF
Data Structures 01
PDF
Drawing Fonts
PDF
Texture Mapping
PDF
PDF
PDF
OpenGL 3D Drawing
PDF
2D Drawing
PDF
Graphics Programming OpenGL & GLUT in Code::Blocks
PDF
Introduction to Computer Graphics
PPTX
Computer System Architecture Lecture Note 9 IO fundamentals
PPTX
Computer System Architecture Lecture Note 8.1 primary Memory
PPTX
Computer System Architecture Lecture Note 8.2 Cache Memory
PPTX
Computer System Architecture Lecture Note 7 addressing
PPT
Computer System Architecture Lecture Note 6: hardware performance
PPT
Computer System Architecture Lecture Note 5: microprocessor technology
Algorithm analysis
Link List
Data Structures 01
Drawing Fonts
Texture Mapping
OpenGL 3D Drawing
2D Drawing
Graphics Programming OpenGL & GLUT in Code::Blocks
Introduction to Computer Graphics
Computer System Architecture Lecture Note 9 IO fundamentals
Computer System Architecture Lecture Note 8.1 primary Memory
Computer System Architecture Lecture Note 8.2 Cache Memory
Computer System Architecture Lecture Note 7 addressing
Computer System Architecture Lecture Note 6: hardware performance
Computer System Architecture Lecture Note 5: microprocessor technology
Ad

Recently uploaded (20)

PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Institutional Correction lecture only . . .
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Cell Structure & Organelles in detailed.
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Classroom Observation Tools for Teachers
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
VCE English Exam - Section C Student Revision Booklet
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Basic Mud Logging Guide for educational purpose
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Final Presentation General Medicine 03-08-2024.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Complications of Minimal Access Surgery at WLH
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Module 4: Burden of Disease Tutorial Slides S2 2025
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
STATICS OF THE RIGID BODIES Hibbelers.pdf
Insiders guide to clinical Medicine.pdf
Institutional Correction lecture only . . .
O7-L3 Supply Chain Operations - ICLT Program
Cell Structure & Organelles in detailed.
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Classroom Observation Tools for Teachers
Renaissance Architecture: A Journey from Faith to Humanism

Computer System Architecture Lecture Note 3: computer architecture

  • 1. CSC 203 1.5 Computer System Architecture Budditha Hettige Department of Statistics and Computer Science University of Sri Jayewardenepura
  • 3. What isWhat is Computer ArchitectureComputer Architecture?? • Set of data types, Operations, and features are call its architecture • It deals with those aspects that are visible to user of that level • Study of how to design those parts a computer is called Computer Architecture 3Computer System Architecture2011
  • 4. WhyWhy Computer ArchitectureComputer Architecture • Maximum overall performance of system keeping within cost constraints • Bridge performance gap between slowest and fastest component in a computer • Architecture design – Search the space of possible design – Evaluate the performance of design choose – Identify bottlenecks, redesign and repeat process 4Computer System Architecture2011
  • 5. Computer OrganizationComputer Organization • The Simple Computer concise with – CPU – I/O Devices – Memory – BUS (Connection method) 5Computer System Architecture2011
  • 7. CPU – Central Processing UnitCPU – Central Processing Unit • Is the “Brain” • It Execute the program and stored in the main memory • Composes with several parts – Control Unit – Arithmetic and Logic Units – Registers 7Computer System Architecture2011
  • 8. RegistersRegisters • High-speed memory • Top of the memory hierarchy, and provide the fastest way to access data • Store temporary results • Some useful registers – PC – Program counters • Point to the next instructions – IR - Instruction Register • Hold instruction currently being execute 8Computer System Architecture2011
  • 9. Registers more…Registers more… • Types – User-accessible Registers – Data registers – Address registers – General purpose registers – Special purpose registers – Etc. 9Computer System Architecture2011
  • 10. InstructionInstruction • Types – Data handling and Memory operations • Set, Move, Read, Write – Arithmetic and Logic • Add, subtract, multiply, or divide • Compare – Control flow • Complex instructions – Take many instructions on other computers • saving many registers on the stack at once • moving large blocks of memory 10Computer System Architecture2011
  • 11. Parts of an instructionParts of an instruction • Opcode – Specifies the operation to be performed • Operands – Register values, – Values in the stack, – Other memory values, – I/O ports 11Computer System Architecture2011
  • 12. Type of the operationType of the operation • Register-Register Operation – Add, subtract, compare, and logical operations • Memory Reference – All loads from memory • Multi Cycle Instructions – Integer multiply and divide and all floating-point operations 12Computer System Architecture2011
  • 13. Fetch-Decode execute circleFetch-Decode execute circle • Instruction fetch – 32-bit instruction was fetched from the cache • Decode • Execute • Memory Access • Write back 13Computer System Architecture2011
  • 14. Fetch-Decode execute circleFetch-Decode execute circle 14Computer System Architecture2011
  • 15. MIcroprocessorsMIcroprocessors • Processors can be identify by two main parameters – Speed (MHz/ GHz) – Processor with • Data bus • Address bus • Internal registers 15Computer System Architecture2011
  • 16. Data busData bus • Known as Front side bus, CPU bus and Processor side bus • Use between CPU and main chipset • Define a size of memory – 32 bit – 64 bit etc. 16Computer System Architecture2011
  • 17. Data busData bus 17Computer System Architecture2011
  • 18. I/O Ports with data transfer ratesI/O Ports with data transfer rates Controller Port / Device Typical Data Transfer Rate Super I/O PS/2 (keyboard / mouse) 2 KB/s Serial Port 25 KB/s Floppy Disk 125 KB/s Parallel Port 200 KB/s Southbridge Integrated Audio 1 MB/s Integrated LAN 12 MB/s USB 60 MB/s Integrated Video 133 MB/s IDE (HDD, DVD) 133 MB/s SATA (HDD, DVD) 300 MB/s 18Computer System Architecture2011
  • 19. Address BusAddress Bus • Carries addressing information • Each wire carries a single bit • Width indicates maximum amount of RAM the processor can handle • Data bus and address bus are independent 19Computer System Architecture2011
  • 20. How CPU works?How CPU works? • A Simple CPU – 4 Bit Address bus – Registers A, B and C (4 Bit) – 8 Bit Program ( 4 BIT Instruction, 4 BIT Data) 20Computer System Architecture2011
  • 21. How CPU works?How CPU works? 2011 Computer System Architecture 21 A B C IP Instruction SET 0000 Sleep 0001 LOAD M → A 0010 LOAD M → B 0101 SET A → M 0110 SET B → M 1000 ADD A + B → C 1111 MOVE 1001 RESET IC ALUALU Register CRegister C Instruction CounterInstruction Counter
  • 22. How CPU works?How CPU works? 2011 Computer System Architecture 22 A B C C 0 0 0 0 Instruction SET 0000 Sleep 0001 LOAD M → A 0010 LOAD M → B 0101 SET A → M 0110 SET B → M 0111 SET C → M 1000 ADD A + B → C 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 1 0 3 0 0 1 0 0 1 0 1 4 1 0 0 0 0 0 0 0 5 0 1 1 1 0 0 0 0 6 IC 01
  • 23. How CPU works?How CPU works? 2011 Computer System Architecture 23 A B C C 0 0 0 1 Instruction SET 0000 Sleep 0001 LOAD M → A 0010 LOAD M → B 0101 SET A → M 0110 SET B → M 0111 SET C → M 1000 ADD A + B → C 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 1 0 3 0 0 1 0 0 1 0 1 4 1 0 0 0 0 0 0 0 5 0 1 1 1 0 0 0 0 6 0 0 1 0 IC 02
  • 24. How CPU works?How CPU works? 2011 Computer System Architecture 24 A 0 0 1 0 B C C 0 0 1 0 Instruction SET 0000 Sleep 0001 LOAD M → A 0010 LOAD M → B 0101 SET A → M 0110 SET B → M 0111 SET C → M 1000 ADD A + B → C 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 1 0 3 0 0 1 0 0 1 0 1 4 1 0 0 0 0 0 0 0 5 0 1 1 1 0 0 0 0 6 0 1 0 1IC 03
  • 25. How CPU works?How CPU works? 2011 Computer System Architecture 25 A 0 0 1 0 B 0 1 0 1 C 0 1 1 1 C 1 0 0 0 Instruction SET 0000 Sleep 0001 LOAD M → A 0010 LOAD M → B 0101 SET A → M 0110 SET B → M 0111 SET C → M 1000 ADD A + B → C 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 1 0 3 0 0 1 0 0 1 0 1 4 1 0 0 0 0 0 0 0 5 0 1 1 1 0 0 0 0 6 1 0 0 1 0 0 0 0 7 1 1 1 1 0 0 0 1 8 IC 04
  • 26. How CPU works?How CPU works? 2011 Computer System Architecture 26 A 0 0 1 0 B 0 1 0 1 C 0 1 1 1 C 0 1 1 1 Instruction SET 0000 Sleep 1111 MOVE 1001 RESET 0101 SET A → M 0110 SET B → M 0111 SET C → M 1000 ADD A + B → C 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 1 0 3 0 0 1 0 0 1 0 1 4 1 0 0 0 0 0 0 0 5 0 1 1 1 1 1 1 1 6 1 0 0 1 0 0 0 0 7 1 1 1 1 0 0 0 1 8 0 1 1 1 IC 05
  • 27. How CPU works?How CPU works? 2011 Computer System Architecture 27 A 0 0 1 0 B 0 1 0 1 C 0 1 1 1 C 1 0 0 1 Instruction SET 0000 Sleep 1111 MOVE 1001 RESET 0101 SET A → M 0110 SET B → M 0111 SET C → M 1000 ADD A + B → C 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 1 0 3 0 0 1 0 0 1 0 1 4 1 0 0 0 0 0 0 0 5 0 1 1 1 1 1 1 1 6 1 0 0 1 0 0 0 0 7 1 1 1 1 0 0 0 1 8 0 1 1 1 IC 06
  • 28. How CPU works?How CPU works? 2011 Computer System Architecture 28 A 0 0 0 0 B 0 0 0 0 C 0 0 0 0 C 0 0 0 0 Instruction SET 0000 Sleep 1111 MOVE 1001 RESET 0101 SET A → M 0110 SET B → M 0111 SET C → M 1000 ADD A + B → C 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 1 0 3 0 0 1 0 0 1 0 1 4 1 0 0 0 0 0 0 0 5 0 1 1 1 1 1 1 1 6 1 0 0 1 0 0 0 0 7 1 1 1 1 0 0 0 1 8 IC 06
  • 29. How CPU works?How CPU works? 2011 Computer System Architecture 29 A 0 0 0 0 B 0 0 0 0 C 0 0 0 0 C 1 1 1 1 Instruction SET 0000 Sleep 1111 MOVE 1001 RESET 0101 SET A → M 0110 SET B → M 0111 SET C → M 1000 ADD A + B → C 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 1 0 3 0 0 1 0 0 1 0 1 4 1 0 0 0 0 0 0 0 5 0 1 1 1 1 1 1 1 6 1 0 0 1 0 0 0 0 7 1 1 1 1 0 0 0 1 8 IC 07
  • 30. How CPU works?How CPU works? 2011 Computer System Architecture 30 A 0 0 0 0 B 0 0 0 0 C 0 0 0 0 C 0 0 0 0 Instruction SET 0000 Sleep 1111 MOVE 1001 RESET 0101 SET A → M 0110 SET B → M 0111 SET C → M 1000 ADD A + B → C 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 1 0 3 0 0 1 0 0 1 0 1 4 1 0 0 0 0 0 0 0 5 0 1 1 1 1 1 1 1 6 1 0 0 1 0 0 0 0 7 1 1 1 1 0 0 0 1 8 IC 01
  • 31. How BUS System works?How BUS System works? 2011 Computer System Architecture 31 DATA BUS CPU Device ADevice A Device BDevice B Device CDevice C ADDRESS BUSADDRESS BUS CONTROL BUSCONTROL BUS
  • 32. How BUS System worksHow BUS System works 2011 Computer System Architecture 32 DATA BUS ADDRESS BUSADDRESS BUS CONTROL BUSCONTROL BUS
  • 33. How BUS System worksHow BUS System works 2011 Computer System Architecture 33 DATA BUS CPU Device ADevice A Device BDevice B Device CDevice C ADDRESS BUSADDRESS BUS CONTROL BUSCONTROL BUS ADDRESS BUS 4 BIT DATA BUS 4 BIT CONTROL BUS 2 BIT
  • 34. How BUS System worksHow BUS System works 2011 Computer System Architecture 34 DATA BUS ADDRESS BUSADDRESS BUS CONTROL BUSCONTROL BUS CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0100 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0010 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0001
  • 35. How BUS System worksHow BUS System works 2011 Computer System Architecture 35 DATA BUS ADDRESS BUSADDRESS BUS CONTROL BUSCONTROL BUS CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0100 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0010 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0001 0 0 0 00 0 0 00 0 0 0 0 00 0
  • 36. How BUS System worksHow BUS System works 2011 Computer System Architecture 36 DATA BUS ADDRESS BUSADDRESS BUS CONTROL BUSCONTROL BUS CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0100 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0010 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0001 0 1 0 00 1 0 00 0 0 0 0 00 0
  • 37. How BUS System worksHow BUS System works 2011 Computer System Architecture 37 DATA BUS ADDRESS BUSADDRESS BUS CONTROL BUSCONTROL BUS CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0100 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0010 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0001 0 1 0 00 1 0 01 01 0 1 01 0
  • 38. How BUS System worksHow BUS System works 2011 Computer System Architecture 38 DATA BUS ADDRESS BUSADDRESS BUS CONTROL BUSCONTROL BUS CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0100 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0010 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0001 0 0 1 00 0 1 01 01 0 0 00 0
  • 39. How BUS System worksHow BUS System works 2011 Computer System Architecture 39 DATA BUS ADDRESS BUSADDRESS BUS CONTROL BUSCONTROL BUS CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0100 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0010 CONTROL 2 BIT 01 – READ, 10 – Write ADDRESS 0001 0 0 1 00 0 1 01 01 0 0 10 1