9.4 Simplifying bit expressions
When we compose gates, we can often rearrange and simplify the
combinations. If x and y are bits, then
- not not
x=x xand 1 = 1xandx=x- 0(
x) =xand (notx) = 0 xandy=yandxxor 0 =xxorx=x- 1(
x) =xor (notx) = 1 xory=yorx- not (
xandy) = (notx) or (noty) - not (
xory) = (notx) and (noty)
The last two are known as De Morgan’s Laws after British
mathematician Augustus De Morgan. With a third
bit z we also have:
xand (yandz) = (xandy) andzxor (yorz) = (xory) orzxand (yorz) = (xandy) or (xandz)xor (yandz) = (xory) and (xorz)
Exercise 9.19
Which of these relationships hold for xor, nand, nor, xnor, and their...