【正文】
細(xì)心的指導(dǎo)和幫助。 CLK : IN STD_LOGIC。 BEGIN PROCESS (CLK, CLR,CHOSE_KEY,SUP,CK) VARIABLE TEMP : STD_LOGIC_VECTOR(2 DOWNTO 0)。 THEN IF (CLK39。139。139。 ELSE CK=CK。ENTITY XSKZ IS PORT( CLK_SPK : IN STD_LOGIC。 SIGNAL LIGHT: STD_LOGIC_VECTOR(7 downto 0)。) THEN CASE STATE IS WHEN S0 = STATE=S1。 LIGHT=00001111。 PROCESS(CLK_SPK,STATE,LIGHT) BEGIN IF LIGHT=00000000 THEN SPK=39。 END ARCHITECTURE ART。 END IF。 LIGHT=11110000。EVENT AND CLKOUT=39。ARCHITECTURE ART OF XSKZ IS TYPE STATES IS(S0,S1,S2,S3,S4,S5,S6)。LIBRARY IEEE。 END IF。 CK=NOT CK。 CK=NOT CK。 ELSIF SUP=39。ARCHITECTURE ART OF SXKZ IS SIGNAL CK : STD_LOGIC。USE ??偟膩碚f,這次設(shè)計(jì)的多路彩燈控制電路還是比較成功的,達(dá)到了理論與實(shí)際相結(jié)合的目的,不僅學(xué)到了不少知識,而且鍛煉了自己的能力。特別是當(dāng)每一個子模塊編寫調(diào)試成功時,心里特別的開心。 引腳分配如圖所示(圖9) 實(shí)驗(yàn)時在quartusII軟件上點(diǎn)擊start即在試驗(yàn)箱上開始仿真。用VHDL進(jìn)行設(shè)計(jì),首先應(yīng)該理解,VHDL語言是一種全方位硬件描述語言,包括系統(tǒng)行為級,寄存器傳輸級和邏輯門級多個設(shè)計(jì)層次。SUP為暫停信號,高電平有效,電路將暫停在當(dāng)時狀態(tài)下。系統(tǒng)框圖如圖所示。在該電路中只需簡單的修改程序就可以靈活地調(diào)整彩燈圖案和變化方式。 本章小結(jié) EDA是很實(shí)用的仿真技術(shù),使用簡單,有很強(qiáng)的可讀性和操作性。當(dāng)各個模塊均完成上述操作之后,即可利quartusII的原理圖輸入,調(diào)用各個元器件(底層文件),以原理圖的形式形成最后的八路彩燈顯示系統(tǒng)(頂層文件),并且進(jìn)行仿真。 (3) 可讀性好,有利于交流,適合于文檔保存。 控制Abstract Along with the technical development, in the modern life, the colored lantern took one kind of landscape application are more and more useful. The EDA technology application causes the electronic products and the system development revolutionary transformation, presently introduced take VHDL as the foundation 8 group colored lantern control system. Simultaneously reduced the design chip quantity, reduced the volume, reduced the power loss, enhanced the design flexibility, the reliability and the the electronic circuit design domain, the electronic design automation (EDA) tool has bee the main design method, but the VHDL language is one of EDA key technologies, it uses from the top design method, namely requests from the system overall to embark, designs from on to under the duty to depose into the different function module, finally forms various functions module connection the top layer module, pletes the system hardware the overall design. This article introduced based on the EDA technique multichannel colored lantern controller design and the analysis. Uses the VHDL language realization under thequartusII environment, elaborated based on the VHDL language and the CPLD c