This
preview
has intentionally blurred sections.
Sign up to view the full version.
Unformatted text preview: 6 th bit is ignored, and the answer is 1. c) – x + y = (-x) + y 11011 (-5) + 00100 (4)---------------11111 (-1) d) - x - y = (-x) + (-y) 11011 (-5) + 11100 (-4)-----------------110111 (-9) Again, ignore the 6 th bit and the result is -9 in 2's complement. Quiz 3) A subtractor has (x,y, b in ) as inputs and (d, b out ) as outputs. Write the truth table of the subtractor. Id Inputs Outputs x y b in d b out 1 1 1 1 2 1 1 1 3 1 1 1 4 1 1 5 1 1 6 1 1 7 1 1 1 1 1 To fill out the truth table, first fill up the “d” column (i.e. difference) based on the given inputs (x, y, b in ) . Then use the formula x- y – b in = d – 2b out to calculate b out ....
View
Full Document
- Fall '08
- Foster
- Bitwise operation, Most significant bit, Least significant bit
-
Click to edit the document details