Section 6.6
Review Questions

Condition Codes

  1. In the spaces to the left of each description, write one of the four letters: C, N, V or Z. Use each one once:
     ______         if the result is all 0s
     
     
     ______         if the result has a 1 in the MSB
     
     
     ______         if there was a final carry out
     
     
     ______         if there was 2's complement overflow
  1. What gate is used to compute the Z bit?
  1. The C bit can also be thought of as an overflow bit. But what interpretation must we use in this case?
  1. Which of the following additions could possibly cause overflow? Don't worry about how many bits are used; just look at the signs. Circle them:
         176        -176        -176         125
       + 972      + -872      +  876      + -191
       -----      ------      ------      ------
  1. Following is the result of addition in an 8-bit system. Did arithemtic overflow occur? The 1 off to the side is the final carry out.
                          1      0 1 1 0 1 0 1 1
  1. Which bits require no extra gates to compute? Their values are derived from certain outputs of the adder.
               C        N        V        Z