Competency: Application
In a computer's processor, the result of each calculation appears in a 4-bit register as the binary digits , where is the eights digit and the ones digit. A "zero flag" must be 1 when the result is zero () and 0 for every other result. To check whether two numbers are equal, the processor subtracts one from the other and looks at . (Hypothetical data.)
(a) Name the single four-input gate that gives directly from , , and , and write as a Boolean expression.
(b) The processor works out and . Write each result as a 4-bit binary number, give for each, and say what tells the processor.
(c) A faulty connection makes the gate read its input from digit as 0 all the time. Find the non-zero result for which would then wrongly be 1, in binary and in decimal.
