Complete the code to assign the output as the AND of inputs A and B.
output_signal <= input_a [1] input_b;The and operator models combinational AND logic between two signals.
Complete the code to assign output as the OR of inputs A and B.
output_signal <= input_a [1] input_b;The or operator models combinational OR logic between two signals.
Fix the error in the code to correctly assign output as XOR of inputs A and B.
output_signal <= input_a [1] input_b;The xor operator models combinational exclusive OR logic between two signals.
Fill both blanks to create a combinational expression that outputs 1 only when both inputs are 1 and then inverts the result.
output_signal <= [2] (input_a [1] input_b);
The expression uses and to combine inputs, then not to invert the result, modeling NAND logic.
Fill both blanks to create a combinational expression that outputs 1 when input_a is 1, input_b is 0, and input_c is 1.
output_signal <= (input_a [1] (not input_b)) [2] input_c;
The expression uses and operators to combine conditions, modeling combinational logic that outputs 1 only when input_a and input_c are 1 and input_b is 0.