Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 testMIAU IS
- END testMIAU;
- ARCHITECTURE behavior OF testMIAU IS
- -- Component Declaration for the Unit Under Test (UUT)
- COMPONENT miau
- PORT(
- b1 : IN bit;
- b2 : IN bit;
- c1 : OUT bit;
- s1 : OUT bit
- );
- END COMPONENT;
- --Inputs
- signal b1 : bit := '0';
- signal b2 : bit := '0';
- --Outputs
- signal c1 : bit;
- signal s1 : bit;
- -- No clocks detected in port list. Replace <clock> below with
- -- appropriate port name
- BEGIN
- -- Instantiate the Unit Under Test (UUT)
- uut: miau PORT MAP (
- b1 => b1,
- b2 => b2,
- c1 => c1,
- s1 => s1
- );
- -- Stimulus process
- stim_proc: process
- begin
- -- hold reset state for 100 ns.
- wait for 100 ns;
- b1 <= '0';
- wait for 100 ns;
- b2 <= '0';
- wait for 100 ns;
- b1 <= '1';
- wait for 100 ns;
- b2 <= '0';
- wait for 100 ns;
- b1 <= '0';
- wait for 100 ns;
- b2 <= '1';
- wait for 100 ns;
- b1 <= '1';
- wait for 100 ns;
- b2 <= '1';
- -- insert stimulus here
- wait;
- end process;
- END;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement