基于DDS信号技术的信号发生器的设计_第1页
基于DDS信号技术的信号发生器的设计_第2页
基于DDS信号技术的信号发生器的设计_第3页
基于DDS信号技术的信号发生器的设计_第4页
基于DDS信号技术的信号发生器的设计_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、 基于dds信号技术的信号发生器的设计直接数字式频率合成技术dds是新一代的频率合成技术,采用数字控制信号的相位增加技术,具有频率分辨率高,频率切换快,频率切换时相位连续和相位噪声低以及全数字化易于集成等优点而被广泛采用。一 程序代码(1) adder32blibrary ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;entity adder32b isport(ain : in std_logic_vector(31 downto 0);bin : in std_logic_vector(31 downto

2、0);cout: out std_logic_vector(31 downto 0);end;architecture one of adder32b isbegincout = ain + bin;end;(2)juxing_romlibrary ieee;use ieee.std_logic_1164.all;library altera_mf;use altera_mf.all;entity juxing_rom isport(address: in std_logic_vector (11 downto 0);clock: in std_logic ;q: out std_logic_

3、vector (7 downto 0);end juxing_rom;architecture syn of juxing_rom issignal sub_wire0: std_logic_vector (7 downto 0);component altsyncramgeneric (address_aclr_a: string;init_file: string;intended_device_family: string;lpm_hint: string;lpm_type: string;numwords_a: natural;operation_mode: string;outdat

4、a_aclr_a: string;outdata_reg_a: string;widthad_a: natural;width_a: natural;width_byteena_a: natural);port (clock0: in std_logic ;address_a: in std_logic_vector (11 downto 0);q_a: out std_logic_vector (7 downto 0);end component;beginq none,init_file = ./mif/juxing.mif,intended_device_family = cyclone

5、,lpm_hint = enable_runtime_mod=no,lpm_type = altsyncram,numwords_a = 4096,operation_mode = rom,outdata_aclr_a = none,outdata_reg_a = clock0,widthad_a = 12,width_a = 8,width_byteena_a = 1)port map (clock0 = clock,address_a = address,q_a = sub_wire0);end syn;(3)mux3_1library ieee;use ieee.std_logic_11

6、64.all;entity mux3_1 isport( sin:in std_logic_vector(7 downto 0); sanjiao,juxing:in std_logic_vector(7 downto 0); a,b:in std_logic; cout:out std_logic_vector(7 downto 0);end mux3_1;architecture behavior of mux3_1 issignal addr:std_logic_vector(1 downto 0);begin process(a,b) begin addr(0)=a; addr(1)

7、cout cout cout null; end case; end process;end behavior;(4)sanjiao_romlibrary ieee;use ieee.std_logic_1164.all;library altera_mf;use altera_mf.all;entity sanjiao_rom isport(address: in std_logic_vector (11 downto 0);clock: in std_logic ;q: out std_logic_vector (7 downto 0);end sanjiao_rom;architectu

8、re syn of sanjiao_rom issignal sub_wire0: std_logic_vector (7 downto 0);component altsyncramgeneric (address_aclr_a: string;init_file: string;intended_device_family: string;lpm_hint: string;lpm_type: string;numwords_a: natural;operation_mode: string;outdata_aclr_a: string;outdata_reg_a: string;width

9、ad_a: natural;width_a: natural;width_byteena_a: natural);port (clock0: in std_logic ;address_a: in std_logic_vector (11 downto 0);q_a: out std_logic_vector (7 downto 0);end component;beginq none,init_file = ./mif/sanjiao.mif,intended_device_family = cyclone,lpm_hint = enable_runtime_mod=no,lpm_type

10、= altsyncram,numwords_a = 4096,operation_mode = rom,outdata_aclr_a = none,outdata_reg_a = clock0,widthad_a = 12,width_a = 8,width_byteena_a = 1)port map (clock0 = clock,address_a = address,q_a = sub_wire0);end syn;(5)sinx256_romlibrary ieee;use ieee.std_logic_1164.all;library altera_mf;use altera_mf

11、.all;entity sinx256_rom isport(address: in std_logic_vector (7 downto 0);inclock: in std_logic ;q: out std_logic_vector (7 downto 0);end sinx256_rom;architecture syn of sinx256_rom issignal sub_wire0: std_logic_vector (7 downto 0);component altsyncramgeneric (address_aclr_a: string;init_file: string

12、;intended_device_family: string;lpm_hint: string;lpm_type: string;numwords_a: natural;operation_mode: string;outdata_aclr_a: string;outdata_reg_a: string;widthad_a: natural;width_a: natural;width_byteena_a: natural);port (clock0: in std_logic ;address_a: in std_logic_vector (7 downto 0);q_a: out std

13、_logic_vector (7 downto 0);end component;beginq none,init_file = ./mif/sinx256_rom.mif,intended_device_family = cyclone,lpm_hint = enable_runtime_mod=no,lpm_type = altsyncram,numwords_a = 256,operation_mode = rom,outdata_aclr_a = none,outdata_reg_a = clock0,widthad_a = 8,width_a = 8,width_byteena_a

14、= 1)port map (clock0 = inclock,address_a = address,q_a = sub_wire0);end syn;(6)reg32blibrary ieee;use ieee.std_logic_1164.all;entity reg32b isport(clk : in std_logic;din : in std_logic_vector(31 downto 0);dout: out std_logic_vector(31 downto 0);end;architecture one of reg32b isbeginprocess(clk,din)b

15、eginif clkevent and clk = 1 thendout = din;end if;end process;-dout = passer ;end;(6)sinlibrary ieee;use ieee.std_logic_1164.all;library altera_mf;use altera_mf.all;entity sin isport(address: in std_logic_vector (7 downto 0);clock: in std_logic ;q: out std_logic_vector (7 downto 0);end sin;architect

16、ure syn of sin issignal sub_wire0: std_logic_vector (7 downto 0);component altsyncramgeneric (clock_enable_input_a: string;clock_enable_output_a: string;init_file: string;intended_device_family: string;lpm_hint: string;lpm_type: string;numwords_a: natural;operation_mode: string;outdata_aclr_a: strin

17、g;outdata_reg_a: string;widthad_a: natural;width_a: natural;width_byteena_a: natural);port (clock0: in std_logic ;address_a: in std_logic_vector (7 downto 0);q_a: out std_logic_vector (7 downto 0);end component;beginq bypass,clock_enable_output_a = bypass,init_file = ./sin.mif,intended_device_family = stra

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论