This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CDA 3101 Assignment 7 Due in class on Friday, Nov. 19 Turn hardcopy in class, stapled, with your name and “CDA 3101 Assignment 7” clearly written on it. Assignments submitted after Nov. 19, 12:35 pm but before Nov. 22, 12:35 pm will be considered one day late. IMPORTANT: Use a ruler and a RED pen to make any changes/additions to any of the figures provided below , so that the changes are clearly visible. In case, you make a mistake, I suggest you start with a clean figure . Also, clearly write (in a numbered list) what changes/additions you have made to the figures and why (Please feel free to use extra pages for this). 1. (12 points) Describe the effect of stuck-at-0 fault (i.e. regardless of what it should be, the signal is always 0) would have for signals shown below, in the single-cycle datapath provided as part of Q2. Which instruction, if any, will not work correctly? Explain why. Consider each of the following faults separately: a. RegWrite = 0 b. ALUop0 = 0 c. ALUop1 = 0 d. Branch = 0 e. MemRead = 0 f. MemWrite = 0 2. (16 points) Imagine I want to support the bge $t0, $t1, label , which compares $t0 and $t1 and branches only if $t0 >= $t1 (without breaking the rest of the instructions like add, sub, and, or, beq, lw, sw etc.). The instruction uses I-format representation (6 bits opcode, 5 bit rs, 5 bit rt, 16 bits label). Assume that the ALU generates another output „sign‟ which is 1 when the ALU output is negative. ( Hint: $t0 >= $t1 if $t0 - $t1 >= 0 ). a.a....
View Full Document
- Summer '08
- Assembly Language, Central processing unit, Control flow, New York Transit Museum