Lect - 9 - CISC Processor Level 2 Flow Chart - U
Lect - 9 - CISC Processor Level 2 Flow Chart - U
Architecture
a - addressing modes
If any addressing mode is valid for any instruction, we will have k*a instructions
Addressing
mode
If we can not able to reduce the number of states as per our expectation, we may
explore the possibility of improving execution unit.
Adding more information to Level 2 Flowcharts
To make easier to use and easier for translating flowchart to hardware, we
will add more description to level 2 flowchart
Label A Label B
Access Type
duplicates
edb irf ir
add-n
ry a alu,ao
+1 alu
brzz1 bc
Z=1 Z=0
na ir
irf ire x-n edb irf add-n
t1 a pc pc a alu, ao
+1 alu
brzz2 ib brzz3 brzz4
na
irf ire x-n
t1 b pc
brzz4 ib
BZ
edb irf ir
add-n
ry a alu,ao
+1 alu
brzz1 bc
Z=1 Z=0
na ir
irf ire x-n edb irf add-n
t1 a pc pc a alu, ao
+1 alu
brzz2 ib brzz3 brzz2
MEM RX LOAD RY RX LOAD
RY RX LOAD
edb irf ir
pc a alu , ao add-n
ry b rx, t2
+1 alu
ldrr1 ldrm2
RY RX STORE
edb irf ir
pc a alu , ao add-x
RY RX STORE
rx b ry, t2
+1 alu edb irf ir
strr1 strr2 pc a alu , ao add-x
irf ire na rx b ry, t2
t1 b pc add-s +1 alu
strr1 ldrm2
t2 a alu
0 alu
strr2 ib
RX MEM STORE
RX MEM STORE
rx a alu, do dw
t2 b ao add-s rx a alu, do dw
0 alu t2 b ao add-s
0 alu
strm1 strm2
ir strm1 brzz3
edb irf
pc a alu , ao add-n
+1 alu
strm2 strm3
na
irf ire x-n
t1 b pc
strm3 ib
RX OP RY RY ADD,AND,SUB RX OP RY RY ADD,AND,SUB
na na
rx a alu op-s rx a alu op-s
ry b alu ry b alu
oprr1 oprr2 oprr1 oprr2
edb irf ir edb irf ir
pc a alu , ao add-n pc a alu , ao add-n
t1 b ry t1 b ry
+1 alu +1 alu
oprr2 oprr3 oprr2 brzz2
na
irf ire x-n
t1 b pc
oprr3 ib
RX OP MEM MEM ADD,AND,SUB RX OP MEM MEM ADD,AND,SUB
na na
di b alu op-s di b alu op-s
rx a alu rx a alu
oprm1 oprm2 oprm1 oprm2
dw dw
t1 a do x-n t1 a do x-n
t2 b ao t2 b ao
oprm2 oprm3 oprm2 brzz3
edb irf ir
add-n
pc a alu,ao
+1 alu
oprm3 oprm4
na
irf ire x-n
t1 b pc
oprm4 ib
MEM ALU TEST MEM ALU TEST
di b t2 ir
di b t2 ir
edb irf add-x
edb irf add-x
pc a alu,ao pc a alu,ao
+1 alu +1 alu
test1 test2 test1 ldrm2
irf ire na
t1 b pc add-s
t2 a alu
0 alu
test2 ib
Level 2 Flowcharts after elimination of duplicate states
Level 2 Flowcharts after elimination of duplicate states
Level 2 Flowcharts after elimination of duplicate states
Level 1 Flowcharts Level 2 Flowcharts
control fields
OP TY NA
Execution unit control Control store Next
Address Address
Select
control fields
OP TY NA
Execution unit control Control store Next
Address Address
Select
bits
State sequencer Control
control fields
OP TY NA
Execution unit control Control store Next
Address Address
Select
Control Store Address Select: Next Address type BC, DB, IB, SB
BC : Branch conditionally
NA modified by condition code from EU
Instruction
Addressing
mode
abdm1
oprm1
Assume two instructed need to be executed are
POP
ADD RX (RY+d)@