05.08.2014 Views

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

31 26 0<br />

4 control signals<br />

EX/Address calculation stage - regdst, aluop1, aluop0, alusrc<br />

3 control signals<br />

memory access stage - branch, memread, memwrite<br />

2 control signals<br />

write back stage - regwrite, memto reg<br />

Page | 151<br />

Identify the control signals generated with lw<br />

0001 010 11<br />

Identify the control signals generated with R-<strong>for</strong>mat<br />

1100 000 10<br />

Identify the control signals generated with sw<br />

X001 001 1x<br />

Identify the control signals generated with beq<br />

X010 100 0x<br />

Inputs<br />

op5 op4 op3 op2 op1 op0<br />

R - 0 0 0 0 0 0 0 add, sub, AND, OR Slt<br />

1W - 1 0 0 0 1 1 35<br />

SW 3 - 1 0 1 0 1 1 43<br />

Beq 4 - 0 0 0 1 0 0 4<br />

OPS<br />

Reg Dst Alu OP1 Alu OP2 Alu src Branch Mem<br />

Read<br />

Mem<br />

Write<br />

Reg<br />

write<br />

1 1 0 0 0 0 0 1 0<br />

0 0 0 1 0 1 0 1 1<br />

X 0 0 1 0 0 1 0 x<br />

X 0 1 0 1 0 0 0 x<br />

mem to<br />

Reg<br />

Truth table<br />

Inputs<br />

op5 op4 op3 op2 op1 op0 RegDst<br />

outputs<br />

Alu<br />

OP1<br />

Alu<br />

OP2<br />

Alusrc branch mem<br />

Read<br />

mem<br />

Writ<br />

e<br />

Reg<br />

write<br />

mem<br />

to<br />

Reg<br />

0 0 0 0 0 0 1 1 0 0 0 0 0 1 0<br />

1 0 0 0 1 1 0 0 0 1 0 1 0 1 1<br />

1 0 1 0 1 1 X 0 0 1 0 0 1 0 X<br />

0 0 0 1 0 0 X 0 1 0 1 0 0 0 X

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!