Chapter 1: Q11E (page 2)
Assume that X consists of 3 bits : x2, x1, x0. Write four logic functions that are true if and only if
- X contains only one 0
- X contains an even number of 0s
- X when interpreted as an unsigned binary number is less than 4
- X when interpreted as a signed (two’s complement) number is negative.
Short Answer
X contains only one 0:
X contains an even number of zero
X interpreted as an unsigned binary number less than 4
X interpreted as a negative number