Escolar Documentos
Profissional Documentos
Cultura Documentos
Micro-op Grouping
• Must have proper t1: MAR ← (PC)
sequence t2: MBR ← (mem)
• No conflicts
– no write to/read from
t2: MBR ← (mem)
with same register t3: IR ← (MBR)
(set?) at the same time
– each circuitry can be
used by only one t2: PC ← (PC) +1
micro-op at a time t3: R1 ← (R1) + (MBR)
• E.g., ALU
Indirect Cycle
• Instruction contains indirect address of an
operand, instead of direct operand address
MBR MAR
MAR ← (IRaddress)
MBR ← (mem) (Replace indirect address
IRaddress ← (MBR) by direct address)
Interrupt Cycle
• After execution cycle test for interrupts
• If interrupt bits on, then
– save PC to memory
t1: MBR ← (PC)
– jump to interrupt t2: MAR ← save-address
handler PC ← routine-address
– or, find out first t3: mem ← (MBR)
correct handler for
implicit - just wait?
this type of interrupt
and then jump to that (need more micro-ops)
– context saved by interrupt handler
10/10/2001 Copyright Teemu Kerola 2001 9
Hardwired
Control Logic Implementation (3)
Finite state
Initial representation: diagram
Explicit
Sequencing control: next state
function
Logic
Logic representation: equations Programmable
Logic Array
Implementation: PLA
O
Control Logic
u
Multicycle
t
Datapath
p
u
t
Inputs s
Logic Equations
Next state from current state Alternatively,
– State 0 -> State1 prior state & condition
S4, S5, S7, S8, S9, S11 -> State0
– State 1 -> S2, S6, S8, S10
_________________ -> State1
– State 2 ->__________
_________________ -> State 2
– State 3 ->__________
_________________ -> State 3
– State 4 ->State 0
_________________ -> State 4
– State 5 -> State 0
State2 & op = SW -> State 5
– State 6 -> State 7 _________________ -> State 6
– State 7 -> State 0 State 6 -> State 7
– State 8 -> State 0 _________________ -> State 8
– State 9-> State 0 State3 & op = JMP -> State 9
– State 10 -> State 11 _________________ -> State 10
– State 11 -> State 0 State 10 -> State 11