ask.vhd

来自「fpga的应用」· VHDL 代码 · 共 20 行

VHD
20
字号
library ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_unsigned.all;
entity ASK is
   port(clk,enable:in std_logic;
		x: in std_logic_vector(11 downto 0);
        q:out std_logic_vector(11 downto 0));
end ASK;
architecture behav of ASK IS
begin
process(clk,enable)
  begin
    if clk='1' then
	  if enable='1' then 
	      q<=x;
	  end if;
	else q<="000000000000";
	end if;
end process;    
end behav;

⌨️ 快捷键说明

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