多功能波形发生器VHDL程序与仿真

[11-20 16:14:56]   来源:http://www.88dzw.com  FPGA   阅读:8518

文章摘要: if count1=12499999 then count1:=0; --调方波A的占空比 if zu='1' then if z<63 then z<=z+1; else z<=63; end if; elsif zd='1' then if z>0 then z<=z-1; else z<=0;

多功能波形发生器VHDL程序与仿真,标签:fpga是什么,fpga教程,http://www.88dzw.com

           if count1=12499999 then count1:=0;                       --调方波A的占空比

             if zu='1' then

            if z<63 then z<=z+1;

            else z<=63;

            end if;

          elsif zd='1' then

            if z>0 then z<=z-1;

            else z<=0;

            end if;

          end if;

           else count1:=count1+1;

           end if;

        if count0=3249999 then count0:=0;

--up、down对4种波形幅度调节,u0、d0进一步对方波进行幅度调节

             if u0='1' then

                  if amp0<"11111111" then amp0<=amp0+1;

                  else amp0<="11111111";

                  end if;

                elsif d0='1' then

                  if amp0>"00000000" then amp0<=amp0-1;

   else amp0<="00000000";

                  end if;

          elsif up='1' then

            if amp<"11111111" then amp<=amp+1;

            else amp<="11111111";

            end if;

          elsif down='1' then

            if amp>"00000000" then amp<=amp-1;

            else amp<="00000000";

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]  下一页


Tag:FPGAfpga是什么,fpga教程FPGA

《多功能波形发生器VHDL程序与仿真》相关文章

分类导航
最新更新
热门排行