Complete the code to declare an asynchronous reset signal named 'rst'.
signal rst : std_logic := [1];The reset signal is usually initialized to '0' in VHDL using single quotes for std_logic.
Complete the process sensitivity list to include the clock and asynchronous reset signals.
process([1])
begin
-- process body
end process;In VHDL, the sensitivity list uses commas to separate signals, so 'clk, rst' is correct.
Fix the error in the reset condition check inside the process.
if [1] = '1' then q <= '0'; elsif rising_edge(clk) then q <= d; end if;
The reset condition should check the reset signal 'rst' to asynchronously reset the output.
Fill both blanks to complete the synchronous reset process.
process(clk) begin if rising_edge([1]) then if [2] = '1' then q <= '0'; else q <= d; end if; end if; end process;
The clock signal is used in rising_edge, and the reset signal is checked synchronously inside.
Fill all three blanks to complete the process with asynchronous reset and data assignment.
process([1]) begin if [2] = '1' then q <= '0'; elsif rising_edge([3]) then q <= d; end if; end process;
The sensitivity list includes clock and reset separated by ','. Reset is checked first, then clock edge for data assignment.
