<div dir="ltr">Dear Computer Architecture Class:<div><br></div><div>The slides for the flow of the I-Type instruction is correct in the implementation we reviewed today.</div><div><br></div><div>The I-Type instructions include the lw, sw and beq.</div><div><br></div><div>For the lw and sw, the address to read a word from or store a word to is calculated by adding the 16-bit sign extended offset (NOT shifted left by two since this represents the number of words to skip) to the base register. Now, the branch instruction, beq, calculates the address to jump to by using relative addressing (relative to the current PC which is already updated by 4). So, the way the address is calculated if the branch is taken is add the sign extended offset that is then shifted left by 2 bits (filling these right two bits with 00) to the PC that is already incremented by 4.</div><div><br></div><div>Best,</div><div>Dianne<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>