【正文】
課程設(shè)計 I 摘 要 樂曲演奏廣泛用于自動答錄 裝置、手機鈴聲、集團電話、及智能儀器儀表設(shè)備。實現(xiàn)方法有許多種 。 現(xiàn) 用可編程邏輯器件( PLD)來完成該設(shè)計。核心是一數(shù)控分頻器,對輸入的脈沖進行分頻,得到每個音階對應(yīng)的頻率,由此實現(xiàn)簡易電子琴的發(fā)音功能。電子琴可演奏由鍵盤輸入的音階,同時在數(shù)碼管上顯示對應(yīng)音節(jié)的頻率。本設(shè)計基于超高速硬件描述語言 VHDL 在 Altera 公司的 CycloneⅡ系列的 EP2C5T144C8 芯片上編程實現(xiàn);經(jīng)仿真,調(diào)試基本能夠達到技術(shù)指標, 仿真結(jié) 果基本正確 。 關(guān)鍵詞 音樂譯碼電路模塊 , VHDL,數(shù)控分頻,電子琴 基于 FPGA 的 電子琴設(shè)計 II Abstract Music performances are widely used in automatic answering devices, cell phone ring tones, the Group phones, smart instrumentation and equipment。 The design is acplished using a programmable logic device (PLD). The core is a numerical control frequency divider, the input pulse frequency, the frequency of each scale corresponding to the frequency, thus achieving the function of simple electronic piano. The electronic piano can be played by the keyboard input of the scale, while in the digital tube display the corresponding syllable frequency. The design based on ultra high speed hardware description language VHDL on Altera39。s cyclone II Series ep2c5t144c8 chip programming。 the simulation and debugging can basically meet the technical indicators, and the result of simulation is correct. Keywords Music decoder circuit module, VHDL, Numerical control pointing frequency modules, electronic an 沈陽工程學院課程設(shè)計 目 錄 摘 要 ................................................................................................................................................ I Abstract .............................................................................................................................................II 1 引言 ............................................................................................................................................... 1 2 VHDL簡述及應(yīng)用 .......................................................................................................................... 2 簡述 ............................................................................................................................ 2 VHDL 的應(yīng)用 ........................................................................................................................ 2 3 FPGA的簡述 .................................................................................................................................. 3 FPGA 的介紹 ........................................................................................................................ 3 FPGA 的整體結(jié)構(gòu) ................................................................................................................. 3 Altera 公司的 FPGA ............................................................................................................... 3 4 電子琴 演奏系統(tǒng)設(shè)計原理分析 ........................................................................................................ 4 電子琴演奏設(shè)計的基本要求 ................................................................................................... 4 電子琴演奏原理 .................................................................................................................... 4 音名與頻率的關(guān)系 ................................................................................................................. 5 控制音長的節(jié)拍發(fā)生器 .......................................................................................................... 6 5 電子琴硬件演奏電路的層次化設(shè)計方案 .......................................................................................... 8 按鍵控制模塊 ........................................................................................................................ 8 自動演奏模塊 ........................................................................................................................ 8 自動播放控制模塊 ................................................................................................................. 9 數(shù)控分頻模塊設(shè)計 ................................................................................................................. 9 數(shù)碼管譯碼顯示 .................................................................................................................. 10 音頻驅(qū)動模塊 ...................................................................................................................... 10 結(jié)論 ................................................................................................................................................ 12 致謝 ................................................................................................................................................ 13 參考文獻 ....