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.
instructions, if any, will not work correctly?
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?