<div dir="ltr">Dear Computer Architecture Class:<div><br></div><div>The figure 4.2 from the book for homework 6, problem 1, is not clear.  We cannot assume that 0 represents the selector value at the top of the multiplexers and 1 represent the selector at the bottom in regards to controlling the input into the PC (see Figure 4.33 for the mux settings.    </div><div><br></div><div>To understand the signals that need to be set, later figures of the single cycle datapath, Figure 4.15 with signal names and effects in Figure 4.16 provide a clearer picture.  Examining these figures, for the AND instruction: RegDst should be asserted to select register rd as the destination register; ALUSrc should be set to 0 to read data 2 from the register file to use the rt register; PCSrc should be deasserted to increment the PC by 4; MemRead and MemWrite are deasserted since the AND instruction uses only registers rs, rt and rd and does not store or load data from memory; MemtoReg is deasserted so that the write data to register rd will be fed from the ALU.  The ALUOp is 10 (because AND is an R-format instruction) and the ALU control is 0000 for the AND instruction.  Furthermore, examining figure 4.17, Branch is deasserted.</div><div><br></div><div>So, I am giving 5 points on question 1 to all who turn in their homework 6.  However, for your knowledge, please read the answer given above.</div><div><br></div><div>Sincerely,</div><div>Dianne</div><div><br></div><div><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font face="Calibri,sans-serif" size="2" style="color:rgb(0,111,201)"><span style="font-size:16px">_______________________________________________</span></font><br style="color:rgb(0,111,201);font-family:Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,sans-serif" size="2" style="color:rgb(0,111,201)"><span style="font-size:16px">Dr. Dianne Foreback, Assistant Professor</span></font><br style="color:rgb(0,111,201);font-family:Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,sans-serif" size="2" style="color:rgb(0,111,201)"><span style="font-size:16px">Department of Computer Science</span></font></div><div><font face="Calibri,sans-serif" size="2" style="color:rgb(0,111,201)"><span style="font-size:16px">Math and Computer Science Building (MSB) 266</span></font></div><div><font face="Calibri,sans-serif" size="2" style="color:rgb(0,111,201)"><span style="font-size:16px">P.O. Box 5190, </span></font><span style="color:rgb(0,111,201);font-family:Calibri,sans-serif">Kent, Ohio 44242-0001, USA</span></div><div><font face="Calibri,sans-serif" size="2" style="color:rgb(0,111,201)"><span style="font-size:16px">Phone: <a href="tel:330.672.9064" value="+13306729064" style="color:rgb(17,85,204)" target="_blank">330.672.9064</a></span></font></div><div><font face="Calibri,sans-serif" size="2" style="color:rgb(0,111,201)"><span style="font-size:16px">Email: <a href="mailto:dforebac@kent.edu" style="color:rgb(17,85,204)" target="_blank">dforebac@kent.edu</a></span></font></div><div><font face="Calibri,sans-serif" size="2" style="color:rgb(0,111,201)"><span style="font-size:16px">_______________________________________________</span></font></div></div></div></div>
</div></div>