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

📄 ctrl.vhd

📁 这是我用Xilnx公司的sparten3 FPGA开发板上
💻 VHD
字号:
------------------------------------------------------------------------------------ Company: -- Engineer: -- -- Create Date:    13:02:02 12/29/2006 -- Design Name: -- Module Name:    ctrl - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: ---- Dependencies: ---- Revision: -- Revision 0.01 - File Created-- Additional Comments: ------------------------------------------------------------------------------------library IEEE;use IEEE.STD_LOGIC_1164.ALL;use IEEE.STD_LOGIC_ARITH.ALL;use IEEE.STD_LOGIC_UNSIGNED.ALL;---- Uncomment the following library declaration if instantiating---- any Xilinx primitives in this code.--library UNISIM;--use UNISIM.VComponents.all;entity ctrl is    Port ( clk         : in  std_logic;			  clk_ctrl    : in  STD_LOGIC;           reset       : in  STD_LOGIC;           start_pause : in  STD_LOGIC;           display_en  : out  STD_LOGIC);end ctrl;architecture Behavioral of ctrl is	signal enable:std_logic;begin	process(clk,reset,start_pause)		begin		if reset='0' then			enable<='1';		elsif falling_edge(start_pause) then			enable<=not enable;		end if;	end process;    display_en<=enable and clk_ctrl;	 end Behavioral;

⌨️ 快捷键说明

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