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

📄 counter8.vhd

📁 用VHDL语言实现QPSK调制功能和解调功能,
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;

entity counter8 is
	port (clk,clr: in std_logic;
	      xx: in std_logic_vector(7 downto 0);
		  set: in std_logic;
		  en: in std_logic;
		  q: inout std_logic_vector(7 downto 0)
		   );
end counter8;

architecture rel of counter8 is
 --signal m :std_logic_vector(7 downto 0);
 begin
	process(clk,clr)
	begin
		if (clr='1') then q<=( others=>'0');
		elsif (clk'event and clk='1') then
		      if (set='1') then 
			      q<= xx;
			  elsif (en='1') then 
			      q<=q+1;
			  else q<=q;
			end if;
		end if;
end process;
end rel;

⌨️ 快捷键说明

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