Professional Documents
Culture Documents
Bahir Dar University Faculty of Electrical and Computer Engineering
Bahir Dar University Faculty of Electrical and Computer Engineering
Bahir Dar University Faculty of Electrical and Computer Engineering
19-Oct-16
The computer system 2
In this chapter:
Basic Computer Components and Function
Interconnection Structure
Bus Interconnection
19-Oct-16
Computer components 3
19-Oct-16
Computer components 4
Another alternative:
General purpose configuration of components (ALU)
System accepts data and control signals and produce
results
New set of control signals instead of rewiring hardware
how control signals are supplied:
o The entire program is sequence of steps
o For each step, new set of control signals is needed
o Provide a unique code for each possible set of
control signals
o The sequence of codes/instructions is called
19-Oct-16
software.
Computer components 5
19-Oct-16
Computer function 8
19-Oct-16
Fetch cycle Instruction cycle 9
Execute cycle:
Processor-memory
o Data transfer between CPU and main memory
Processor I/O
o Data transfer between CPU and I/O module
Data processing
o Some arithmetic or logical operation on data
Control
o Alteration of sequence of operations
o e.g. jump
Instruction execution may involve combination of the
above
19-Oct-16
Example of Program Execution 11
19-Oct-16
Example of Program Execution 12
Program:
AC ← M(940)
AC ← AC + M(941)
M(941) ← AC
19-Oct-16
Instruction Cycle State Diagram 13
19-Oct-16
Interrupts 14
Interrupt
Mechanism by which various events (e.g. I/O) may
interrupt normal sequence of processing
Classes of interrupts:
o Program
• Overflow, division by zero, etc.
o Timer
• Generated by internal processor timer
• Used in pre-emptive multi-tasking
o I/O
• From I/O controller
o Hardware failure
19-Oct-16 • Memory parity error, etc.
Interrupts 15
19-Oct-16
Instruction cycle with interrupt 16
19-Oct-16
State diagram with interrupt 17
19-Oct-16
Interconnection Structures 19
Memory connection
Receives:
−Data
−Addresses (of locations)
−Control signals
−Read
−Write
−Timing
Sends
−Data
19-Oct-16
Interconnection Structures 20
I/O connection
Receives
−Control signals from computer
−Addresses from computer
−e.g. port number to identify peripheral
−Data from computer
−Data from peripheral
Sends
−Control signals to peripherals
−e.g. spin disk
−Data to peripherals
−Data to computer
−Control signals to computer
19-Oct-16
−Interrupts
Interconnection Structures 21
CPU connection
Receives
−Instructions
−Data
−Control
−interrupts
Sends
−Data
−Address
−Control signals to other units
19-Oct-16
Interconnection Structures 22
19-Oct-16
Bus Interconnection 23
19-Oct-16
Bus Interconnection 25
Data bus:
Carries data
Remember – no difference between “data”
and “instruction” at this level
Bus width
key determinant of performance
typically 8, 16, 32, 64 bit
19-Oct-16
Bus Interconnection 26
Address bus:
Identifies the source or destination of data
e.g. CPU needs to read an instruction (data)
from a given location in memory
Also used to address I/O ports
Bus width
determines maximum memory capacity of
system
e.g. 8080 has a 16 bit address bus giving 64k
address space
19-Oct-16
Bus Interconnection 27
Control bus
Control and timing information
Memory read/write signal
I/O read/write signals
Bus arbitration signals – requests, grants
Interrupt signals – requests, acknowledgments
Clock signals
19-Oct-16
General Bus Operation 28
Send data
Obtain use of bus
Transfer data
Request data
Obtain use of bus
Transfer request for data
Wait for data
19-Oct-16
Physical Bus Architecture 29
19-Oct-16
Physical Bus Architecture 30
19-Oct-16
Single Bus Problems 31
19-Oct-16
Traditional Bus (with cache) 32
19-Oct-16
High Performance Bus 33
19-Oct-16
Readings 34
Text:
Chapter 3, 73-94
19-Oct-16
35
THANK YOU!!!!
19-Oct-16