














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!















device
0, set M[255] to 0 (assume those locations are ports).
through 199.
can build one top down
usually built this way
more bottom-up design
Aliases: op IR[15..12] rn IR[11..8] rm IR[7..4]
dir IR[7..0] imm IR[7..0] rel IR[7..0]
op = 0000
M[dir] = RF[rn]
M[rn] = RF[rm]
RF[rn]= imm
RF[rn] =RF[rn]+RF[rm]
RF[rn] = RF[rn]-RF[rm]
PC=(RF[rn]=0) ?rel :PC
to Fetch
to Fetch
to Fetch
to Fetch
to Fetch
to Fetch
to Fetch
from states below
RFwa=rn; RFwe=1; RFs=01; Ms=01; Mre=1;
RFr1a=rn; RFr1e=1; Ms=01; Mwe=1;
RFr1a=rn; RFr1e=1; Ms=10; Mwe=1;
RFwa=rn; RFwe=1; RFs=10;
RFwa=rn; RFwe=1; RFs=00; RFr1a=rn; RFr1e=1; RFr2a=rm; RFr2e=1; ALUs= RFwa=rn; RFwe=1; RFs=00; RFr1a=rn; RFr1e=1; RFr2a=rm; RFr2e=1; ALUs= PCld= ALUz; RFrla=rn; RFrle=1;
Irld=1; Mre=1; PCinc=1;
op = 0000
M[dir] = RF[rn]
M[rn] = RF[rm]
RF[rn]= imm
RF[rn] =RF[rn]+RF[rm]
RF[rn] = RF[rn]-RF[rm]
PC=(RF[rn]=0) ?rel :PC
to Fetch
to Fetch
to Fetch
to Fetch
to Fetch
to Fetch
to Fetch
from states below
Controller (Next-state and control logic; state register)
Memory
RFwa
RFwe
RFr1a
RFr1e
RFr2a
RFr2e
RFr1 RFr
RFw
ALUs
ALUz
RFs
PCld PCinc
PCclr
To all input contro l signals
From all output control signals
Irld
You just built a simple microprocessor!
port connector pins and corresponding register location
Pin 13
Pin 2
Switch
LED