Hw3 - memory For all of these implementations you should...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Problems 4.7.1-4.7.3 and 4.10 in your book. Plus the problems below. Use the datapath and control figures from the lecture slides to  implement these instructions - remember that you must show both datapath  modifications (if any) and control modifications for each. Implement the following instructions on the single-cycle datapath: a) addi - add immediate b) jr - jump register And the following instructions on the multicycle datapath: a) jal - jump and link b) swap - an I-type instruction with the following effect: R[rs]=R[rt] R[rt]=R[rs] c) MINC - memory increment - an I type instruction with the following effect: M[R[rs]+SES(I)]=M[R[rs]+SES(I)]+1 So you are just adding 1 to a value loaded from memory and then writing it back to 
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: memory. For all of these implementations, you should not change the architecture of the ALU, register file, or memory - and you should not change the contents of the register file or memory unless the instruction specifies that you should do so. For example, MINC says you should change the value of one address in memory (the address specified by base+displacement addressing), but you should not be changing any values in the register file or any other addresses in memory. Finally, after your modifications, all of the original instructions in the datapath and control must still work correctly....
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern