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

📄 fd_dmc.vhd

📁 DDS直接数字频率合成器
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_signed.all;

entity  fd_dmc is
  port(clk,key:in std_logic;
       cpo:out std_logic
); 
end ;

architecture a of fd_dmc is
signal cp:std_logic;
signal jsp:integer range 0 to 3;

begin 
  process(clk)
    begin
if(clk'event and clk='1') then
    if key='1' then 
 
      if jsp=3 then
      jsp<=jsp;
      else
        jsp<=jsp+1;
      end if;

      if jsp=1 then
        cp<='1';
      else
        cp<='0';
      end if;
    else jsp<=0;
end if;
end if;
cpo<=cp;
end process;
end ;

⌨️ 快捷键说明

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