Complete the code to declare a signal in VHDL.
signal clk : [1];In VHDL, signals used for hardware description are commonly declared as std_logic.
Complete the code to write a synthesizable process sensitive to clock and reset.
process([1]) begin if reset = '1' then count <= 0; elsif rising_edge(clk) then count <= count + 1; end if; end process;
The process sensitivity list must include both clk and reset signals for proper asynchronous reset behavior.
Fix the error in the non-synthesizable wait statement inside a process.
process begin [1]; data <= data + 1; end process;
Using a plain wait statement inside a process without sensitivity list is non-synthesizable. For synthesis, processes should use sensitivity lists or clocked constructs.
Fill both blanks to create a synthesizable if statement checking a signal.
if [1] = '1' then output <= '1'; else output <= '0'; end if;
The signal enable is typically used to control output in synthesizable logic.
Fill all three blanks to write a synthesizable case statement for a 2-bit input.
case [1] is when "00" => output <= [2]; when "01" => output <= [3]; when others => output <= '0'; end case;
The sel signal is used for selection, and outputs are assigned '1' or '0' accordingly in a synthesizable case statement.
