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

2021-09-24 18:57

航空航天大学出版社出版

( 5 )《电子测量》 刘国林 殷贯西等编著 机械工业出版社出版 ( 6 )《一种性能优良的自动增益控制电路》 张淑娥 杨再

旺 李文田 华北电力大学

附录四:部分源程序

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;

case current_state is when st0=> wr<='0';

next_state<=st1; when st1=> wr<='1';

next_state<=st2; when st2=>

if(int='0') then next_state<=st2; elsif int='1' then next_state<=st3; end if; when st3=>

if int='1' then next_state<=st3; elsif int='0' then next_state<=st4; end if; when st4=> wr<='0'; d_mid<=d_in; next_state<=st5; when st5=>

next_state<=st0; when others=> null; end case; end process com; end behav;


宽带直流放大器论文(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:武汉大学法学院1999年试题

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

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