Basic VHDL Program with testbench in SystemVerilog for a Zybo Board
The FPGA code toggles a user LED in Zybo Board, the speed of which is controlled by 2 toggle switches. Codes can be downloaded from the below link. https://github.com/kola-uhas/FPGA-codes/tree/main library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.NUMERIC_STD.ALL; -- Uncomment the following library declaration if using -- arithmetic functions with Signed or Unsigned values --use IEEE.NUMERIC_STD.ALL; -- Uncomment the following library declaration if instantiating -- any Xilinx leaf cells in this code. --library UNISIM; --use UNISIM.VComponents.all; entity hello is Port ( clk : in STD_LOGIC; rst : in STD_LOGIC; speed_sw : in STD_LOGIC_VECTOR (1 downto 0); led : out STD_LOGIC); end hello; architecture Behavioral of hello is signal led_toggle : std_logic := '0'; signal count : unsigned (7 downto 0):= (others => '0'); constant prescaler_val : u...