全球旧事资料 分类

fe
pi
clkclkout
7
i
st1
f分频模块图
224预置数模块单元
此模块实际上是11位可预置数加法计数器组成的分频。此模块的代码为:libraryieeeuseieeestd_logic_1164alle
tityto
etabaisporti
dexi
i
tegerra
ge0to15codeouti
tegerra
ge0to15code1outi
tegerra
ge0to15to
eouti
tegerra
ge0to2047e
dto
etabaarchitecturebhvofto
etabaisbegi
processi
dexbegi
casei
dexiswhe
0to
e2047code0code10whe
1to
e1091code1code10whe
2to
e1196code2code10whe
3to
e1289code3code10whe
4to
e1331code4code10whe
5to
e1409code5code10whe
6to
e1479code6code10whe
7to
e1541code7code10whe
8to
e1569code1code11whe
9to
e1621code2code11whe
10to
e1668code3code11whe
11to
e1689code4code11whe
12to
e1728code5code11whe
13to
e1763code6code11
8
fwhe
14to
e1794code7code11whe
othersNULLe
dcasee
dprocesse
dbhv模块图如下:
zhishuadr30digit30higto
e100i
st11
预置数模块图
225音频发声模块单元
此模块实现发声的功能将对应的频率值的音输出。代码为:libraryieeeuseieeestd_logic_1164alle
tityspeakisportclki
std_logicto
ei
i
tegerra
ge0to2047spksoutstd_logice
dspeakarchitecturebhvofspeakissig
alpreclkstd_logicsig
alfullspksstd_logicbegi
processclkvariablecou
t4i
tegerra
ge0to15begi
preclk0ifcou
t411the
preclk1cou
t40elsifclkeve
ta
dclk1the
cou
t4cou
t41e
dif
9
fe
dprocessprocesspreclkto
evariablecou
t11i
tegerra
ge0to2047begi
ifpreclkeve
ta
dpreclk1the
ifcou
t112047the
cou
t11to
efullspks1elsecou
t11cou
t111fullspks0e
dife
dife
dprocessprocessfullspksvariablecou
t2std_logicbegi
iffullspkseve
ta
dfullspks1the
cou
t2
otcou
t2ifcou
t21the
spks1elsespks0e
dife
dife
dprocesse
dbhv此模块框图:
speakclkto
e100spks
i
st3
音频产生模块
3引脚锁定及下载
31引脚锁定
10
f选择Assig
me
ts菜单下的Pi
s命令,出现以下窗口:
引脚锁定图
下载时,实验箱上则需连续按“模式选择”按钮选择模式5,再按“系统复位”按钮。进行引脚锁定,查阅附表,分别点“locatio
”选择引脚号。引脚锁定后再编译。如同此前进行过的。编译成功后点确定。下载完后就可以在实验箱查看结果。
32结果分析
将程序代码下载到实验箱的FPGA芯片中,并验证了在仿真中的结果的正确性。此简易乐曲演奏器系统,能够产生所要求的功能。能够自动播放储存好的乐曲,手动实现音符的发音并能实现复位功能。
4设计总结
经过四周的课程设计,已经按计划将要r
好听全球资料 返回顶部