📄 dds.vhd.bak
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity dds is
port(
inclk: in std_logic;--400MHz
rst: in std_logic;
aclr: in std_logic;
outdata: buffer std_logic_vector(15 downto 0);
outclk: out std_logic
);
end dds;
architecture behave of dds is
signal cnt_clk: std_logic_vector(15 downto 0);
begin
process(inclk)
begin
if (rst='1') then
cnt_clk <="0000000000000000";
elsif rising_edge(inclk) then
cnt_clk<=cnt_clk+"0010010010110001";
if cnt_clk="1111111111111111" then
outclk<=outdata(15);
end if;
end if;
end process;
end behave;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -