P1 10 points Consider a single cycle implementation of the...

This preview shows page 1 - 3 out of 7 pages.

Cpr E 381 Homework 8 Solution Reading Assignment: Section 4.1-4.5. P1. (10 points) Consider a single cycle implementation of the processor that implements a LW, SW, R-type, BEQ, BNE, and Jump instruction. You can view the data path in the book or notes. A stuck-at-fault is that the signal value does not change and stuck at a value. Describe the effect that a single stuck-at-0 fault (i.e., regardless of what it should be, the signal is always 0) would have for the signals (a) RegWrite = 0; (b) ALUop0 = 0; (c) ALUop1 = 0; (d) Branch = 0; (e) MemRead = 0; (f) MemWrite = 0. Which instructions, if any, will not work correctly? Explain why.
P2. (10 points) For the same signals in the previous problem, evaluate a stuck-at-1 fault (signal is always a 1). Which instructions, if any, will not work correctly? Explain why.
1
2 (b) ALUop0 =1: LW, SW and R-type Explain: lw and sw will not work correctly because the ALUop will be same as branch. The ALU will perform subtraction instead of addition. All R- type instructions are not working as well because ALUop 11 is not defined. (c) ALUop1 =1: LW, SW and Branch Explain: Because the ALUop will become the same as R-type instructions, and it will perform

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture