-------------------------------------------------------------------------------- -- Company: -- Engineer: -- -- Create Date: 15:22:38 01/22/2026 -- Design Name: -- Module Name: C:/Users/AdvanceA25/Pratham/test.vhd -- Project Name: Pratham -- Target Device: -- Tool versions: -- Description: -- -- VHDL Test Bench Created by ISE for module: async_up_counter -- -- Dependencies: -- -- Revision: -- Revision 0.01 - File Created -- Additional Comments: -- -- Notes: -- This testbench has been automatically generated using types std_logic and -- std_logic_vector for the ports of the unit under test. Xilinx recommends -- that these types always be used for the top-level I/O of a design in order -- to guarantee that the testbench will bind correctly to the post-implementation -- simulation model. -------------------------------------------------------------------------------- LIBRARY ieee; USE ieee.std_logic_1164.ALL; -- Uncomment the following library declaration if using -- arithmetic functions with Signed or Unsigned values --USE ieee.numeric_std.ALL; ENTITY test IS END test; ARCHITECTURE behavior OF test IS -- Component Declaration for the Unit Under Test (UUT) COMPONENT async_up_counter PORT( CLK : IN std_logic; Reset : IN std_logic; Q : OUT std_logic_vector(3 downto 0) ); END COMPONENT; --Inputs signal CLK : std_logic := '0'; signal Reset : std_logic := '0'; --Outputs signal Q : std_logic_vector(3 downto 0); -- Clock period definitions constant CLK_period : time := 10 ns; BEGIN -- Instantiate the Unit Under Test (UUT) uut: async_up_counter PORT MAP ( CLK => CLK, Reset => Reset, Q => Q ); -- Clock process definitions CLK_process :process CLK_ begin CLK <= '0'; wait for CLK_period/2; CLK <= '1'; wait for CLK_period/2; end process; -- Stimulus process stim_proc: process begin Reset<='1'; wait for 20 ns; Reset <='0'; wait for 100 ns; wait; end process; END;