{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

InClassActivity08-sol - 10:54 PM SOLUTION Activity#08...

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

View Full Document Right Arrow Icon
2/18/02 10:54 PM ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2002 Page 1 of 2 SOLUTION Activity #08 Activity 8.1 Single-cycle datapath 1. (50) Do question 5.5 in your textbook. Figure 5.20 of your textbook is reproduced below PC Instruction memory Read address Instruction [31– 0] Instruction [20 16] Instruction [25 21] Add Instruction [5 0] MemtoReg ALUOp MemWrite RegWrite MemRead Branch RegDst ALUSrc Instruction [31 26] 4 16 32 Instruction [15 0] 0 0 M u x 0 1 Control Add ALU result M u x 0 1 Registers Write register Write data Read data 1 Read data 2 Read register 1 Read register 2 Sign extend M u x 1 ALU result Zero PCSrc Data memory Write data Read data M u x 1 Instruction [15 11] ALU control Shift left 2 ALU Address a. (10 points) What changes to the datapath are needed? No additions to the datapath required. Grading: 3 points for unnecessary additions. b. (40 points) What changes to the Figure 5.20 are needed? A new row should be added to the truth table in Figure 5.20. The new control is similar to load word because we want to use the ALU to add the immediate operand to a register (and thus RegDst = 0, ALUSrc = 1, ALUop = 00). The new
Image of page 1

Info icon This 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.

{[ 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