{"id":8372,"date":"2024-10-22T14:41:02","date_gmt":"2024-10-22T06:41:02","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=8372"},"modified":"2025-01-02T22:26:38","modified_gmt":"2025-01-02T14:26:38","slug":"lemon_zynq_pl_hdmi","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2024\/10\/22\/lemon_zynq_pl_hdmi\/","title":{"rendered":"\u57fa\u4e8eLemon ZYNQ \u7684FPGA\u5b9e\u9a8c\u5341\u4e8c\u00a0\u00a0\u57fa\u4e8eZYNQ PL\u8d44\u6e90\u7684HDMI\u529f\u80fd\u6f14\u793a"},"content":{"rendered":"\n<p>\u672c\u6587\u6f14\u793a\u5982\u4f55\u7528PL\u903b\u8f91\u8d44\u6e90\u53bb\u9a71\u52a8\u6700\u5c0f\u7cfb\u7edf\u677f\u4e0a HDMI\u90e8\u5206\u7684\u7535\u8def\u6765\u5b9e\u73b0\u70b9\u5c4f\u7684\u64cd\u4f5c<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6b64\u7ae0\u8282\u5185\u5bb9\u9002\u7528\u4e8eLemon ZYNQ\u4e3b\u677f\uff0c\u5982\u662f\u5176\u4ed6\u677f\u5b50\u8bf7\u770b\u5bf9\u5e94\u677f\u5b50\u76ee\u5f55<\/strong><\/li>\n\n\n\n<li><strong>\u672c\u6587\u5728 vivado2018.3\u7248\u672c\u4e0a\u6f14\u793a<\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>\u5b9e\u9a8c\u5185\u5bb9\uff1a<\/strong>\u672c\u6b21\u5b9e\u9a8c\u6211\u4eec\u5c06\u7528Verilog\u8bbe\u8ba1\u4e00\u4e2a\u7b26\u5408RGB888\u8f93\u51fa\u7684\u56fe\u50cf\u751f\u6210\u6a21\u5757\uff08\u5206\u8fa8\u7387800X600\u4ee5\u53ca1080P\uff09\uff08\u5f69\u6761\u7eb9\u751f\u6210\u6a21\u5757\uff09\uff0c\u5e76\u501f\u52a9\u677f\u5b50\u4e0a\u7684HDMI\u8d44\u6e90\u5c06\u56fe\u50cf\u8f93\u51fa\u5e76\u5728\u5916\u90e8HDMI\u663e\u793a\u5c4f\u4e0a\u8fdb\u884c\u663e\u793a\uff0c\u4ee5\u6b64\u6765\u719f\u6089\u6211\u4eec\u677f\u5b50\u7684HDMI\u5f00\u53d1\u6d41\u7a0b\uff0c\u4e3a\u540e\u7eedFPGA\u56fe\u50cf\u5904\u7406\u76f8\u5173\u7684\u5f00\u53d1\u505a\u524d\u671f\u51c6\u5907\u5de5\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u786c\u4ef6\u90e8\u5206\u4ecb\u7ecd\uff1a<\/strong><\/h2>\n\n\n\n<p>HDMI\u90e8\u5206\u7684\u539f\u7406\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"633\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-96-1024x633.png\" alt=\"\" class=\"wp-image-8373\" style=\"width:636px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-96-1024x633.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-96-300x185.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-96-768x475.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-96.png 1128w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u539f\u7406\u56fe\u4e0aHDMI_TX_TMDS_DATA0-1-2 \u4ee5\u53caHDMI_TX_TMDS_CLK\u4fe1\u53f7\u90fd\u662f\u63a5\u5230ZYNQ\u7684PL \u5dee\u5206\u4fe1\u53f7\u7ebf\u4e0a\u7684\u3002\u677f\u5b50\u7684HDMI \u90fd\u662f\u63a5ESD \u82af\u7247\u7684\uff08PUSB3FR4\uff09 \u8fd9\u6837\u63d2\u62d4 HDMI\u7684\u8fc7\u7a0b\u5f53\u4e2d\u4e0d\u4f1a\u56e0\u4e3a\u9759\u7535\u800c\u6253\u574f\u677f\u5b50<\/p>\n\n\n\n<p>\u5982\u4e0a\u6587\u6240\u8bf4\uff0cLemon \u4e3b\u677f\u7684HDMI \u662f\u6ca1\u6709\u63a5\u5916\u90e8HDMI\u82af\u7247\u7684\uff0c\u800c\u662f\u901a\u8fc7\u5dee\u5206\u7ebf\u7684\u65b9\u5f0f\u76f4\u63a5\u8fde\u5230FPGA\u7684IO\u4e0a\uff0c\u76f8\u5f53\u4e8e\u7528FPGA\u7684\u903b\u8f91\u6765\u5b9e\u73b0\u5916\u90e8HDMI\u82af\u7247\u7684\u529f\u80fd\uff0c\u8be5\u65b9\u6cd5\u53ef\u4ee5\u6ee1\u8db3\u5927\u90e8\u5206HDMI\u8f93\u51fa\u663e\u793a\u7684\u4f7f\u7528\u573a\u666f\uff0c\u5e76\u6700\u9ad8\u652f\u6301\u52301080P60\u5e27\u7684\u753b\u9762\u8f93\u51fa\u3002<\/p>\n\n\n\n<p><strong>\uff08\u7ecf\u53cd\u9988\uff0c\u6709\u90e8\u5206\u975e\u6807\u51c6HDMI \u663e\u793a\u5668\u4f1a\u51fa\u73b0\u517c\u5bb9\u6027\u4e0a\u7684\u95ee\u9898\uff0c\u96c6\u4e2d\u5728\u6781\u5ba2DIY\u7684HDMI\u5c0f\u5c4f\u4e0a\u3002\u9664\u6b64\u4e4b\u5916\u7edd\u5927\u591a\u6570\u54c1\u724cHDMI\u5728\u73b0\u5b9e\u4e0a\u90fd\u6ca1\u6709\u95ee\u9898\uff09<\/strong><\/p>\n\n\n\n<p>\u60f3\u8981\u9a71\u52a8HDMI\u90e8\u5206\u5e76\u8f93\u51fa\u56fe\u50cf\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u7528\u5230 digilent\u5b98\u65b9\u8bbe\u8ba1\u7684\u4e00\u4e2aIP\u6838 RGB2DVI\uff0c\u8fd9\u4e2aIP\u6838\u7684\u5b98\u65b9\u4e0b\u8f7d\u5730\u5740\u5982\u4e0b\uff1a<a href=\"https:\/\/github.com\/Digilent\/vivado-library\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/Digilent\/vivado-library<\/a>\uff0c\u8fd9\u91cc\u4e3a\u4e86\u65b9\u4fbf\u4f7f\u7528\uff0c\u6211\u4e5f\u628a\u8fd9\u4e2aIP\u6838\u4e0b\u4e0b\u6765\u653e\u5728\u672c\u7ad9\u4f9b\u5927\u5bb6\u53c2\u8003\uff08IP\u7248\u6743\u5f52digilent\u6240\u6709\uff09<a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/rgb2dvi.zip\">http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/rgb2dvi.zip<\/a> \uff08\u8fd9\u91cc\u53ea\u4fdd\u7559\u4e86 rgb2dvi\u90e8\u5206\uff09<\/p>\n\n\n\n<p>RGB2DVI \u7684\u8f93\u5165\u65f6\u5e8f\u6ee1\u8db3VGA\u7684\u6807\u51c6\uff0c\u4ee5\u4e0b\u662fVGA\u5206\u8fa8\u7387\u7684\u53c2\u6570<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/xilinx.eetrend.com\/files-eetrend-xilinx\/blog\/201804\/12782-36276-tu_9shi_xu_can_shu_.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u65f6\u5e8f\u56fe\uff0c\u4ee5\u53ca\u6d88\u9690\u7684\u6982\u5ff5\uff0c\u8fd8\u6709\u4e0d\u540c\u5206\u8fa8\u7387\u65f6\uff0c\u5404\u4e2a\u533a\u57df\u7684\u53c2\u6570<br><img decoding=\"async\" width=\"670\" src=\"http:\/\/xilinx.eetrend.com\/files-eetrend-xilinx\/blog\/201804\/12782-36275-tu_8ge_ge_qu_yu_de_can_shu_.png\" alt=\"\"><\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u4e00\u3001Vivado\u5de5\u7a0b\u521b\u5efa<\/strong><\/h1>\n\n\n\n<p>\u5de5\u7a0b\u521b\u5efa\u7684\u8fc7\u7a0b\u53ef\u4ee5\u53c2\u8003\u8bd5\u9a8c\u4e00\u4e2d\u7684\u5185\u5bb9\uff0c\u8fd9\u91cc\u4e0d\u518d\u8be6\u7ec6\u63cf\u8ff0\u4e86\u3002<a href=\"http:\/\/www.hellofpga.com\/index.php\/2024\/10\/02\/lemon_zynq_pl_led\/\">\u57fa\u4e8eLemon ZYNQ\u7684FPGA\u5b9e\u9a8c\u4e00  \u7528ZYNQ\u7684PL\u8d44\u6e90\u70b9\u4eae\u4e00\u4e2aLED\uff08\u5b8c\u6574\u56fe\u6587\uff09<\/a>(\u82af\u7247\u578b\u53f7\u9009XC7Z020CLG400-1)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u65f6\u949f\u6a21\u5757\u8bbe\u8ba1<\/strong><\/h2>\n\n\n\n<p>\u6211\u4eec\u5c1d\u8bd5\u8f93\u51fa800X600\u7684\u5206\u8fa8\u7387\u7684\u56fe\u50cf\uff0c\u53c2\u8003\u4e0a\u6587\u4e2dVGA\u7684\u5206\u8fa8\u7387\u53c2\u6570\u8868\u4e2d\u6807\u6ce8\u7684\uff0c800X600\u5206\u8fa8\u7387\u9700\u8981\u7684\u5de5\u4f5c\u7684\u50cf\u7d20\u65f6\u949f\u4e3a40MH\uff0c\u800c\u6211\u4eec\u677f\u5b50\u4e0a\u710a\u63a5\u7684\u6709\u6e90\u6676\u4f53\u662f125MHZ\uff0c\u8fd9\u91cc\u5c31\u9700\u8981\u7528\u65f6\u949f\u7ba1\u7406\u6a21\u5757MMCM\u6765\u751f\u6210\u6211\u4eec\u8981\u768440MHZ\u9891\u7387\u548c 5\u500d\u50cf\u7d20\u65f6\u949f\u7684200Mhz\u9891\u7387<strong>\u3002<\/strong><\/p>\n\n\n\n<p>VIVADO\u7cfb\u7edf\u7ed9\u6211\u4eec\u5185\u7f6e\u4e86\u5f88\u591a\u529f\u80fd\u5f3a\u5927\u7684\u6a21\u5757\uff0c\u5305\u62ec\u6211\u4eec\u8981\u7684\u65f6\u949f\u6a21\u5757\uff0c\u8fd9\u91cc\u6211\u4eec\u53ea\u9700\u8981\u8c03\u7528\u65f6\u949f\u6a21\u5757\u8f93\u5165\u6211\u4eec\u8981\u7684\u53c2\u6570\u5c31\u597d<\/p>\n\n\n\n<p>1)\u7b2c\u4e00\u6b65\uff0c\u70b9\u51fbIP Catalog \u6253\u5f00\u6a21\u5757\u9009\u62e9\u5668\uff0c \u5728\u91cc\u9762\u7684\u641c\u7d22\u680f\u8f93\u5165 CLOCKING \uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8df3\u51fa\u7b26\u5408\u7684 Clocking Wizard\u9009\u9879\uff0c\u53cc\u51fb\u5b83<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"354\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-3.png\" alt=\"\" class=\"wp-image-138\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-3.png 791w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-3-300x134.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-3-768x344.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>2\uff09\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u6211\u4eec\u5c06input Frequence \u8f93\u5165\u9891\u7387\u4fee\u6539\u4e3a\u677f\u5b50\u4e0a\u710a\u63a5\u6676\u632f\u7684\u65f6\u949f\u7684125M\uff0c \u53f3\u8fb9\u6539\u4e3a\u5355\u7aef\u8f93\u5165<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"756\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-97-1024x756.png\" alt=\"\" class=\"wp-image-8376\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-97-1024x756.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-97-300x221.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-97-768x567.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-97-1536x1133.png 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-97.png 1728w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09\u5728output Clocks\u9009\u9879\u4e2d \u5c06clk_out1\u6539\u621040m\uff0c\u5c06clk_out2\u6539\u6210200m<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"505\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-12.png\" alt=\"\" class=\"wp-image-140\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-12.png 993w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-12-300x153.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-12-768x391.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>4\uff09\u5c06\u754c\u9762\u6258\u5230\u6700\u4e0b\u9762\uff0c\u56e0\u4e3a\u6211\u4eec\u8fd9\u91cc\u7684\u8981\u6c42\u5e76\u4e0d\u9ad8\uff0c\u6240\u4ee5\u628a\u65f6\u949f\u7684\u590d\u4f4dreset\uff0c\u548clocked\u9009\u9879\u53bb\u9664\uff0c\u6700\u540e\u70b9\u51fbok\u751f\u6210\u6a21\u5757<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"149\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-15.png\" alt=\"\" class=\"wp-image-141\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-15.png 741w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-15-300x60.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001\u5bfc\u5165\u4e0b\u4e0b\u6765\u7684RGB2DVI\u6a21\u5757<\/strong><\/h2>\n\n\n\n<p>1\uff09\u70b9\u51fbSetting<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"259\" height=\"174\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-24.png\" alt=\"\" class=\"wp-image-142\"\/><\/figure>\n\n\n\n<p>2\uff09\u5728\u5f39\u51fa\u7684\u8bbe\u7f6e\u7a97\u53e3\uff0c\u5982\u4e0b\u56fe\uff0c\u5c55\u5f00IP\u9009\u9879\uff0c\u9009\u4e2dPackager\uff0c\u5728\u70b9\u51fb\u91cc\u9762\u7684\u52a0\u53f7\u589e\u52a0\u76ee\u5f55\uff0c\u9009\u4e2dRGB2DVI\u7684\u76ee\u5f55<strong>(\u8fd9\u91cc\u5df2\u63d0\u524d\u5c06RGB2DVI\u7684\u76ee\u5f55\u590d\u5236\u5230\u5de5\u7a0b\u76ee\u5f55\u4e0b)<\/strong>\uff0c\u70b9\u51fbok<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1007\" height=\"819\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-65.png\" alt=\"\" class=\"wp-image-2495\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-65.png 1007w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-65-300x244.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-65-768x625.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09\u5bfc\u5165RGB2DVI IP\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5728IP\u7ba1\u7406\u5668\u91cc\u641c\u7d22RGB \u53cc\u51fb\u5e76\u6253\u5f00RGB to DVI Video Encoder \u9009\u9879<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"588\" height=\"406\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-30.png\" alt=\"\" class=\"wp-image-146\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-30.png 588w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-30-300x207.png 300w\" sizes=\"auto, (max-width: 588px) 100vw, 588px\" \/><\/figure>\n\n\n\n<p>4\uff09\u8bbe\u7f6eRGB2DVI\u6a21\u5757\uff0c\u56e0\u4e3a\u6211\u4eec\u5df2\u7ecf\u5728\u65f6\u949f\u6a21\u5757\u4e2d\u8bbe\u7f6e\u4e86 5\u500d\u7684\u7f16\u7801\u65f6\u949f\uff0c\u6240\u4ee5 \u6a21\u5757\u91cc\u4e0d\u9700\u8981\u518d\u751f\u6210\u6a21\u5757\u65f6\u949f\uff0c\u5982\u4e0b\u56fe\u53bb\u6389\u590d\u4f4d\u548c\u5185\u90e8\u4e32\u884c\u65f6\u949f\u524d\u9762\u7684\u52fe\uff0c\u70b9\u51fbOK<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"968\" height=\"742\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-31.png\" alt=\"\" class=\"wp-image-148\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-31.png 968w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-31-300x230.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-31-768x589.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5b8c\u6210\u4e4b\u540e \u6211\u4eec\u4fbf\u5f97\u5230\u4e86\u4e24\u4e2a\u6a21\u5757<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"89\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-32.png\" alt=\"\" class=\"wp-image-149\"\/><\/figure>\n\n\n\n<p><strong>\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u4e00\u4e2a\u4e8b\u60c5 RGB2DVI \u5b98\u65b9\u624b\u518c\u4e0a\u6709\u660e\u786e\u8bf4\uff0c \u5bf9\u5e94\u768424bit \u7ebf\u5e8f\u662f RBG\u7684 \uff0c\u800c\u4e0d\u662f RGB\u4f7f\u7528\u65f6\u5019\u9700\u8981\u683c\u5916\u6ce8\u610f\u3002<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"464\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/05\/image-53-1024x464.png\" alt=\"\" class=\"wp-image-8301\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/05\/image-53-1024x464.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/05\/image-53-300x136.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/05\/image-53-768x348.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/05\/image-53-1536x697.png 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/05\/image-53.png 1687w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u589e\u52a0\u6211\u4eec\u7684\u4ee3\u7801\u5185\u5bb9<\/strong><\/h2>\n\n\n\n<p>1\uff09\u8fd9\u91cc\u521b\u5efa\u4e00\u4e2a\u663e\u793a\u6a21\u5757\uff0c\u663e\u793a\u6a21\u5757\u8d1f\u8d23\u8f93\u51fa\u6807\u51c6\u7684RGB\u65f6\u5e8f\uff0c\u5177\u4f53\u5982\u4e0b( color_bar.v)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/www.hellofpga.com\/\/<br>`timescale 1ns \/ 1ps<br>module color_bar (<br>    input wire clk, <br>    input wire rst_n,     <br>    output reg hsync,   <br>    output reg vsync,    <br>    output reg de,       <br>    output reg [7:0] rgb_r,   <br>    output reg [7:0] rgb_g,   <br>    output reg [7:0] rgb_b  <br>);<br><br><br>    \/\/`define RES_1080P  <br>    `define RES_800x600  <br><br>    `ifdef RES_800x600<br>        parameter H_ACTIVE = 800;<br>        parameter H_FRONT = 40;<br>        parameter H_SYNC = 128;<br>        parameter H_BACK = 88;<br>        parameter V_ACTIVE = 600;<br>        parameter V_FRONT = 1;<br>        parameter V_SYNC = 4;<br>        parameter V_BACK = 23;<br>    `endif<br><br>    `ifdef RES_1080P<br>        parameter H_ACTIVE = 1920;<br>        parameter H_FRONT = 88;<br>        parameter H_SYNC = 44;<br>        parameter H_BACK = 148;<br>        parameter V_ACTIVE = 1080;<br>        parameter V_FRONT = 4;<br>        parameter V_SYNC = 5;<br>        parameter V_BACK = 36;<br>    `endif<br><br><br>    reg [11:0] h_count = 0;<br>    reg [11:0] v_count = 0;<br>    reg pix_data_req;<br><br>    always @(posedge clk or negedge rst_n) begin<br>        if(!rst_n)begin<br>            h_count&lt;=12'd0;<br>            v_count&lt;=12'd0;<br>            pix_data_req&lt;=1'b0;<br>            de&lt;=1'b0;<br>        end<br>        else begin <br>            if (h_count &lt; H_ACTIVE + H_FRONT + H_SYNC + H_BACK - 1'b1)<br>                h_count &lt;= h_count + 1;<br>            else begin<br>                h_count &lt;= 0;<br>                if (v_count &lt; V_ACTIVE + V_FRONT + V_SYNC + V_BACK - 1'b1)<br>                    v_count &lt;= v_count + 1;<br>                else<br>                    v_count &lt;= 0;<br>            end<br>    <br>            hsync &lt;= (h_count &lt; H_SYNC) ? 0 : 1;<br>            vsync &lt;= (v_count &lt; V_SYNC) ? 0 : 1;<br>            <br>            de &lt;= ((h_count &gt;= H_SYNC + H_BACK ) &amp;&amp; (h_count &lt; H_SYNC + H_BACK + H_ACTIVE) <br>                  &amp;&amp;(v_count &gt;= V_SYNC + V_BACK ) &amp;&amp; (v_count &lt; V_SYNC + V_BACK + V_ACTIVE)) ? 1'b1:1'b0;<br>            <br>            pix_data_req &lt;= ((h_count &gt;= H_SYNC + H_BACK -1'b1 ) &amp;&amp; (h_count &lt; H_SYNC + H_BACK + H_ACTIVE -1'b1) <br>                         &amp;&amp;(v_count &gt;= V_SYNC + V_BACK ) &amp;&amp; (v_count &lt; V_SYNC + V_BACK + V_ACTIVE)) ? 1'b1:1'b0;<br>         end<br>    end<br><br><br>wire [11:0] pix_xpos = pix_data_req ? (h_count - (H_SYNC + H_BACK) ):12'd0;<br><br>always @(posedge clk or negedge rst_n) begin<br>    if(!rst_n)begin<br>        rgb_r&lt;=8'h00; rgb_g&lt;=8'h00;  rgb_b&lt;=8'h00; <br>    end<br>    else if(pix_data_req)begin<br>        if(pix_xpos==12'd0)<br>          \/\/White<br>            begin rgb_r&lt;=8'hff; rgb_g&lt;=8'hff;  rgb_b&lt;=8'hff;  end<br>        else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 1)<br>         \/\/Yellow<br>            begin rgb_r&lt;=8'hff; rgb_g&lt;=8'hff;  rgb_b&lt;=8'h00;  end <br>        else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 2)<br>         \/\/Cyan<br>            begin rgb_r&lt;=8'h00; rgb_g&lt;=8'hff;  rgb_b&lt;=8'hff;  end <br>        else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 3)<br>         \/\/Green<br>            begin rgb_r&lt;=8'h00; rgb_g&lt;=8'hff;  rgb_b&lt;=8'h00;  end <br>        else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 4)<br>          \/\/Magenta<br>            begin rgb_r&lt;=8'hff; rgb_g&lt;=8'h00;  rgb_b&lt;=8'hff;  end<br>        else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 5)<br>          \/\/Red<br>            begin rgb_r&lt;=8'hff; rgb_g&lt;=8'h00;  rgb_b&lt;=8'h00;  end<br>        else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 6)<br>          \/\/Blue<br>            begin rgb_r&lt;=8'h00; rgb_g&lt;=8'h00;  rgb_b&lt;=8'hff;  end<br>        else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 7)<br>         \/\/Black<br>            begin rgb_r&lt;=8'h00; rgb_g&lt;=8'h00;  rgb_b&lt;=8'h00;  end <br>    end<br>    else begin<br>        rgb_r&lt;=8'h00; rgb_g&lt;=8'h00;  rgb_b&lt;=8'h00; <br>    end<br>end    <br><br><br>endmodule<br><\/pre>\n\n\n\n<p>2\uff09\u521b\u5efa\u4e00\u4e2a\u9876\u5c42\u6a21\u5757\uff0c\u5206\u522b\u8c03\u7528\u65f6\u949f\u3001RGB2DVI\u3001\u4ee5\u53ca\u5f69\u6761\u7eb9\u663e\u793a\u6a21\u5757\uff08top.v\uff09\uff0c\u8fd9\u91cc\u6ce8\u610fvid_pData({R,B,G})\uff0c<strong>\u800c\u4e0d\u662fR G B\uff08\u539f\u56e0\u662f RGB2DVI\u7ebf\u5e8f\u63a5\u53e3\u662f RBG\u987a\u5e8f\uff0c\u800c\u4e0d\u662fRGB\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/www.hellofpga.com\/\/<br>`timescale 1ns \/ 1ps<br>module top(<br>    input clk,<br>    output[2:0] TMDS_DATA_p,<br>    output[2:0] TMDS_DATA_n,<br>    output      TMDS_CLK_p,<br>    output      TMDS_CLK_n<br>    );<br>    <br>    wire clk_40m;<br>    wire clk_200m;<br>    clk_wiz_0 u2(<br>        .clk_in1(clk),<br>        .clk_out1(clk_40m),<br>        .clk_out2(clk_200m)<br>    );<br>    <br>    wire VGA_HS,VGA_VS,VGA_DE;<br>    wire[7:0] R,G,B;<br><br><br>    color_bar u4 (<br>        .clk(clk_40m),         <br>\t    .rst_n(1'b1),         <br>\t    .hsync(VGA_HS),    <br>\t    .vsync(VGA_VS),         <br>\t    .de(VGA_DE),         <br>        .rgb_r(R),        <br>        .rgb_g(G),        <br>        .rgb_b(B)         <br>);<br>    <br>    <br>    rgb2dvi_0 u1(<br>        .aRst_n(1'b1),<br>        .SerialClk(clk_200m),<br>        .PixelClk(clk_40m),<br>        .TMDS_Clk_p(TMDS_CLK_p),<br>        .TMDS_Clk_n(TMDS_CLK_n),<br>        .TMDS_Data_p(TMDS_DATA_p),<br>        .TMDS_Data_n(TMDS_DATA_n),<br>        .vid_pData({R,B,G}),  <br>        .vid_pHSync(VGA_HS),<br>        .vid_pVSync(VGA_VS),<br>        .vid_pVDE(VGA_DE)<br>    );<br>endmodule<\/pre>\n\n\n\n<p>\u6700\u540e\u518d\u589e\u52a0\u7ea6\u675f\u6587\u4ef6 \uff08HDMI_TEST.XDC\uff09 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">set_property IOSTANDARD LVCMOS33 [get_ports clk]\nset_property PACKAGE_PIN K17 [get_ports {TMDS_DATA_p[0]}]\nset_property PACKAGE_PIN K19 [get_ports {TMDS_DATA_p[1]}]\nset_property PACKAGE_PIN J18 [get_ports {TMDS_DATA_p[2]}]\nset_property PACKAGE_PIN L16 [get_ports TMDS_CLK_p]\nset_property PACKAGE_PIN H16 [get_ports clk]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e94\u3001\u7f16\u8bd1\u7efc\u5408\uff0c\u5e76\u8fd0\u884c\u4ee3\u7801<\/strong><\/h2>\n\n\n\n<p>\u6700\u7ec8\u663e\u793a\u6548\u679c\u5982\u56fe\uff0c\u4ee5\u4e0a\u4ee3\u7801\u5b9e\u73b0 800X600\u7684 60hz HDMI \u7a33\u5b9a\u8f93\u51fa\uff08\u5b8c\u6574\u4ee3\u7801\u5728\u672c\u6587\u6700\u540e\u9762\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"766\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-30-1024x766.png\" alt=\"\" class=\"wp-image-1036\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-30-1024x766.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-30-300x224.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-30-768x575.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-30.png 1327w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u516d\u3001\u4ee3\u7801\u89e3\u8bfb\uff1a<\/strong><\/h2>\n\n\n\n<p><strong>1\uff09 \u4e0d\u540c\u5206\u8fa8\u7387\u7684\u4e0d\u540c\u53c2\u6570<\/strong><\/p>\n\n\n\n<p>RGB2DVI \u7684\u8f93\u5165\u65f6\u5e8f\u6ee1\u8db3VGA\u7684\u6807\u51c6\uff0c\u4ee5\u4e0b\u662fVGA\u5206\u8fa8\u7387\u7684\u53c2\u6570<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/xilinx.eetrend.com\/files-eetrend-xilinx\/blog\/201804\/12782-36276-tu_9shi_xu_can_shu_.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u65f6\u5e8f\u56fe\uff0c\u4ee5\u53ca\u6d88\u9690\u7684\u6982\u5ff5\uff0c\u8fd8\u6709\u4e0d\u540c\u5206\u8fa8\u7387\u65f6\uff0c\u5404\u4e2a\u533a\u57df\u7684\u53c2\u6570<br><img decoding=\"async\" width=\"670\" src=\"http:\/\/xilinx.eetrend.com\/files-eetrend-xilinx\/blog\/201804\/12782-36275-tu_8ge_ge_qu_yu_de_can_shu_.png\" alt=\"\"><\/p>\n\n\n\n<p>\u8fd8\u662f\u56de\u5230\u8fd9\u4e24\u5f20\u56fe\uff0c \u4e0d\u540c\u7684\u5206\u8fa8\u7387\u6709\u4e0d\u540c\u7684\u53c2\u6570\uff0c\u4e0b\u9762\u662f800\u00d7600 \u548c1080P\u5bf9\u5e94\u7684\u53c2\u6570\uff0c\u901a\u8fc7 `define RES_800x600 \u6216\u8005`define RES_1080P \u6765\u8fdb\u884c\u9009\u62e9\uff0c\u5176\u4e2d\u7684\u53c2\u6570\u5747\u548c\u4e0a\u8ff0\u56fe\u8868\u4e2d\u7684\u5185\u5bb9\u5bf9\u5e94\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">    \/\/`define RES_1080P  <br>    `define RES_800x600  <br><br>    `ifdef RES_800x600<br>        parameter H_ACTIVE = 800;<br>        parameter H_FRONT = 40;<br>        parameter H_SYNC = 128;<br>        parameter H_BACK = 88;<br>        parameter V_ACTIVE = 600;<br>        parameter V_FRONT = 1;<br>        parameter V_SYNC = 4;<br>        parameter V_BACK = 23;<br>    `endif<br><br>    `ifdef RES_1080P<br>        parameter H_ACTIVE = 1920;<br>        parameter H_FRONT = 88;<br>        parameter H_SYNC = 44;<br>        parameter H_BACK = 148;<br>        parameter V_ACTIVE = 1080;<br>        parameter V_FRONT = 4;<br>        parameter V_SYNC = 5;<br>        parameter V_BACK = 36;<br>    `endif<\/pre>\n\n\n\n<p><strong>2\uff09hsync \u548cvsync \u4ee5\u53cade\u7684\u903b\u8f91\u5982\u4e0b\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">if (h_count &lt; H_ACTIVE + H_FRONT + H_SYNC + H_BACK - 1'b1)<br>    h_count &lt;= h_count + 1;<br>else begin<br>    h_count &lt;= 0;<br>if (v_count &lt; V_ACTIVE + V_FRONT + V_SYNC + V_BACK - 1'b1)<br>    v_count &lt;= v_count + 1;<br>else<br>    v_count &lt;= 0;<br>end<br><br>hsync &lt;= (h_count &lt; H_SYNC) ? 0 : 1;<br>vsync &lt;= (v_count &lt; V_SYNC) ? 0 : 1;<br><br>de &lt;= ((h_count &gt;= H_SYNC + H_BACK ) &amp;&amp; (h_count &lt; H_SYNC + H_BACK + H_ACTIVE) &amp;&amp;(v_count &gt;= V_SYNC + V_BACK ) &amp;&amp; (v_count &lt; V_SYNC + V_BACK + V_ACTIVE)) ? 1'b1:1'b0;<\/pre>\n\n\n\n<p>\u5176\u4e2d&nbsp;<code>h_count<\/code>&nbsp;\u548c&nbsp;<code>v_count<\/code>&nbsp;\u5206\u522b\u662f\u6c34\u5e73\u548c\u5782\u76f4\u65b9\u5411\u7684\u8ba1\u6570\u5668\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>h_count\u5468\u671f\u662f\u4ece H_SYNC \u5230 H_BACK(H_BP)\u5230 H_ACTIVE \u5230 H_FRONT(H_FP\uff09<\/li>\n\n\n\n<li>v_count\u5468\u671f\u662f\u4eceV_SYNC \u5230 V_BACK(V_BP)\u5230 V_ACTIVE \u5230 V_FRONT(H_FP\uff09<\/li>\n\n\n\n<li>de \u5c31\u662f H_ACTIVE \u548cV_ACTIVE \u90fd\u6709\u6548\u7684\u533a\u57df\uff0c\u5373\u56fe\u50cf\u663e\u793a\u533a\u57df<\/li>\n<\/ul>\n\n\n\n<p>\u4e0b\u56fe\u662fST\u7684\u4e00\u4e2aLCD\u63a7\u5236\u65f6\u5e8f\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8be5\u56fe\u6765\u5bf9\u6d41\u7a0b\u8fdb\u884c\u4e86\u89e3\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"570\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-61.png\" alt=\"\" class=\"wp-image-8129\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-61.png 810w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-61-300x211.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-61-768x540.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>3\uff09 \u5f69\u6761\u7eb9\u7684\u663e\u793a\u90e8\u5206\uff1a<\/strong><\/p>\n\n\n\n<p>a) \u589e\u52a0\u4e00\u4e2a\u4fe1\u53f7pix_data_req\uff0c\u8fd9\u4e2a\u4fe1\u53f7\u548cde\u76f8\u7c7b\u4f3c\uff0c\u90fd\u4ee3\u8868\u6709\u6548\u663e\u793a\u533a\u57df\uff0c\u4f46\u662fpix_data_req\u5728h\u8ba1\u6570\u4e0a\u4f1a\u65e9de\u4e00\u4e2a\u50cf\u7d20\u70b9\uff0c\u7528\u4e8e\u5728de\u4fe1\u53f7\u4e4b\u524d\u5c31\u5c06\u5f85\u663e\u793a\u7684\u989c\u8272\u6570\u636e\u51c6\u5907\u597d<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pix_data_req &lt;= ((h_count &gt;= H_SYNC + H_BACK -1'b1 ) &amp;&amp; (h_count &lt; H_SYNC + H_BACK + H_ACTIVE -1'b1)&amp;&amp;(v_count &gt;= V_SYNC + V_BACK ) &amp;&amp; (v_count &lt; V_SYNC + V_BACK + V_ACTIVE)) ? 1'b1:1'b0;<\/pre>\n\n\n\n<p>b) \u589e\u52a0pix_xpos\u4fe1\u53f7\uff0c\u8be5\u4fe1\u53f7\u5bf9\u5e94\u6709\u6548\u663e\u793a\u533a\u57df\u4e2dx\u7684\u5750\u6807\uff08\u4ece0\u5f00\u59cb\u8ba1\u6570\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wire [11:0] pix_xpos = pix_data_req ? (h_count - (H_SYNC + H_BACK) ):12'd0;<\/pre>\n\n\n\n<p>c) \u5f69\u6761\u7eb9\u7684\u903b\u8f91\u4e5f\u6bd4\u8f83\u5bb9\u6613\u7406\u89e3\uff0c \u6211\u4eec\u5c06H_ACTIVE \u5206\u5272\u62108\u7b49\u4efd\uff0c\u6bcf\u7b49\u4efd\u90fd\u663e\u793a\u4e0d\u540c\u989c\u8272\u4f5c\u6f14\u793a\uff0c8\u7b49\u5206\u901a\u8fc7\u4e0b\u5217\u65b9\u5f0f\u6765\u5212\u5206<\/p>\n\n\n\n<p>\uff08H_ACTIVE \/ 8 ) * n \u8fd9\u90e8\u5206\u662f8\u7b49\u5206\u989c\u8272\u7684\u5207\u5206\u70b9\uff0c\u5f53\u6211\u4eec\u5f53\u524d\u7684pix_xpos==\uff08H_ACTIVE \/ 8 ) * n\u65f6\uff0c\u5c31\u5c06RGB\u8f93\u51fa\u5bf9\u5e94\u7684\u989c\u8272\u3002&nbsp;<strong>(\u56e0\u4e3a\u6211\u4eec\u7684H_ACTIVE\u8fd9\u4e2a\u503c\u662f\u786e\u8ba4\u7684\uff0c\u6240\u4ee5\u8fd9\u91cc\u7684\u4e58\u6cd5\u548c\u9664\u6cd5\u662f\u5728vivado \u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u5c31\u6362\u7b97\u6210\u5bf9\u5e94\u7684\u7ed3\u679c\u4e86\uff0c\u7ed9\u8fdbFPGA\u7684\u503c\u4f1a\u662f\u4e00\u4e2a\u5e38\u6570\uff0c\u800c\u4e0d\u662f\u7531FPGA\u8fdb\u884c\u8fd0\u7b97\u7684)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">if(pix_data_req)begin<br>    if(pix_xpos==12'd0)<br>        begin rgb_r&lt;=8'hff; rgb_g&lt;=8'hff;  rgb_b&lt;=8'hff;  end<br>    else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 1)<br>        begin rgb_r&lt;=8'hff; rgb_g&lt;=8'hff;  rgb_b&lt;=8'h00;  end<br>    else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 2)<br>        begin rgb_r&lt;=8'h00; rgb_g&lt;=8'hff;  rgb_b&lt;=8'hff;  end<br>    else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 3)<br>        begin rgb_r&lt;=8'h00; rgb_g&lt;=8'hff;  rgb_b&lt;=8'h00;  end<br>    else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 4)<br>        begin rgb_r&lt;=8'hff; rgb_g&lt;=8'h00;  rgb_b&lt;=8'hff;  end<br>    else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 5)<br>        begin rgb_r&lt;=8'hff; rgb_g&lt;=8'h00;  rgb_b&lt;=8'h00;  end<br>    else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 6)<br>        begin rgb_r&lt;=8'h00; rgb_g&lt;=8'h00;  rgb_b&lt;=8'hff;  end<br>    else if(pix_xpos ==( H_ACTIVE \/ 8 ) * 7)<br>        begin rgb_r&lt;=8'h00; rgb_g&lt;=8'h00;  rgb_b&lt;=8'h00;  end<br>end<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e03\u3001\u4fee\u6539\u5206\u8fa8\u7387<\/strong>\uff081080P\uff09<\/h2>\n\n\n\n<p><strong>1\uff09 \u4fee\u6539\u65f6\u5e8f\u53c2\u6570<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u6211\u4eec\u8981\u5c06\u5206\u8fa8\u7387\u4fee\u6539\u62101080P\u6216\u8005\u5176\u4ed6\u7684\u5206\u8fa8\u7387\uff0c\u53ea\u9700\u8981\u5bf9\u6211\u4eeccolor_bar\u4e2d\u7684\u53c2\u6570\u8fdb\u884c\u8c03\u6574\uff0c\u56e0\u4e3a\u6211\u4eec\u7684\u6f14\u793a\u4ee3\u7801\u4e2d\u5df2\u7ecf\u589e\u52a0\u4e861080p\u7684\u53c2\u6570\uff0c \u6211\u4eec\u53ea\u9700\u8981\u5c06\u5c06\u7a0b\u5e8f\u4e2d\u7684\u5b8f\u5b9a\u4e49\u7531`define RES_800x600 \u4fee\u6539\u6210 `define RES_1080P\u5373\u53ef\u3002\u5176\u4ed6\u7684\u5206\u8fa8\u7387\u6309\u7167\u4e4b\u524dVGA\u65f6\u5e8f\u7684\u8868\u683c\u4fee\u6539\u5bf9\u5e94\u7684\u53c2\u6570\u5373\u53ef\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>    `ifdef RES_1080P<br>        parameter H_ACTIVE = 1920;<br>        parameter H_FRONT = 88;<br>        parameter H_SYNC = 44;<br>        parameter H_BACK = 148;<br>        parameter V_ACTIVE = 1080;<br>        parameter V_FRONT = 4;<br>        parameter V_SYNC = 5;<br>        parameter V_BACK = 36;<br>    `endif<\/pre>\n\n\n\n<p><strong>2\uff09 \u4fee\u6539\u5bf9\u5e94\u65f6\u949f<\/strong><\/p>\n\n\n\n<p>\u4ee51080P\u4e3a\u4f8b\uff0c \u5c06 clk_out1 \u4fee\u6539\u62101080p\u7684 148.5 \uff0c\u800cclk_out2\u4fee\u6539\u62105\u500d\u7684clk_out1 \u5373742.5\u5373\u53ef\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"592\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-62-1024x592.png\" alt=\"\" class=\"wp-image-8132\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-62-1024x592.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-62-300x173.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-62-768x444.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-62.png 1045w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5b9e\u9645\u6211\u4eec\u8f93\u51fa\u7684Actual \u7684\u65f6\u949f\u503c742.188M\u548c\u7406\u8bba\u8bbe\u7f6e\u503c742.5\u53ef\u80fd\u4f1a\u6709\u70b9\u533a\u522b\uff0c\u4f46\u662f\u56e0\u4e3a\u5e95\u5c42\u90fd\u662f\u7528\u7684\u4e00\u5957\u500d\u9891\u5206\u9891\u903b\u8f91\uff0c\u6240\u4ee5clk_out1\u548cclk_out2\u4ecd\u7136\u4f1a\u4fdd\u8bc1 5\u500d\u5206\u9891\u5173\u7cfb\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"170\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-64-1024x170.png\" alt=\"\" class=\"wp-image-8134\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-64-1024x170.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-64-300x50.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-64-768x128.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-64.png 1414w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>\u5907\u6ce8\uff1a\u6211\u4eec\u7684\u65f6\u949f\u6a21\u5757\u5c3d\u91cf\u53ea\u7ed9HDMI\u63d0\u4f9b\u65f6\u949f\uff0c\u56e0\u4e3a\u5982\u679c\u6dfb\u52a0\u591a\u8def\u65f6\u949f\u8f93\u51fa\uff0c\u6709\u53ef\u80fd\u4f1a\u9020\u6210Actual\u548c\u6211\u4eec\u7684\u8bbe\u5b9a\u503c\u504f\u79bb\u8fc7\u5927\u7684\u60c5\u51b5\u3002<\/strong>\uff08\u56e0\u4e3aFPGA\u5185\u90e8\u6709\u591a\u4e2a\u65f6\u949f\u6a21\u5757\uff0c\u6240\u4ee5\u5176\u4ed6\u529f\u80fd\u53ef\u518d\u4f8b\u5316\u65b0\u7684\u65f6\u949f\u6a21\u5757\uff09<\/p>\n\n\n\n<p>\u91cd\u65b0\u518d\u7f16\u8bd1\u7efc\u5408\uff0c\u5e76\u8fd0\u884c\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u770b\u5230\u677f\u5b50\u7684\u5206\u8fa8\u88ab\u4fee\u6539\u62101080P\u7684\u4e86\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"666\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-32.png\" alt=\"\" class=\"wp-image-1037\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-32.png 744w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-32-300x269.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p><strong>\u56e0\u4e3a1080P\u60c5\u51b5\u4e0bmmcm\u7684\u65f6\u949f\u5df2\u7ecf\u8d85\u8fc7mmcm IP\u8bbe\u7f6e\u7684\u6700\u5927\u63a8\u8350\u503c\u4e86\uff0c\u6240\u4ee5\u4e0d\u4e00\u5b9a\u80fd\u517c\u5bb9\u6240\u6709\u7684\u663e\u793a\u5668\uff0c\u5927\u5bb6\u8bf7\u81ea\u884c\u5c1d\u8bd5\u3002<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e0b\u5217\u662f\u672c\u6b21\u5b9e\u9a8c\u7684\u5b8c\u6574\u5de5\u7a0b\uff1a<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u672c\u6587\u7684\u5b8c\u6574\u5de5\u7a0b\u4e0b\u8f7d\uff1a<a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/12_PL_HDMI_TEST.zip\">12_PL_HDMI_TEST<\/a><\/strong><\/li>\n\n\n\n<li><strong>VIVADO\u7684\u7248\u672c\uff1a2018.3<\/strong><\/li>\n\n\n\n<li><strong>\u5de5\u7a0b\u521b\u5efa\u76ee\u5f55\uff1aE:\\Lemon_ZYNQ\\FPGA\\12_PL_HDMI_TEST<\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u6f14\u793a\u5982\u4f55\u7528PL\u903b\u8f91\u8d44\u6e90\u53bb\u9a71\u52a8\u6700\u5c0f\u7cfb\u7edf\u677f\u4e0a HDMI\u90e8\u5206\u7684\u7535\u8def\u6765\u5b9e\u73b0\u70b9\u5c4f\u7684\u64cd\u4f5c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-8372","post","type-post","status-publish","format-standard","hentry","category-lemon-zynq"],"views":925,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/8372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/comments?post=8372"}],"version-history":[{"count":11,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/8372\/revisions"}],"predecessor-version":[{"id":9244,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/8372\/revisions\/9244"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=8372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=8372"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=8372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}