{"id":10782,"date":"2025-11-22T20:53:55","date_gmt":"2025-11-22T12:53:55","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=10782"},"modified":"2025-11-25T16:05:04","modified_gmt":"2025-11-25T08:05:04","slug":"hdmi_looptest","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2025\/11\/22\/hdmi_looptest\/","title":{"rendered":"\u57fa\u4e8eSmart Artix \u7684FPGA\u5b9e\u9a8c\u5341\u4e09\u00a0\u00a0\u57fa\u4e8eFPGA\u903b\u8f91\u8d44\u6e90\u7684HDMI \u53d1\u9001\u4e0e\u63a5\u6536\u7684\u56de\u73af\u529f\u80fd\u6f14\u793a"},"content":{"rendered":"\n<p>\u672c\u6587\u6f14\u793a\u4e86\u5982\u4f55\u7528FPGA\u903b\u8f91\u8d44\u6e90\u53bb\u9a71\u52a8\u677f\u5b50\u4e0a\u7684HDMI \u53d1\u9001\u548c\u63a5\u6536\u8d44\u6e90\uff0c\u5e76\u5b9e\u73b0HDMI\u7684\u56de\u73af\u529f\u80fd\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6b64\u7ae0\u8282\u5185\u5bb9\u9002\u7528\u4e8eSmart Artix \u7684\u4e3b\u677f\uff0c\u5982\u662f\u672c\u7ad9\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<h2 class=\"wp-block-heading\"><strong>\u5b9e\u9a8c\u5177\u4f53\u5b9e\u73b0\u6d41\u7a0b\uff1a<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5b9e\u9a8c\u52063\u4e2a\u9636\u6bb5<\/strong>\uff1a<\/li>\n\n\n\n<li>\u9636\u6bb5\u4e00\uff1a HDMI IN \uff08TMDS 8B\/10B\uff09-&gt;   (IP\uff1aDVI2RGB )  -&gt;   RGB888(\u6570\u636e\u6d41)<\/li>\n\n\n\n<li>\u9636\u6bb5\u4e8c\uff1a RGB888(\u6570\u636e\u6d41)   -&gt; (IP\uff1aRGB2DVI )   -&gt;  HDMI OUT \uff08TMDS 8B\/10B\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u9636\u6bb5\u4e00 \u5176\u5b9e\u5c31\u662f\u9636\u6bb5\u4e8c\u7684\u53cd\u5411\u5b9e\u73b0\uff0c  \u6574\u4e2a\u8fc7\u7a0b\u56fe\u50cf\u6570\u636e\u6ca1\u6709\u7ecf\u8fc7\u4efb\u4f55BRAM \u6216\u8005DDR\u7684\u7f13\u5b58\uff0c\u6570\u636e\u6d41\u662f\u76f4\u8fdb\u76f4\u51fa\u7684\u3002 <\/p>\n\n\n\n<p>\u5f53\u7136\uff0c\u5982\u679c\u4f60\u9700\u8981\u5728\u6570\u636e\u6d41\u9636\u6bb5\u5bf9\u56fe\u50cf\u8fdb\u884c\u7b80\u5355\u7684\u5904\u7406\uff08\u5982\u7070\u5ea6\u6216\u4e8c\u503c\u5316\u8c03\u6574\u4e4b\u7c7b\u7684\uff09\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728 RGB888 \u7684\u6d41\u6c34\u7ebf\u9636\u6bb5\u5b8c\u6210\u8fd9\u4e9b\u64cd\u4f5c\uff1b \u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u5728 RGB888 \u9636\u6bb5\u5c06\u56fe\u50cf\u7f13\u5b58\u5230 DDR \u7b49\u7f13\u5b58\u7a7a\u95f4\u4e2d\uff0c\u4e3a\u540e\u7eed\u66f4\u590d\u6742\u7684\u5e94\u7528\u505a\u51c6\u5907\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<p><strong>HDMI \u53d1\u9001\u90e8\u5206\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"686\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-18-1024x686.png\" alt=\"\" class=\"wp-image-10665\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-18-1024x686.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-18-300x201.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-18-768x515.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-18.png 1377w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>HDMI\u63a5\u6536\u90e8\u5206\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"763\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-31-1024x763.png\" alt=\"\" class=\"wp-image-10785\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-31-1024x763.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-31-300x223.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-31-768x572.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-31.png 1305w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u91cc\u8981\u6ce8\u610f\u4e0b  HDMI\u7684RX \u4e2d\u7684 HP\u4fe1\u53f7 \u662f\u8f93\u51fa\u7684\u3002<\/p>\n\n\n\n<p>\u5982\u4e4b\u524d\u6240\u8bf4\uff0cSmart Artix \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\u56e0\u4e3a\u662fIO\u53e3\u6a21\u62df\u7684HDMI\uff0c\u6240\u4ee5 HDMI \u53d1\u9001\u548cHDMI\u63a5\u6536\u4e0d\u4e00\u5b9a\u80fd\u9002\u914d\u6240\u6709\u7684\u7535\u8111\u548c\u663e\u793a\u5668\uff0c\u5927\u5bb6\u8bf7\u81ea\u884c\u5c1d\u8bd5\uff09<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\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\u4e24\u4e2aIP\u6838<\/li>\n\n\n\n<li>RGB2DVI : \u8d1f\u8d23HDMI\u7684\u53d1\u9001<\/li>\n\n\n\n<li>DVI2RGB : \u8d1f\u8d23HDMI\u7684\u63a5\u6536<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u4e24IP\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><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><strong>\u5de5\u7a0b\u521b\u5efa\u7684\u8fc7\u7a0b\u53ef\u4ee5\u53c2\u8003\u5b9e\u9a8c\u4e00\u4e2d\u7684\u5185\u5bb9\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6\u63cf\u8ff0\u4e86\u3002<a href=\"http:\/\/www.hellofpga.com\/index.php\/2023\/04\/27\/smart-zynq_sp_sl_01_led\/\"><\/a><a href=\"http:\/\/www.hellofpga.com\/index.php\/2025\/11\/14\/led_test\/\">\u57fa\u4e8eSmart Artix \u7684FPGA\u5b9e\u9a8c\u4e00 \u7528FPGA\u8d44\u6e90\u70b9\u4eae\u4e00\u4e2aLED\uff08\u5b8c\u6574\u56fe\u6587\uff09<\/a>&nbsp;(\u82af\u7247\u578b\u53f7\u9009XC7A50TFGG484-2)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"609\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-3-1024x609.png\" alt=\"\" class=\"wp-image-10522\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-3-1024x609.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-3-300x178.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-3-768x457.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-3.png 1140w\" 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>\u4e8c\u3001\u6dfb\u52a0\u65f6\u949f\u6a21\u5757<\/strong><\/h2>\n\n\n\n<p>\u56e0\u4e3a\u6211\u4eec\u7684HDMI \u63a5\u6536\u6240\u7528\u5230\u7684 DVI2RGB\u6a21\u5757\u9700\u8981\u4e00\u4e2a200M\u7684RefClk \u6765\u9a71\u52a8\uff0c\u800c\u6211\u4eec\u677f\u5b50\u4e0a\u710a\u63a5\u7684\u6709\u6e90\u6676\u4f53\u662f50MHZ\uff0c\u8fd9\u91cc\u5c31\u9700\u8981\u7528\u65f6\u949f\u7ba1\u7406\u6a21\u5757MMCM\u6765\u751f\u6210\u6211\u4eec\u8981\u7684200Mhz\u9891\u7387<strong>\u3002<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"926\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-32-1024x926.png\" alt=\"\" class=\"wp-image-10790\" style=\"width:513px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-32-1024x926.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-32-300x271.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-32-768x694.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-32.png 1125w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u50cf\u4e0a\u4e00\u7ae0\u8282\u4e00\u6837\u6211\u4eec\u6dfb\u52a0\u4e00\u4e2a\u65f6\u949f\u6a21\u5757\u3002<\/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\u768450M\u65f6\u949f\uff0c \u53f3\u8fb9\u6539\u4e3a\u5355\u7aef\u8f93\u5165<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"660\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-11-1024x660.png\" alt=\"\" class=\"wp-image-139\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-11-1024x660.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-11-300x193.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-11-768x495.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-11.png 1342w\" 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\u6210200m<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"639\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-33.png\" alt=\"\" class=\"wp-image-10793\" style=\"width:497px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-33.png 780w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-33-300x246.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-33-768x629.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\u628alocked\u9009\u9879\u53bb\u9664\uff0c\u8fd9\u91cc\u4fdd\u7559reset\u529f\u80fd\uff0c\u4f46\u662f\u5c06reset \u529f\u80fd\u6539\u6210\u4f4e\u7535\u5e73\u590d\u4f4d\uff08Active Low\uff09\u6700\u540e\u70b9\u51fbok\u751f\u6210\u6a21\u5757<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"171\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-38.png\" alt=\"\" class=\"wp-image-10806\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-38.png 924w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-38-300x56.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-38-768x142.png 768w\" 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>\u4e09\u3001\u5bfc\u5165\u4e0b\u4e0b\u6765\u7684RGB2DVI\u6a21\u5757\u548c DVI2RGB\u6a21\u5757<\/strong><\/h2>\n\n\n\n<p><strong>\u5c06RGB2DVI\u548cDVI2RGB\u7684\u76ee\u5f55\u590d\u5236\u5230\u5de5\u7a0b\u76ee\u5f55\u4e0b<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"267\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-34.png\" alt=\"\" class=\"wp-image-10795\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-34.png 828w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-34-300x97.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-34-768x248.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\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\u548cDVI2RGB\u7684\u76ee\u5f55\uff08\u53ef\u4ee5\u6309\u4f4fCTRL\u4e00\u8d77\u9009\u4e2d\uff09\uff0c\u70b9\u51fbok<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"531\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-35-1024x531.png\" alt=\"\" class=\"wp-image-10797\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-35-1024x531.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-35-300x156.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-35-768x398.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-35.png 1122w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09 \u5bfc\u5165DVI to RGB \u7684 IP<\/p>\n\n\n\n<p>a.\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5728IP\u7ba1\u7406\u5668\u91cc\u641c\u7d22DVI \u53cc\u51fb\u5e76\u6253\u5f00DVI to RGB \u9009\u9879<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"573\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-37.png\" alt=\"\" class=\"wp-image-10804\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-37.png 753w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-37-300x228.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>b.\u8bbe\u7f6eDVI to RGB\u6a21\u5757\uff0c\u8fd9\u91cc\u6309\u4e0b\u56fe  \u4f7f\u80fdserial clock output\uff0c\u8fd9\u6837 \u5c31\u80fd\u8f93\u51fa\u50cf\u7d20\u65f6\u949f\u5916\u76845\u500d\u50cf\u7d20\u65f6\u949f\u4e86\uff0c  \u53bb\u6389Resets active high \u524d\u9762\u7684\u52fe\uff08\u7cfb\u7edf\u4e3a\u4f4e\u7535\u5e73\u590d\u4f4d\uff09\uff0c\u628a\u901f\u5ea6\u6a21\u5f0f\u5207\u6362\u62101080p\uff081920&#215;1080\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"819\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-36-1024x819.png\" alt=\"\" class=\"wp-image-10801\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-36-1024x819.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-36-300x240.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-36-768x614.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-36.png 1302w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>4\uff09\u5bfc\u5165RGB2DVI IP<\/p>\n\n\n\n<p>a .\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>b.\u8bbe\u7f6eRGB2DVI\u6a21\u5757\uff0c\u56e0\u4e3a\u6211\u4eec\u5df2\u7ecf\u5728DVI to RGB\u6a21\u5757\u4e2d\u8f93\u51fa\u4e86serial clock\uff0c\u6240\u4ee5\u4e0a\u4e00\u8282\u76845\u500d\u7684\u7f16\u7801\u65f6\u949f\u6211\u4eec\u4e0d\u9700\u8981\u989d\u5916\u518d\u751f\u6210\uff0c\u6a21\u5757\u91cc\u4e5f\u4e0d\u9700\u8981\u518d\u751f\u6210\u6a21\u5757\u65f6\u949f\uff0c\u5982\u4e0b\u56fe\u53bb\u6389\u9ad8\u7535\u5e73\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>5\uff09\u5b8c\u6210\u4e4b\u540e \u6211\u4eec\u4fbf\u5f97\u5230\u4e86\u4e09\u4e2a\u6a21\u5757<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"383\" height=\"180\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-39.png\" alt=\"\" class=\"wp-image-10808\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-39.png 383w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/image-39-300x141.png 300w\" sizes=\"auto, (max-width: 383px) 100vw, 383px\" \/><\/figure>\n\n\n\n<p><strong>\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u4e00\u4e2a\u4e8b\u60c5 RGB2DVI \u548cDVI2RGB \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>2\uff09\u521b\u5efa\u4e00\u4e2a\u9876\u5c42\u6a21\u5757 TOP_MODULE\uff0c\u5206\u522b\u4f8b\u5316\u548c\u8c03\u7528\u65f6\u949f\u3001RGB2DVI\u3001DVI2RGB\u7b49\u5b50\u6a21\u5757\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\">`timescale 1ns \/ 1ps<br>module TOP_MODULE(<br>    input CLK,<br>    input RSTn,<br>    output[2:0] TMDS_TX_DATA_p,<br>    output[2:0] TMDS_TX_DATA_n,<br>    output      TMDS_TX_CLK_p,<br>    output      TMDS_TX_CLK_n,<br>    <br>    input[2:0]  TMDS_RX_DATA_p,<br>    input[2:0]  TMDS_RX_DATA_n,<br>    input       TMDS_RX_CLK_p,<br>    input       TMDS_RX_CLK_n,<br>    inout       SDA,<br>    inout       SCL,<br>    output      HDMI_IN_HPD<br>    );<br>    <br>    assign HDMI_IN_HPD=1'b1;<br>    <br>    wire Clk_200m;<br>    wire SerialClk;<br>    wire PixelClk;<br>    clk_wiz_0 u1(<br>        .resetn(RSTn),<br>        .clk_in1(CLK),<br>        .clk_out1(Clk_200m)<br>    );<br>    <br>    wire RGB_HS,RGB_VS,RGB_DE;<br>    wire[7:0] RGB_R,RGB_G,RGB_B;<br>    <br>    rgb2dvi_0 u2(<br>        .aRst_n(RSTn),<br>        .SerialClk(SerialClk),<br>        .PixelClk(PixelClk),<br>        .TMDS_Clk_p(TMDS_TX_CLK_p),<br>        .TMDS_Clk_n(TMDS_TX_CLK_n),<br>        .TMDS_Data_p(TMDS_TX_DATA_p),<br>        .TMDS_Data_n(TMDS_TX_DATA_n),<br>        .vid_pData({RGB_R,RGB_B,RGB_G}),  <br>        .vid_pHSync(RGB_HS),<br>        .vid_pVSync(RGB_VS),<br>        .vid_pVDE(RGB_DE)<br>    );<br>    <br>    <br>    wire SDA_I,SDA_O,SDA_T,SCL_I,SCL_O,SCL_T;<br>    dvi2rgb_0 u3 (<br>      .TMDS_Clk_p(TMDS_RX_CLK_p), <br>      .TMDS_Clk_n(TMDS_RX_CLK_n),  <br>      .TMDS_Data_p(TMDS_RX_DATA_p),  <br>      .TMDS_Data_n(TMDS_RX_DATA_n),   <br>      .RefClk(Clk_200m),               <br>      .aRst_n(RSTn),                <br>      .vid_pData({RGB_R,RGB_B,RGB_G}),        <br>      .vid_pVDE(RGB_DE),  <br>      .vid_pHSync(RGB_HS), <br>      .vid_pVSync(RGB_VS), <br>      .PixelClk(PixelClk),  <br>      .SerialClk(SerialClk),   <br>      .aPixelClkLckd(), <br>      .pLocked(),            <br>      .SDA_I(SDA),     <br>      .SDA_O(SDA_O),   <br>      .SDA_T(SDA_T),       <br>      .SCL_I(SCL),    <br>      .SCL_O(SCL_O),    <br>      .SCL_T(SCL_T),    <br>      .pRst_n(RSTn)     <br>    );<br>    <br>    assign SDA = SDA_T ? 1'bz : SDA_O;   <br>    assign SCL = SCL_T ? 1'bz : SCL_O;<br><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\"># Clock Constraints<br>set_property PACKAGE_PIN Y18 [get_ports CLK]<br>set_property IOSTANDARD LVCMOS33 [get_ports CLK]<br><br># Reset Constraints (active-low reset)<br>set_property PACKAGE_PIN T20 [get_ports RSTn]<br>set_property IOSTANDARD LVCMOS33 [get_ports RSTn]<br><br># Hdmi TX Constraints<br>set_property PACKAGE_PIN C14 [get_ports {TMDS_TX_DATA_p[0]}]<br>set_property PACKAGE_PIN C13 [get_ports {TMDS_TX_DATA_p[1]}]<br>set_property PACKAGE_PIN E13 [get_ports {TMDS_TX_DATA_p[2]}]<br>set_property PACKAGE_PIN D17 [get_ports TMDS_TX_CLK_p]<br><br># Hdmi RX Constraints<br>set_property PACKAGE_PIN B21 [get_ports {TMDS_RX_DATA_p[0]}]<br>set_property PACKAGE_PIN B20 [get_ports {TMDS_RX_DATA_p[1]}]<br>set_property PACKAGE_PIN A18 [get_ports {TMDS_RX_DATA_p[2]}]<br>set_property PACKAGE_PIN C18 [get_ports TMDS_RX_CLK_p]<br><br>set_property PACKAGE_PIN D15 [get_ports SDA]<br>set_property PACKAGE_PIN E16 [get_ports SCL]<br>set_property PACKAGE_PIN D16 [get_ports HDMI_IN_HPD]<br>set_property IOSTANDARD LVCMOS33 [get_ports SDA]<br>set_property IOSTANDARD LVCMOS33 [get_ports SCL]<br>set_property IOSTANDARD LVCMOS33 [get_ports HDMI_IN_HPD]<br><br># Define the clock period <br>create_clock -period 20.000 -name CLK -waveform {0.000 10.000} [get_ports CLK]<br>create_clock -period 6.734 -name TMDS_RX_CLK_p -waveform {0.000 3.367} [get_ports TMDS_RX_CLK_p]<br><\/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<ul class=\"wp-block-list\">\n<li><strong>\u786c\u4ef6\u8fde\u63a5\u5206\u4e24\u90e8\u5206<\/strong>\n<ul class=\"wp-block-list\">\n<li>HDMI OUT\uff08\u4e3b\u677f\uff09   &#8212;>  HDMI\u6570\u636e\u7ebf  &#8212;-> HDMI \u663e\u793a\u5668<\/li>\n\n\n\n<li>HDMI IN\uff08\u4e3b\u677f\uff09      &lt;&#8212;   HDMI\u6570\u636e\u7ebf  &lt;&#8212;  HDMI\u4fe1\u53f7\u6e90\uff08\u5e26HDMI\u63a5\u53e3\u7684\u7535\u8111\u6216\u8005\u6444\u50cf\u5934\u6216\u8005\u7535\u89c6\u76d2\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u4e4b\u540e\u4e0b\u8f7d\u4ee3\u7801\uff0c\u5982\u679c\u4e00\u5207\u987a\u5229\u7684\u8bdd HDMI\u4fe1\u53f7\u6e90\u4f1a\u68c0\u6d4b\u5230\u65b0\u7684\u663e\u793a\u8bbe\u5907\uff0c\u5e76\u4e14\u5728HDMI\u663e\u793a\u5668\u4e0a\u663e\u793a\u5bf9\u5e94\u7684\u56fe\u50cf\u753b\u9762\uff08\u5982\u672a\u6210\u529f\u663e\u793a\uff0c\u53ef\u4ee5\u9002\u5f53\u8c03\u6574HDMI\u8f93\u51fa\u8bbe\u5907\u7684\u8f93\u51fa\u5206\u8fa8\u7387\uff0c\u6216\u8005\u8f93\u51fa\u7684\u8bbe\u7f6e\uff09<\/p>\n\n\n\n<p><strong>\u56e0\u4e3aHDMI OUT \u548cHDMI IN \u90fd\u662f\u7528IO\u6765\u6a21\u62dfHDMI \u4fe1\u53f7\u7684\uff0c\u6240\u4ee5\u5b58\u5728\u4e00\u5b9a\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u4e0d\u4e00\u5b9a\u9002\u914d\u6240\u6709\u7684\u663e\u793a\u5668\u548c\u6240\u6709\u7684HDMI\u8f93\u51fa\u8bbe\u5907\uff0c\u5927\u5bb6\u8bf7\u81ea\u884c\u5c1d\u8bd5<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u672c\u7ae0\u8282\u7684\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:<a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/11\/13_HDMI_TX_RX_LOOPBACK.zip\">13_HDMI_TX_RX_LOOPBACK<\/a> (Smart Artix 50T\uff09<\/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:\\Smart_Artix\\4_Code\\13_HDMI_TX_RX_LOOPBACK<\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u6f14\u793a\u4e86\u5982\u4f55\u7528FPGA\u903b\u8f91\u8d44\u6e90\u53bb\u9a71\u52a8\u677f\u5b50\u4e0a\u7684HDMI \u53d1\u9001\u548c\u63a5\u6536\u8d44\u6e90\uff0c\u5e76\u5b9e\u73b0HDMI\u7684\u56de\u73af\u529f\u80fd<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-10782","post","type-post","status-publish","format-standard","hentry","category-smart-artix"],"views":576,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/10782","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=10782"}],"version-history":[{"count":22,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/10782\/revisions"}],"predecessor-version":[{"id":10815,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/10782\/revisions\/10815"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=10782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=10782"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=10782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}