dds.vhd
来自「msp430驱动340*240程序 包括显示图片 文字 以及一些改变字体颜色功能」· VHDL 代码 · 共 29 行
VHD
29 行
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity dds is
port(
frep: in std_logic_vector(14 downto 0);
phase: in std_logic_vector(8 downto 0);
clk: in std_logic;
address1: out std_logic_vector(8 downto 0)
);
end;
architecture one of dds is
signal address: std_logic_vector(8 downto 0);
signal acc:std_logic_vector(23 downto 0);
begin
process(clk,phase)
begin
if clk'event and clk='1' then
acc<=acc+frep;
end if;
address<=acc(23 downto 15);
address1<=address+phase;
end process;
end one;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?