云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 任意波形信号发生器

任意波形信号发生器

  • 62 次阅读
  • 3 次下载
  • 2025/5/31 8:38:17

--------------------------------------------------------------------------------------------------------------------- architecture behav of s_gen is

--------元件定义------------------------------------------------------------------------------------------------- component obl is port(clk,reset:in std_logic;

Q:out std_logic_vector(7 downto 0));

end component obl; component sin is port(clk,reset:in std_logic;

Q:out std_logic_vector(7 downto 0));

end component sin; component dlt is port(clk,reset:in std_logic;

Q:out std_logic_vector(7 downto 0));

end component dlt; component squ is port(clk,reset:in std_logic;

Q:out std_logic_vector(7 downto 0));

end component squ; component chs is

port(ob,si,dl,sq: in std_logic;

obl,sin,dlt,squ: in std_logic_vector(7 downto 0);

Q:out std_logic_vector(7 downto 0)); end component chs;

----------信号定义----------------------------------------------------------------------------------------------- signal J,K,L,Z: std_logic_vector(7 downto 0); signal JJ,KK,LL,ZZ: std_logic_vector(7 downto 0); signal s: std_logic_vector(6 downto 0); begin

32

----------启动DAC0832--------------------------------------------------------------------------------------- process(clk)is begin

if(clk'event and clk='1') then

if(reset='1') then wr<='1'; else wr<='0'; end if;

end if; end process;

----------信号衰减选择----------------------------------------------------------------------------------------- process(tc,J,K,L,Z)is begin case tc is

when \

when \

LL<='0'&L(7 downto 1);ZZ<='0'&Z(7 downto 1);

when \

LL<=\

when \

LL<=\

when others=>null; end case;

if tc=\elsif tc=\elsif tc=\elsif tc=\end if;

33

a<=s(6);b<=s(5);c<=s(4);d<=s(3);e<=s(2);f<=s(1);g<=s(0); end process;

---------元件例化------------------------------------------------------------------------------------------------ u0: obl port map(clk,reset,J); u1: sin port map(clk,reset,K); u2: dlt port map(clk,reset,L); u3: squ port map(clk,reset,Z);

u4: chs port map(ob,si,dl,sq,JJ,KK,LL,ZZ,Q);

--------------------------------------------------------------------------------------------------------------------- end architecture behav;

-----------结束---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------

34

35

搜索更多关于: 任意波形信号发生器 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

--------------------------------------------------------------------------------------------------------------------- architecture behav of s_gen is --------元件定义------------------------------------------------------------------------------------------------- component obl is port(clk,reset:in std_logic; Q:out std_logic_vector(7 downto 0)); end component obl; compo

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com