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

📄 count16.vhd

📁 用FPGA实现数字复接?肍PGA实现数字复接
💻 VHD
字号:
library ieee ;
use ieee.std_logic_1164.all ;
use ieee.std_logic_unsigned.all ;

entity count16 is
	port(clk:in	std_logic;
	D,C,B,A:out   std_logic
	);
end count16 ;
architecture behv of count16 is
	signal count_4:std_logic_vector(3 downto 0);
begin

	process(clk)
	begin
		if clk'event and clk='1' then
			if count_4= "1111" then
				count_4<= "0000";				
				else
				count_4<=count_4+1;
			end if;
		end if;
	end process;
        D<=count_4(0);
C<=count_4(1);
B<=count_4(2);
A<=count_4(3);
end behv;

⌨️ 快捷键说明

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