宽带直流放大器论文(14)

发布时间:2021-06-05

附录四:部分源程序

library ieee;

use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; entity ad0820 is

port(d_in:in std_logic_vector(7 downto 0); clk_12M,int:in std_logic; cs,rd,wr:out std_logic;

d_out:out std_logic_vector(7 downto 0) ); end ;

architecture behav of ad0820 is

type states is (st0,st1,st2,st3,st4,st5); signal current_state,next_state:states:=st0; signal d_mid:std_logic_vector(7 downto 0); signal clk:std_logic; begin

cs<='0';rd<='0'; ch: process(clk_12M)

variable data:std_logic_vector(1 downto 0); begin

if clk_12M'event and clk_12M='1' then if data="01" then data:=(others=>'0'); clk<=not clk; else

data:=data+1; end if; end if; end process ch; reg:process(clk) begin

if (clk'event and clk='1') then current_state<=next_state; end if; end process reg;

com:process(current_state,int,clk) begin

d_out<=d_mid;

宽带直流放大器论文(14).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

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

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