PS_Chapter4 - Chapter 4 Problems 13.04.2016 For More...

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

View Full Document Right Arrow Icon
Chapter 4 Problems 13.04.2016
Image of page 1

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

View Full Document Right Arrow Icon
For More Practice
Image of page 2
Single Cycle Datapath
Image of page 3

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

View Full Document Right Arrow Icon
Exercise 5.21 Put a new mux right before branch AND gate. There will be a new selector signal for this mux (call it as InvZero ). Connect zero and inverted zero inputs to the new mux.
Image of page 4
Single Cycle Datapath
Image of page 5

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

View Full Document Right Arrow Icon
For More Practice R-format load word lw rd, rs, rt RegDst ALUsrc MemtoReg RegWrite MemRead MemWrite ALUop 1 0 1 1 1 0 10
Image of page 6
4th Edition
Image of page 7

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

View Full Document Right Arrow Icon
Single Cycle Datapath
Image of page 8
Exercise 4.8.1 a. 7th bit immediate, offset Addi $1, $zero, 128 $1 128 0000...00001000000 If $1 = 0, there is stuck-at-zero fault ! b. MemtoReg register write data input comes from data memory (load) lw $1, 1024($zero) # Assume that data memory full of zeros If $1 = 1024, there is stuck-at-zero fault ! 7th bit
Image of page 9

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

View Full Document Right Arrow Icon
4th Edition
Image of page 10
Single Cycle Datapath
Image of page 11

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

View Full Document Right Arrow Icon
Exercise 4.10.1.a Critical Path path to get the data for a load instruction. Load I mem + Mux + Regs + Mux + ALU + Dmem + Mux 1 CC = 400 + 30 + 200 + 30 + 120 + 350 + 30 1 CC = 1160 ps. I mem 400 ps 1160 400 = 760 ps. MemWrite signal should be generated in 760 ps w/o lengthening the critical path of the datapath. Exercise 4.10.2.a MemWrite and RegWrite. Both of them are at the end of clock cycle !
Image of page 12
4th Edition
Image of page 13

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

View Full Document Right Arrow Icon
Single Cycle Datapath
Image of page 14
Exercise 4.10.3.a I. RegWrite , MemWrite end of the cycle II. RegDst, Jump, MemtoReg 1 mux latency before end III. Branch 2 mux latency before end IV. MemRead 1 Dmem + 1 mux latency before end V. ALUop ALUCtrl + ALU + Dmem + mux latency before end VI. ALUsrc 1 mux + ALU + Dmem + mux latency before end According to their criticality; a. ALUCtrl latency > Mux latency ALUop is the most critical.
Image of page 15

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

View Full Document Right Arrow Icon
Image of page 16
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