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

📄 counter16.vhd

📁 低频数字相位测量仪仿真的软件部分
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity counter16 is	  
	port(
		CLR: in std_logic;			
		FIN: IN std_logic;				
		START: in std_logic;				
		Q: OUT std_logic_vector(15 downto 0)
		);
end;		

architecture behav of counter16 is   
signal Qtemp:std_logic_vector(15 downto 0);
begin
	process(clr,fin,start)
	begin
		if clr='1' then Qtemp<=(others=>'0');
		elsif fin'event and fin='1' then
			if start='1'then
				Qtemp<=Qtemp+1;
			end if;
			else Qtemp<=Qtemp;
		end if;
	end process;
	Q<=Qtemp;
end ;

⌨️ 快捷键说明

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