軟件:Quartus II 9.0 (64-Bit)? ? AHDL語言
看完覺得不錯的點個贊唄╰(*°▽°*)╯不要白嫖啊
一、60進(jìn)制計數(shù)器(靜態(tài)顯示)
分頻模塊(輸入時鐘40MHZ)文章來源:http://www.zghlxwxcb.cn/news/detail-502752.html
subdesign fp
(
inclk:input;
outputf:output;
)
variable
fp[24..0]:dff;
f:dff;
begin
fp[].clk=inclk;
f.clk=inclk;
if fp[]==19999999 then
fp[]=0;
f=!f;
else
fp[]=fp[]+1;
f=f;
end if;
outputf=f;
end;
60進(jìn)制計數(shù)器模塊文章來源地址http://www.zghlxwxcb.cn/news/detail-502752.html
subdesign 59to0
(
inclk:input;
outa[3..0],outb[3..0]:output;
)
variable
hw[3..0]:dff;
lw[3..0]:dff;
begin
hw[].clk=inclk;
lw[].clk=inclk;
if(hw[]==5)and(lw[]==9)then
hw[]=0;
lw[]=0;
elsif lw[]==9 then
lw[]=0;
hw[]=hw[]+1;
else
hw[]=hw[];
lw[]=lw[]+1;
end if;
outa[]=hw[];
outb[]=l
到了這里,關(guān)于CUMT礦大----電路與數(shù)字系統(tǒng)實驗四 計數(shù)、譯碼、顯示的HDL設(shè)計的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!