Complete the code to declare a combinational process sensitive to inputs a and b.
process([1]) begin y <= a and b; end process;
The process must be sensitive to inputs a and b to model combinational logic.
Complete the code to assign output y as the OR of inputs a and b.
y <= a [1] b;The OR operator combines inputs so output is high if either input is high.
Fix the error in the process sensitivity list for combinational logic.
process([1])
begin
y <= a xor b;
end process;Combinational processes must be sensitive to all inputs that affect output, here a and b.
Fill both blanks to complete the combinational assignment and sensitivity list.
process([1]) begin y <= a [2] b; end process;
The sensitivity list must include inputs a and b, and the output is assigned using the AND operator.
Fill all three blanks to create a combinational process that outputs y as NAND of a and b.
process([1]) begin y <= a [2] b; y <= not (a and b) when [3] else y; end process;
The sensitivity list includes inputs a and b. Output y is assigned the AND of a and b, then inverted when true (always), creating NAND logic.