多功能波形发生器VHDL程序与仿真
[11-20 16:14:56] 来源:http://www.88dzw.com FPGA 阅读:8518次
文章摘要: if count0=4999999 then counter:=conv_integer(amp)*1961;count0:=0; bcd01<=0; bcd11<=0; bcd21<=0; bcd31<=0; elsif count0=4999000 then bcd00<=bcd01; bcd10<=bcd11; bcd20<=bcd21; bcd30<=bcd31; count0:=count0+1; else count0:=count0+1; if counter>9999
多功能波形发生器VHDL程序与仿真,标签:fpga是什么,fpga教程,http://www.88dzw.comif count0=4999999 then counter:=conv_integer(amp)*1961;
count0:=0; bcd01<=0; bcd11<=0; bcd21<=0; bcd31<=0;
elsif count0=4999000 then bcd00<=bcd01; bcd10<=bcd11; bcd20<=bcd21;
bcd30<=bcd31; count0:=count0+1;
else count0:=count0+1;
if counter>99999 then counter:=counter-100000; bcd01<=bcd01+1;
elsif counter>9999 then counter:=counter-10000; bcd11<=bcd11+1;
elsif counter>999 then counter:=counter-1000; bcd21<=bcd21+1;
elsif counter>99 then counter:=counter-100; bcd31<=bcd31+1;
else null;
end if;
end if;
end if;
end if;
end process;
process(clk) --输出波形幅度(峰-峰值)数据译码动态显示
variable count : integer range 0 to 499999;
begin
if rising_edge(clk) then
if count<=124999 then y<=bcd00; count:=count+1; shift<="0111"; lcd(0)<='0';
elsif count<=249999 then y<=bcd10; count:=count+1; shift<="1011";lcd(0)<='1';
elsif count<=374999 then y<=bcd20; count:=count+1; shift<="1101";lcd(0)<='1';
elsif count<499999 then y<=bcd30; count:=count+1; shift<="1110";lcd(0)<='1';
elsif count=499999 then y<=bcd30; count:=0; shift<="1110";lcd(0)<='1';
end if;
end if;
case y is --7段码译码
when 0 => lcd(7 downto 1)<="0000001";
when 1 => lcd(7 downto 1)<="1001111";
when 2 => lcd(7 downto 1)<="0010010";
when 3 => lcd(7 downto 1)<="0000110";
when 4 => lcd(7 downto 1)<="1001100";
when 5 => lcd(7 downto 1)<="0100100";
when 6 => lcd(7 downto 1)<="0100000";
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] 下一页
《多功能波形发生器VHDL程序与仿真》相关文章
- › 多功能波形发生器VHDL程序与仿真
- 在百度中搜索相关文章:多功能波形发生器VHDL程序与仿真
- 在谷歌中搜索相关文章:多功能波形发生器VHDL程序与仿真
- 在soso中搜索相关文章:多功能波形发生器VHDL程序与仿真
- 在搜狗中搜索相关文章:多功能波形发生器VHDL程序与仿真