Chapter 2
Chapter 2
Semester 1
EMT 475/3
Computer Organization
& Architecture
Chapter 2: Computer Function &
Interconnection
We have a computer!
1 2
Example:
Consist of fetch cycle and execute cycle.
1. Fetch the instruction from memory location
A, PC = 300, value = 1940 (hex) & load into
IR.
2. Execute LOAD operation of value in address
940 into AC.
3. Fetch the instruction from memory location
B, PC = 301, value = 5941 (hex) & load into
IR.
4. Execute ADD operation of two values in 940
& 941. Load into AC.
5. Fetch the instruction from memory location
B, PC = 302, value = 5941 (hex) & load into
IR.
6. Execute STORE operation by storing value
AC into memory location B (941).
3 4 6
Check
YES for NO
interrupt
Suspend execution Fetch next
of current program instruction
Save context
Set PC to start
address of interrupt
handler routine
END
Faculty of Electronic Engineering Technology 19
Universiti Malaysia Perlis
Computer Function
Normal: Program Flow Program Timing
Refer Pg. 13
Refer Pg. 29
Faculty of Electronic Engineering Technology Refer Pg. 28 30
ISR – Interrupt Service Routine Universiti Malaysia Perlis
Interconnection Structures
• All the units must be connected
• Different types of connection for different types of unit
―Memory
―Input/Output (I/O)
―CPU
Refer Pg. 46
Physical