µ±Ç°Î»ÖãºÊ×Ò³ > FPGA ´ð±çÂÛÎÄ - ͼÎÄ
Õª Òª
Ðźŷ¢ÉúÆ÷×÷Ϊµç×Ó¼¼ÊõÁìÓòÖÐ×î»ù±¾µÄµç×ÓÒÇÆ÷£¬¹ã·ºÓ¦ÓÃÓÚ¸÷¸öÁìÓòÖС£Ëæ×ŵç×ÓÐÅÏ¢¼¼ÊõµÄ·¢Õ¹£¬¶ÔÆäÐÔÄܵÄÒªÇóÒ²Ô½À´Ô½¸ß£¬ÈçÒªÇóƵÂÊÎȶ¨ÐԸߡ¢×ª»»Ëٶȿ죬¾ßÓе÷·ù¡¢µ÷Ƶ¡¢µ÷ÏàµÈ¹¦ÄÜ¡£±¾ÂÛÎı¨¸æÎª»ùÓÚFPGA µÄDDS ²¨Ðη¢ÉúÆ÷£¬¾ßÓÐÒ»¶¨µÄʵ¼ÊÒâÒ塣ͨ¹ýÑо¿Ö±½ÓÊý×ÖÆµÂÊºÏ³ÉÆ÷£¨Direct Digital Frequency Synthesis ¼ò³ÆDDS»òDDFS£©µÄ»ù±¾ÔÀí£¬ÕÆÎÕÁËDDS µÄºËÐÄÏàλÀÛ¼ÓÆ÷µÄ¹¦ÄÜ£»·ÖÎöÁËFPGA µÄÐÔÄܽṹ£¬Á˽⵽DAת»»µç·ÓëFPGA Ö®¼äµÄͨÐÅ¿ØÖƹ¦ÄÜ£»½áºÏÍâΧµç·£¬Éè¼ÆÁË»ùÓÚFPGA µÄDDS ²¨Ðη¢ÉúÆ÷¡£
±¾ÏµÍ³Ö÷ÒªÒÔFPGAоƬEP2C8Q208C8 ΪºËÐÄ£¬¸¨ÒÔ±ØÒªµÄÄ£Äâµç·£¬ÔÚVerilog±àдµÄ³ÌÐò¿ØÖÆÏ£¬¹¹³ÉÁËÒ»¸ö»ùÓÚÖ±½ÓÊý×ÖÆµÂʺϳɼ¼ÊõµÄ²¨Ðη¢ÉúÆ÷¡£
¹Ø¼ü´Ê£ºFPGA£» DDS£»²¨Ðη¢ÉúÆ÷£»Verilog¡£
Abstract
Signal generator in the field of electronic technology as the most basic electronic devices, widely used in various fields. With the development of electronic information technology, its performance requirements are also getting higher and higher, such as high-frequency stability requirements, conversion speed, with AM, FM. The topic for the FPGA-based DDS waveform generator, has a practical significance. Through research Direct Digital Synthesis (Direct Digital Frequency Synthesis referred to DDS or DDFS) to the basic principles of the DDS grasp the core of the phase accumulator function of the performance of the FPGA, DA conversion circuit and that communications between the FPGA Control functions in conjunction with the external circuit, the design of the FPGA-based DDS waveform generator.
This system is mainly to FPGA chip EP2C8Q208C8 as the core, supplemented by the necessary analogcircuit, in the preparation of the Verilog programming, constitutes a Based on Direct Digital Synthesis technology wave generator.
Key words: FPGA; DDS; Waveform Generator; Verilog
Ŀ¼
Õª Òª................................................................................................................................1 Abstract...............................................................................................................................2 µÚÒ»Õ Ð÷ÂÛ.....................................................................................................................1
1.1 ÒýÑÔ.....................................................................................................................1 1.2 ¹úÄÚÍâÏÖ×´.........................................................................................................1
1.2.1 ¹úÍâÐźŷ¢ÉúÆ÷ÏÖ×´...............................................................................1
1.2.2 ¹úÍâÐźŷ¢ÉúÆ÷ÏÖ×´................................................................................2 1.3 DDSµÄÓÅÁÓÊÆ......................................................................................................3
1.3.1 DDSµÄÓŵã...............................................................................................3 1.3.2 DDSµÄȱµã...............................................................................................3 1.3.3 µ¥Ð¾Æ¬DDS½éÉÜ......................................................................................4 1.4 ±¾ÂÛÎÄÖ÷ÒªÄÚÈÝ..................................................................................................4 µÚ¶þÕ FPGA¹¤×÷ÔÀí...................................................................................................6 2.1 FPGA ¼ò½é...........................................................................................................6
2.1.1 FPGAµÄ·¢Õ¹Àú³Ì¼°ÌØÐÔ½éÉÜ................................................................£¶ 2.1.2 FPGAϵͳ½á¹¹ºÍ×ÊÔ´............................................................................£¶ 2.1.3 FPGAµÄÉè¼ÆÁ÷³Ì......................................................................................9 2.2 FPGAʵÏÖDDSµÄ·½·¨.......................................................................................11 2.2.1 »ùÓÚIIRÂ˲¨Æ÷µÄDDS.............................................................................11 2.2.2 »ùÓÚ²é±í·¨£¨LTU£©µÄDDS....................................................................13 2.2.3 Á½ÖÖʵÏÖ·½·¨µÄ±È½Ï.................................................................................17 µÚÈýÕ DDS¹¤×÷ÔÀí.....................................................................................................18 3.1 DDSÀíÂÛ¿ÉÐÐÐÔ....................................................................................................18 3.2 Ö±½ÓÊý×ÖÆµÂʺϳɻù´¡........................................................................................19 3.3 DDSµÄƵÂÊ·ÖÎö...................................................................................................20 3.4 DDSÊä³öÌØÐÔ.......................................................................................................22 3.4.1 ÀíÏëÇé¿öϵÄDDSƵÆ×ÌØÐÔ.....................................................................22 3.4.2 ·ÇÀíÏëÇé¿öϵÄDDSƵÆ×ÌØÐÔ.................................................................24 3.5 DDSϵͳÊä³öµÄÔÓÉ¢ÐźÅÒÖÖÆ·½·¨...................................................................25 3.5.1 Ôö¼Ó²¨Ðδ洢Æ÷µÄÓÐЧÈÝÁ¿.......................................................................25 3.5.2 ¶¶¶¯×¢Èë¼¼Êõ...............................................................................................25 µÚËÄÕ ϵͳ·½°¸¼°µç·Éè¼Æ.........................................................................................27 4.1 ϵͳÉè¼ÆÄ¿±ê.......................................................................................................27 4.2 Ö÷ÒªÆ÷¼þµÄÑ¡Ôñ...................................................................................................27 4.2.1 FPGAÖ÷оƬµÄÑ¡Ôñ....................................................................................27 4.2.2 DACµÄÑ¡Ôñ..................................................................................................28 4.3 ϵͳ¹¹³É...............................................................................................................29 4.4 FPGAµÄÉè¼Æ.........................................................................................................29 4.4.1 ϵͳ¿ØÖÆÄ£¿éµÄÉè¼Æ...................................................................................29 4.4.2 °´¼üÏû¶¶Ä£¿éÉè¼Æ.......................................................................................33 4.4.3 ÏÔʾģ¿éÉè¼Æ...............................................................................................34 4.4.3.1 ƵÂÊÏÔʾģ¿éµÄÉè¼Æ............................................................................34 4.4.3.1 µçѹ·ùÖµÏÔʾģ¿éµÄÉè¼Æ....................................................................36 4.4.4 ÍâΧ½Ó¿Úµç·...............................................................................................36
Ŀ¼
µÚÎåÕ µ÷ÊÔ....................................................................................................................37 µÚÁùÕ ÐÔÄܽá¹û²âÊÔ¼°·ÖÎö........................................................................................37 6.1 ²âÊÔÊý¾Ý................................................................................................................38 6.2 Îó²î·ÖÎö................................................................................................................40 6.2.1 ·ùÖµÁ¿»¯Îó²î........................................................................................................40 6.2.2 µçÔ´ÔëÉù................................................................................................................40 6.2.3 ºó¼¶Ô˷ŲúÉúµÄÎó²î............................................................................................40 µÚÆßÕ ×ܽá....................................................................................................................41 ÖÂл....................................................................................................................................42 ¸½Â¼....................................................................................................................................43 ¸½Â¼A (°´¼üÏû¶¶³ÌÐò)................................................................................................43 ¸½Â¼B £¨ÆµÂÊÔËËã¿ØÖÆÄ£¿é´úÂ룩..........................................................................45 ¸½Â¼C £¨FPGAºËÐİåÔÀíͼ£©...............................................................................46 ¸½Â¼D £¨°´¼üָʾ°åµç·£©......................................................................................48 ¸½Â¼E £¨ÏÔʾ°åµç·£©.............................................................................................48 ¸½Â¼F £¨DAת»»°åµç·£©......................................................................................50 ²Î¿¼ÎÄÏ×............................................................................................................................52
¹²·ÖÏí92ƪÏà¹ØÎĵµ