Registers
&
Bus System
1
krraju.in
2
Basic Computer Organization and Design: Instruction Codes, Computer Registers, Computer Instructions, Timing and Control, Instruction Cycle, Memory-Reference Instructions, Input Output and Interrupt, Complete Computer Description, Design of Basic Computer.
Micro programmed Control: Control Memory, Address Sequencing, Micro program Example, Design of Control Unit
Unit-2
What you’ll learn
krraju.in
Register
A hardware device that stores binary data such as
(a) Register R1
(b) Showing individual bits
(c) Number of bits
(d) Divided into two parts
3
R1
7 6 5 4 3 2 1 0
R2
15 0
15 8
7 0
PC(H)
PC(L)
Register representation
krraju.in
Computer Hardware
Internal Organisation specifies
Internal organisation of a system and logic circuits needed for its design are described using Register Transfer Language (RTL)
4
krraju.in
Register Transfer Notation (RTN)
Used to describe the transfer of information from one location to another.
Examples
5
Expression
The right hand side always denotes a value, and the left hand side is the name of a location where the value is to be placed, overwriting the old contents.
R2←R1
krraju.in
6
Memory Read
Memory Write
M[AR]←R1
DR←M[AR]
Memory to Register
Register Addition
R3←[R1]+[R2]
R1←[LOC]
R3←R1+R2
krraju.in
Transfer from R1 to R2 when P=1
Conditional Expression
7
R2
Clock
R1
/ n
P
Load
Control Unit
|
|
|
|
|
|
|
|
|
t
t+1
|
|
Transfer occurs here
Clock
Load
☞The control function is a boolean variable that is equal to 1 or 0.
☞The control condition is terminated with a colon.
P: R2←R1 [If (P=1) then (R2←R1)]
(The transfer is executed only when P=1)
krraju.in
Sequential Circuits
8
Combinatorial Circuit
Flip-flops
Inputs
Clock
Outputs
Sequential circuit
Combinatorial Circuit
krraju.in
How a Computer Implements Decisions
9
Operation
IF (a=b) THEN do this ELSE do that
Two actions are necessary
krraju.in
Implementation
10
Decision Circuit
Comparator
A
B
Data inputs to be compared
Result of comparison
2 X 1
MUX
0
1
Current address (ELSE address/ Address path on not equal)
Next address
Branch address (THEN address/ Address path on equal)
krraju.in
Bus
Computers contain a number of buses that provide pathways between components
Typical Buses (50-100 lines)
11
krraju.in
Bus Performance
To avoid bottlenecks, multiple buses are used
12
krraju.in
Bus Arbitration
Process of insuring only one device places information onto the bus at a time
13
krraju.in
Bus Timing
Synchronous [e.g., PCI bus]
Asynchronous [e.g., Futurebus+]
14
krraju.in
Registers Connected to Common Bus
15
Reg. A
common bus
S1
S5
Reg. B
S2
S6
Reg. C
S3
S7
Reg. D
S4
S8
Source:
Reg.A
[Close Switch S1]
Destination:
Reg.C
[Close Switch S7]
krraju.in
Bus System for Two Registers
16
2 X 1
MUX 1
0
1
Reg. B
2 - line common bus
0
1
S
2 X 1
MUX 0
0
1
Reg. A
0
1
S | Reg. |
0 | A |
1 | B |
1 X 2
Decoder
S
krraju.in
Three State Buffer
17
Normal Input A
Control Input C
Output Y=A if C=1
High impedance if C=0
A
Bus line
B
1 X 2
Decoder
S
krraju.in
Recap
18
krraju.in