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

📄 counter.vhd

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

entity counter is	  
	port(
		CLR32: in std_logic;			
		FIN32: IN std_logic;				
		START32: in std_logic;				
		Q32: OUT std_logic_vector(31 downto 0)
		);
end;		

architecture behav of counter is   
signal Qtemp:std_logic_vector(31 downto 0);
begin
	process(clr32,fin32,start32)
	begin
		if clr32='1' then Qtemp<=(others=>'0'); 
		elsif (fin32'event) and (fin32='1') then
			if start32='1'then
				Qtemp<=Qtemp+1;
			end if;
		end if;
	end process;
	Q32<=Qtemp;
end ;

			

⌨️ 快捷键说明

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