Chapter 6: Appendix B, 13 (page 500)
Assume that X consists of 3 bits, x2 x1 x0, and Y consists of 3 bits, y2 y1 y0. Write logic functions that are true if and only if
■X<Y , where X and Y are thought of as unsigned binary numbers
■ X<Y , where X and Y are thought of as signed (two’s complement) numbers
■ X = Y
Use a hierarchical approach that can be extended to larger numbers of bits. Show how can you extend it to 6-bit comparison.
Short Answer
The Logic function that are true if and only if
- X<Y , where X and Y are unsigned binary numbers, let the equation be E1.
- X<Y , where X and Y are signed numbers
- X = Y