Complete the code to declare a signal named 'counter' of type unsigned with 8 bits.
signal counter : [1](7 downto 0);
In VHDL, an 8-bit unsigned signal is declared as unsigned(7 downto 0).
Complete the process sensitivity list to trigger on the rising edge of the clock signal 'clk'.
process([1]) begin if rising_edge(clk) then -- process body end if; end process;
The process should be sensitive to the clock signal clk to detect its rising edge.
Fix the error in the counter increment statement inside the process.
counter <= counter [1] 1;
To increment the counter by 1, use the addition operator +.
Fill both blanks to complete the conditional check for counter overflow and reset it.
if counter [1] max_count then counter <= [2]; end if;
The counter resets to 0 when it reaches or exceeds max_count.
Fill all three blanks to complete the watchdog timer output logic.
watchdog_reset <= '1' when counter [1] max_count [2] true else [3];
The watchdog reset signal is set to '1' when the counter is greater or equal to max_count and some condition is true, else '0'.
