⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gate.vhd

📁 本代码介绍了使用VHDL开发FPGA的一般流程
💻 VHD
字号:

-- VHDL Test Bench Created from source file gate.vhd -- 17:33:44 12/13/2006
--
-- 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;
USE ieee.numeric_std.ALL;

ENTITY gate_gate_vhd_tb IS
END gate_gate_vhd_tb;

ARCHITECTURE behavior OF gate_gate_vhd_tb IS 

	COMPONENT gate
	PORT(
		CLK : IN std_logic;
		gate : IN std_logic;          
		CP : OUT std_logic
		);
	END COMPONENT;

	SIGNAL CLK :  std_logic;
	SIGNAL gate :  std_logic;
	SIGNAL CP :  std_logic;

BEGIN

	uut: gate PORT MAP(
		CLK => CLK,
		gate => gate,
		CP => CP
	);


-- *** Test Bench - User Defined Section ***
   
  tb : PROCESS
   BEGIN
      wait for 5 ns;
      CLK<='1';
      wait for 15 ns;
	 CLK<='0';
	 wait for 10 ns;
   END PROCESS;
   tb1 : PROCESS
   BEGIN
      wait for 10 ns;
      gate<='1';
      wait for 90 ns;
	 gate<='0';
	 wait for 80 ns;
   END PROCESS;

-- *** End Test Bench - User Defined Section ***

END;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -