DDS的精密正弦信号发生器的设计,毕业论文,毕业设计,电子信息工程,信号发生器

2026/4/30 1:43:33

基于DDS的精密正弦信号发生器的设计

begin process(a) begin case a is

when \when \when \when \when \when \when \when \when \when \when others=>null; end case; end process; end chu_arc;

FENP模块将CHUZHI模块送来的初值对时钟进行分频,得到不同的工作频率,从而调节波形频率。

library ieee;

use ieee.std_logic_1164.all; entity fenp is

port(a:in integer range 0 to 1024; clk:in std_logic; q:out std_logic);

33

基于DDS的精密正弦信号发生器的设计

end fenp;

architecture fenp_arc of fenp is begin process(clk)

variable b,d:std_logic;

variable c:integer range 0 to 1024; begin

if clk'event and clk='1'then if b='0'then c:=a-1; b:='1'; else if c=1 then b:='0'; d:=not d; else c:=c-1; end if; end if; end if; q<=d; end process; end fenp_arc;

DDS电路的 VHDL设计,主要累加器和相位/幅度转换两部分组成。

34

基于DDS的精密正弦信号发生器的设计

DDS功能模块

library ieee;

use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; entity dds is

generic(width:integer:=8);

(m:in std_logic_vector(width:1 downto 0); sin,acc:out std_logic_vector(7 downto 0); clk:in std_logic); end dds;

architecture dds_arc of dds is

signal s,acc8:std_logic_vector(width:1 downto 0); signal msbs:std_logic_vector (7 downto 0); begin

add1:lam_add_sub

generic map(lpm_width=>width, lpm_representation=>\ lpm_direction=>\ lpm_pipeline=>0) port map(dataa=>m, datab=>acc8,result=>s); reg1:lpm_ff

generic map(lpm_width=>width)

35

基于DDS的精密正弦信号发生器的设计

port

map(data=>s,q=>acc8,clock=>clk); select1:process(acc8), variable i:integer; begin

for i in 7 downto 0 loop msbs(i)<=acc8(i); end loop; end process select1; acc<=msbs; room1:lpm_rom

generic map(lpm_width=>8, lpm_widthad=>8, lpm_file=>\port map(adress=>msbs, inclock=>clk, outclock=>clk, q=>sin); end dds_arc;

相位累加器的VHDL设计:

library ieee;

use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity leijia is port

36


DDS的精密正弦信号发生器的设计,毕业论文,毕业设计,电子信息工程,信号发生器.doc 将本文的Word文档下载到电脑
搜索更多关于: DDS的精密正弦信号发生器的设计,毕业论文,毕业设计,电子信 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219