LED Blinking FSM on a CPLD

We’ll design a 3-state machine that controls an LED in different modes: OFF → LED is off. SLOW_BLINK → Toggles LED every 1 second . FAST_BLINK → Toggles LED every 0.25 seconds . Hardware Setup CPLD Board : Xilinx CoolRunner-II ( XC2C256 ) or Lattice MachXO2 . Clock : Assume 12 MHz oscillator (adjustable for timing). Inputs : A button ( btn ) to cycle through states. Outputs : One LED ( led ) for blinking. Step 1: VHDL Code for the State Machine vhdl library IEEE ; use IEEE . STD_LOGIC_1164 . ALL ; use IEEE . STD_LOGIC_UNSIGNED . ALL ; entity LED_Controller is Port ( clk : in STD_LOGIC ; -- 12 MHz clock btn : in STD_LOGIC ; -- Button to change state led : out STD_LOGIC -- Output LED ) ; end LED_Controller ; architecture Behavioral of LED_Controller is -- Define states type state_type is ( OFF , SLOW_BLINK , FAST_BLINK ) ; sign...