Professional Documents
Culture Documents
using all the above techniques, one can begin to use them
for assigning the logic of
Branch
OP TY NA Control
Unit
IRF
Execution Unit
OP : Control Fields
fields of bits decoded to drive control lines in execution unit.
BC : Branch conditionally
NA modified by condition code from EU
One decoder points too the first control word in address mode sequence and
other points to the first control word in execution sequence
The last state in any execution sequence shows IB in next state block . IB
instruction decoder points to the first control word sequence in the next
instruction sequence
The last state in any address mode sequence shows SB in the next state block
SB instruction decoder points to the first control word in execution sequence
PUSH
BITS Pilani, Pilani Campus
Control word format
pc a
a pc
b pc
none
pc a alu
pc a rx
PC
0 1 B-Bus
0 none pc a
1 b pc
x
BITS Pilani, Pilani Campus
T2 control
t2 a
t2 b
a t2
b t2
none
t2a.t2b’
T2
t2a.t2b
t2b.t2a’
0 1 B-Bus
o none t2 a
1 b t2 t2 b
IRE
LOAD CCR MPX
ADD
FLAGS
FUNC
A-BUS
A
L
T1 U 1
0
MPX
-1
LOAD T1
SEL
B-BUS
a0 CarryIn
Multiplexor control line Result0
Operation ALU0
b0
CarryIn CarryOut
a
0 a1 CarryIn
Result1
ALU1
b1
1 CarryOut
Result
2 a2 CarryIn
b Result2
ALU2
b2
CarryOut
CarryOut
1-bit ALU for AND, OR and add
a31 CarryIn
Result31
ALU31
b31
a
0 Binvert CarryIn Operation
R esult a0 CarryIn
b 0 2 b0 ALU0 Result0
Less
1
CarryOut
Less input of
L ess 3 the 31 most
significant ALUs
is always 0
a1 CarryIn
a. C arryO u t
b1 ALU1 Result1
1- bit ALU for the 31 least significant bits 0 Less
Extra set bit, to be routed to the Less input of the least significant 1-bit CarryOut
ALU, is computed from the most significant Result bit and the Overflow bit
Bin ve rt Op eration
a2 CarryIn
C arryIn
b2 ALU2 Result2
0 Less
a CarryOut
0
R esu lt CarryIn
b 0 2
1
a31 CarryIn Result31
Le ss 3 b31 ALU31 Set
0 Less Overflow
Set
Ov erflo w
O ve rflow
de tection
b.
32-bit ALU from 31 copies of ALU at top left and 1 copy
1-bit ALU for the most significant bit of ALU at bottom left in the most significant position
Control lines
load t1
load ccr
add / op select
none 000
ry a rx a, ry b
b rx b ry
ry b; b rx b rx; a ry
rx a rx a, b ry
rx b, b ry none
ry a rx a, ry b edb di
ry a ao
b rx b ry
ry b; b rx b rx; a ry
rx a rx a, b ry di b alu
rx a alu
rx b, b ry none
di b rx
t1 a ry
BITS Pilani, Pilani Campus
ar3/(b r3)’
r3a
r3
MPX R3
r3b
AO PC T2 REGS T1 …
n- 2 n decoder
r
a r / (b r )’
ra
rb
BITS Pilani, Pilani Campus
OP RX MODE RY
AO PC T2 REGS T1 …
n- 2 n decoder
ry
a ry / (b ry )’
ry a
n- 2 n decoder
ry b
Control word reg
Control field decoder
BITS Pilani, Pilani Campus
r3 a = (rx a ).x3 + (ry a).y3 to A
ry a ry a
b rx b rx; rx
ry b; b rx b rx; rx ; ry b
rx a rx a
rx b; b ry rx b; ry ;b ry
rx a; ry b rx a; ry b
b ry b ry; ry
rx a; b ry rx a; ry ; b ry;
none none
ry a
rx b
ry b
ry
rx
a ry
b ry
b rx
BITS Pilani, Pilani Campus
Control word Control field bit
states assignments
none 0000
b rx 0001
ry a 0010
rx a 0011
b ry 0100
rx b, b ry 0110
rx a, b ry 0111
ry b, b rx 1001
rx a, ry b 1011
b rx, a ry 1101
00 none b rx rx a ry a
rx a rx b
01 b ry b ry
b ry b ry ry
b rx
11 a ry
a ry
b rx rx a
10
ry b ry b
b rx rx a
rx
BITS Pilani, Pilani Campus
Control Decoder patterns
Lines
rx a xx11
ry a 0010
rx b 0110
ry b 10xx
rx xx01
ry x1xx
a ry 11xx
b rx xx01
b ry 01xx
0010
ry a do
t1 b a0, ry
0111
rx a xx11
ry x1xx
b ry 01xx
rx b 0110
ry x1xx
b ry 01xx