





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Next PC
Operand
Fetch
Exec Reg.File MemAccess
DataMem
Instruction
Fetch
Result Store
ALUctr
RegDst nPC_sel ExtOpALUSrc MemWr MemRdMemWr RegWr
Equal
Next PC
Operand
Fetch
Instruction
Fetch
nPC_sel
Reg File ExtALU Reg.File
MemAccess
DataMem
Result Store
RegDstRegWr MemRdMemWr
MemToReg
Equal
ExtOpALUSrcALUctr
inst Logical Register Transfers SW MEM[R[rs] + SExt(Im16)] <= R[rt]; PC <= PC + 4
inst Physical Register Transfers IR <= MEM[pc] SW A<= R[rs]; B <= R[rt] S <= A + SExt(Im16); MEM[S] <= B PC <= PC + 4
Exec
Reg.File
Mem Access
DataMem
RegFile PC
Next PC
Inst. Mem
Time
inst Logical Register Transfers BEQ if R[rs] == R[rt] then PC <= PC + 4+{SExt(Im16), 2’b00} else PC <= PC + 4
Exec
Reg.File
Mem Access
DataMem
RegFile PC
Next PC
Inst. Mem
inst Physical Register Transfers IR <= MEM[pc] BEQ E<= (R[rs] = R[rt]) if (!E) PC <= PC + 4; else PC <=PC+4+{SExt(Im16),2’b0}
Time
Control State
Next State Logic
Output Logic
inputs (conditions)
outputs (control points)
State X
Register Transfer Control Points
Depends on Input
R-type
A <= R[rs] B <= R[rt]
S <= A fun B
R[rd] <= S PC <= PC + 4
S <= A | ZX
R[rt] <= S PC <= PC + 4
ORi
S <= A + SX
R[rt] <= M PC <= PC + 4
M <= MEM[S]
S <= A + SX
MEM[S] <= B PC <= PC + 4
PC <= Next(PC,Equal)
“instruction fetch”
“decode / operand fetch”
Execute
Memory
Write-back
State Op field Eq Next IR PC Ops Exec Mem Write-Back en sel A B E Ex Sr ALU S R W M M-R Wr Dst
ORi:
-all same in Moore machine
op-code
Map ROM
Micro-PC
datapath control
taken
R-type 000000 0100 BEQ 000100 0011 ori 001101 0110 LW 100011 1000 SW 101011 1011
sequencer control
micro-PC
μ-sequencer: fetch,dispatch, sequential
Dispatch ROM
Opcode
Inputs
Decode Decode
datapath control
microinstruction (μ)
Main Memory
execution unit
control CPU memory
User program plus Data
this can change!
AND microsequence
e.g., Fetch Calc Operand Addr Fetch Operand(s) Calculate Save Answer(s)
one of these is mapped into one of these
R-type 000000 0100 BEQ 000100 0011 ori 001101 0110 LW 100011 1000 SW 101011 1011