- 1、本文档共8页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
VLSI波形发生器课程设计.doc
波形发生器的设计
一、波形发生器是一种常用的信号源,广泛地应用于电子电路、自动控制系统和教学实验等领域。、、、library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity sin is
port(clk:in std_logic;
en:in std_logic;
fchu:in std_logic_vector(2 downto 0); --fchu输出频率选择
pword:in std_logic_vector( 7 downto 0);--相位调节0~255
z1,z2,z3,z4:out std_logic;
addr_rom:buffer std_logic_vector(7 downto 0);--addr_rom地址采点,从LCP_ROM相应的地址读取数据
xtime:in std_logic_vector(1 downto 0) --时间触发选择,从那个LCP_ROM中调取波形,其选择的波开跟DA输出通道是相一致的。
);
end sin ;
architecture a of sin is
signal s:std_logic_vector(2 downto 0);
signal temp: integer range 0 to 715827880;
signal address: std_logic_vector(7 downto 0);
signal fre_count: std_logic_vector(31 downto 0);
signal fw: std_logic_vector(31 downto 0);
signal pw: std_logic_vector(7 downto 0);
signal xx:std_logic_vector(1 downto 0);
signal cda:std_logic_vector(1 downto 0);
signal fo:std_logic_vector(31 downto 0);
begin
s=fchu;
xx=xtime;
process(clk,s)
begin
if clkevent and clk=1 then
case s is
when 001= temp
when 010= temp=143165576;
when 011= temp=214748364;
when 100= temp=286331152;
when 101= temp=357913940;
when 110= temp=429496728;
when 111= temp=715827880;
when others= temp
end case;
end if;
fo=conv_std_logic_vector(temp,32);
end process;
process(clk,fo,en,pword)
begin
fw=fo;
if clkevent and clk=1 then
if en=1 then fre_count=fre_count+fw;
end if;
end if;
end process;
process(clk,pw)
begin
pw=pword;
if clkevent and clk=1 then
if en=1 then address=fre_count(31 downto 24)+pw;
end if;
end if;
addr_rom=address;
end process;
process(xx,clk)
begin
if xx=00 then
z1=clk;
else
z1=1;
end if;
if xx=01 then
z2=clk;
else
z2=1;
end if;
if xx=10 then
z3=clk;
else
z3=1;
end if;
if xx=11 then
z4=clk;
else
z4=1;
end if;
end process;
end a;
(2)调频调相模块电路图
幅度调节与波形通道输出模块
library ieee;
您可能关注的文档
最近下载
- 细胞与分子生物学实验-实验室常见仪器设备.ppt
- 2024年消防安全月公共消防安全培训火灾防范宣传课件PPT.pptx VIP
- Chemical Love Story-[PiHKAL A ]化学.doc
- 2022-2024年上海市16区中考二模语文试题分类汇编:议论文(详解版).docx VIP
- 动画地图:围魏救赵.ppt
- ABB FPNO-21 PROFINET 总线适配器模块用户手册 手册(中文).pdf
- 电控发动机实训台架的研发.docx VIP
- 堤防工程外观质量及单元工程质量评定表(共有14个表).pdf
- 【专业知识-语法】国际汉语语法教学手册部分5图文.pdf
- 《社会历史的决定性基础》导学案-统编版高中语文选择性必修中册.pdf VIP
文档评论(0)