I\'m really lost on this, please help: For each the following scenarios: - build
ID: 3784589 • Letter: I
Question
I'm really lost on this, please help:
For each the following scenarios:
- build the truth table;
- derive the corresponding boolean expression, and simplify it to the extent possible; and
- construct the digital circuit using logisim, and embed the png image.
1)
Given four inputs: a, b, c & d, where (a, b) represents a 2-bit unsigned binary number X; and (c, d)
represents a 2-bit unsigned binary number Y (i.e. both X and Y are in the range #0 to #3) - i.e. same as q. 1
This time, there are 4 outputs - i.e. in effect, you are building 4 separate truth tables - o3, o2, o1, o0.
These correspond to the unsigned 4-bit product of the two numbers X, Y
E.g., if a = 1, b = 0 (i.e. X = b10 => #2); c = 1, d = 1 (i.e. Y = b11 => #3); then {o3, o2, o1, o0} = {0, 1, 1, 0},
since #2 * #3 = #6. Derive the boolean expressions only for columns o0 and o2
Explanation / Answer
boolean isDone = false; // Initialize the flag ... // Do some processing task isDone = true; // Set flag when the task done ... // Do some other stuff if (isDone) // Check if finished the task ... // If so, do something else ... // Or, do something else