{"id":8668,"date":"2024-11-04T14:12:50","date_gmt":"2024-11-04T06:12:50","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=8668"},"modified":"2024-11-19T09:19:47","modified_gmt":"2024-11-19T01:19:47","slug":"xillinux_porting_system","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2024\/11\/04\/xillinux_porting_system\/","title":{"rendered":"Xillinux \u7279\u6b8a\u7ae0\u8282\uff1a\u5c06Xillinux \u7cfb\u7edf\u79fb\u690d\u5230\u5176\u4ed6ZYNQ\u4e3b\u677f\u4e0a"},"content":{"rendered":"\n<p>\u56e0\u4e3a\u5927\u5bb6\u624b\u4e0a\u7684ZYNQ\u5728\u786c\u4ef6\u8d44\u6e90\u4e0a\u5404\u6709\u4e0d\u540c\uff0c\u6240\u4ee5\u672c\u7ae0\u8282\u5c06\u6f14\u793a\u5982\u4f55\u5c06Xillinux \u7cfb\u7edf\u79fb\u690d\u5230\u4e0d\u540c\u7684\u4e3b\u677f\u4e0a\u3002<\/p>\n\n\n\n<p>\u7531\u4e8e\u6bcf\u4e2a\u4eba\u7684\u4f7f\u7528\u573a\u666f\u548c\u786c\u4ef6\u914d\u7f6e\u90fd\u4e0d\u76f8\u540c\uff0c\u672c\u6587\u5c06\u63d0\u4f9b\u4e00\u4e2aXillinux\u7cfb\u7edf\u79fb\u690d\u6d41\u7a0b\u7684\u53c2\u8003\u793a\u4f8b\uff0c\u4ee5\u5e2e\u52a9\u5927\u5bb6\u4e86\u89e3\u6574\u4e2a\u79fb\u690d\u8fc7\u7a0b\u3002\u81f3\u4e8e\u79fb\u690d\u7684\u6210\u529f\u4e0e\u5426\uff0c\u5927\u5bb6\u81ea\u884c\u5c1d\u8bd5\uff0c\u4e5f\u795d\u5927\u5bb6\u597d\u8fd0\uff01 \u6709\u4efb\u4f55\u95ee\u9898\u53ef\u5728\u672c\u6587\u4e0b\u65b9\u8fdb\u884c\u7559\u8a00\u3002 \u6709\u5173Xillinux\u7684\u66f4\u591a\u5185\u5bb9\u5927\u5bb6\u53ef\u4ee5\u53c2\u8003Xillinux \u7684\u5b98\u65b9\u4fe1\u606f\u3002<\/p>\n\n\n\n<p><strong>\u672c\u6587\u7684\u64cd\u4f5c\u662f\u5728vivado2018.3\u4e0a\u5b9e\u73b0\u7684\uff0c\u5982\u679c\u662f\u5176\u4ed6\u7248\u672c\u7684vivado \uff0c\u5927\u5bb6\u8bf7\u81ea\u884c\u5c1d\u8bd5\u3002<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Xillinux \u5b98\u65b9\u4fe1\u606f<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Xillinux\u7684\u5b98\u65b9\u4e3b\u9875\uff1a&nbsp;<a href=\"https:\/\/xillybus.com\/xillinux\">https:\/\/xillybus.com\/xillinux<\/a><\/li>\n\n\n\n<li>\u5165\u95e8\u6307\u5357\uff08\u4e2d\u6587\uff09\uff1a&nbsp;<a href=\"https:\/\/xillybus.com\/downloads\/doc\/zh\/xillybus_getting_started_zynq_zh.pdf\">https:\/\/xillybus.com\/downloads\/doc\/zh\/xillybus_getting_started_zynq_zh.pdf<\/a><\/li>\n\n\n\n<li>Xillybus\u7684\u6587\u6863\u9875\u9762\uff08\u6240\u6709\u6307\u5357\u90fd\u6709\u4e2d\u6587\u7ffb\u8bd1\uff09\uff1a&nbsp;<a href=\"https:\/\/xillybus.com\/doc\">https:\/\/xillybus.com\/doc<\/a><\/li>\n\n\n\n<li><strong>\u5173\u4e8e\u4f7f\u7528\u8bb8\u53ef\uff08\u82f1\u6587\uff09\uff0c\u5bf9\u4e8e\u6709\u5546\u7528\u9700\u6c42\u7684\u8bf7\u53c2\u770b\u672c\u9875<\/strong>&nbsp;\uff1a&nbsp;<a href=\"https:\/\/www.xillybus.com\/licensing\">https:\/\/www.xillybus.com\/licensing<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Xillinux\u8fd0\u884c\u7684\u786c\u4ef6\u914d\u7f6e\u63a8\u8350<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u4e3b\u82af\u7247\u662fZYNQ\u7cfb\u5217\u82af\u7247, \u53ef\u4ee5\u662f\u4efb\u610f\u578b\u53f7\u4efb\u610f\u5c01\u88c5\u3002<\/li>\n\n\n\n<li>PS\u7aef\u7684DDR\u9700\u8981\u5927\u4e8e\u7b49\u4e8e512MB<\/li>\n\n\n\n<li>\u4e00\u8defHDMI \u8f93\u51fa\u63a5\u53e3\uff08\u9700\u8981\u662fIO\u6a21\u62df\uff09<\/li>\n\n\n\n<li>\u4e00\u8defUSB HOST\u63a5\u53e3 \uff08\u5982\u6ca1\u6709USB\u529f\u80fd\u7cfb\u7edf\u4e5f\u53ef\u542f\u52a8\uff0c\u4f46\u662f\u65e0\u6cd5\u4f7f\u7528\u9f20\u6807\u952e\u76d8\u8bbf\u95ee\u684c\u9762\uff09<\/li>\n\n\n\n<li>\u4e00\u8defUART\u63a5\u53e3 \uff08PL\u6216PS\u7aef\u90fd\u53ef\u4ee5\uff09<\/li>\n\n\n\n<li>\u4e00\u8def\u5343\u5146\u7f51\u7edc   \uff08PL\u6216PS\u7aef\u90fd\u53ef\u4ee5\uff09<\/li>\n\n\n\n<li>\u4e24\u4e2a\u6216\u4e24\u4e2a\u4ee5\u4e0a\u63a5\u5728PL\u7aef\u7684LED\u6307\u793a\u706f\uff08\u975e\u5fc5\u987b\uff09<\/li>\n\n\n\n<li>\u4e24\u4e2a\u6216\u4e24\u4e2a\u4ee5\u4e0a\u63a5\u5728PL\u7aef\u7684\u6309\u952e \uff08\u975e\u5fc5\u987b\uff09<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u79fb\u690d\u7684\u5de5\u4f5c\u4ecb\u7ecd<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Kernel \uff1a\u79fb\u690d\u7684\u5de5\u4f5c\u4e0d\u6d89\u53caLinux kernel \u7684\u7f16\u8bd1\u6216\u8005\u4efb\u4f55\u76f8\u5173\u7684\u4e1c\u897f\uff0c\u56e0\u4e3a\u6240\u6709ZYNQ\u7684\u4e3b\u677f\u8fd0\u884cXillinux\u5747\u662f\u57fa\u4e8e\u76f8\u540c\u7684kernel\u3002 <\/li>\n\n\n\n<li>Vivado \u5de5\u7a0b\uff1a \u56e0\u4e3a\u6bcf\u4e00\u5757ZYNQ\u4e3b\u677f\u5728\u786c\u4ef6\u914d\u7f6e\u4e0a\u90fd\u5404\u6709\u4e0d\u540c\uff0c\u6240\u4ee5Vivado\u90e8\u5206\u6211\u4eec\u9700\u8981\u6839\u636e\u81ea\u5df1\u7684\u4e3b\u677f\u8c03\u6574\u4e3b\u677f\u7684\u578b\u53f7\uff0c\u65f6\u949f\uff0cDDR\uff0c UART\uff0c \u7f51\u7edc\uff0c\u4ee5\u53caIO\u7b49\u76f8\u5173\u529f\u80fd\u7684\u8bbe\u7f6e\u3002<\/li>\n\n\n\n<li>Boot.bin \u6587\u4ef6\uff1a \u5f53\u6211\u4eec\u7684\u5de5\u7a0b\u5728\u578b\u53f7\uff0c\u8d44\u6e90\uff0c\u65f6\u949f\u7b49\u5730\u65b9\u6709\u6240\u66f4\u6539\u7684\u65f6\u5019\uff0c\u4e3a\u4e86\u7cfb\u7edf\u53ef\u4ee5\u6b63\u5e38\u542f\u52a8\uff0c\u6211\u4eec\u4e5f\u9700\u8981\u81ea\u5df1\u91cd\u65b0\u751f\u6210Boot.bin\u6587\u4ef6\u3002<\/li>\n\n\n\n<li>device tree\u6587\u4ef6\uff1a\u7cfb\u7edf\u8d44\u6e90\u7684\u6539\u53d8\uff0c\u540c\u6837\u4e5f\u610f\u5473\u7740device tree \u9700\u8981\u505a\u5bf9\u5e94\u7684\u4fee\u6539\u3002<\/li>\n<\/ol>\n\n\n\n<p>Vivado\u793a\u4f8b\u5de5\u7a0b \u548cdevice tree\u7684\u6837\u672c\u6587\u4ef6\u90fd\u5728\u4e0b\u6587\u4e2d\u7684\u57fa\u7840boot partition kit<strong>\uff08demo bundle \u793a\u4f8b\u5305\uff09<\/strong>\u4e2d\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u5f00\u59cb\u6211\u4eec\u7684\u79fb\u690d\u5de5\u4f5c<\/strong><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u4e0b\u8f7dboot partition kit \u793a\u4f8b\u5305<\/strong><\/h2>\n\n\n\n<p>\u56e0\u4e3a\u5927\u5bb6\u7684\u786c\u4ef6\u914d\u7f6e\u5343\u5dee\u73a9\u522b\uff0c\u6240\u4ee5\u8fd9\u91cc\u7279\u522b\u63d0\u4f9b\u4e86\u4e00\u4efd\u57fa\u7840\u529f\u80fd\u7684 boot partition kit\uff08demo bundle \u793a\u4f8b\u5305\uff09\u4f9b\u5927\u5bb6\u79fb\u690d\u548c\u4fee\u6539<strong>\uff08\u793a\u4f8b\u5305\u5df2\u5c3d\u53ef\u80fd\u7cbe\u7b80\uff0c\u65b9\u4fbf\u5927\u5bb6\u66f4\u5bb9\u6613\u79fb\u690d\u9002\u914d\u5230\u5176\u4ed6\u4e3b\u677f\u4e0a\uff09<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u672c\u793a\u4f8b\u5305\u5de5\u7a0b\u5bf9\u5e94\u7684ZYNQ\u4e3b\u677f\u786c\u4ef6\u53c2\u6570\u5982\u4e0b\uff1a\n<ul class=\"wp-block-list\">\n<li>\u4e3b\u82af\u7247\u578b\u53f7: XC7Z020CLG400-1<\/li>\n\n\n\n<li>DDR3: 512MB (256M x 16bits ) MT41K256M16<\/li>\n\n\n\n<li>HDMI\u8f93\u51fa\uff1a \u63a5\u5728PL\u7aef \uff08IO \u6a21\u62df\uff09<\/li>\n\n\n\n<li>USB : USB HOST X1<\/li>\n\n\n\n<li>UART :  UARTX1(PS)  <\/li>\n\n\n\n<li>GigE \uff1a\u5343\u5146\u4ee5\u592a\u7f51 X1 \uff08RGMII\uff09\uff0cPHY \u82af\u7247 Rtl8211e<\/li>\n\n\n\n<li>LED &amp; KEY \uff1a LED X2  (PL) \uff0c KEY X2 (PL)<\/li>\n\n\n\n<li>PS \u65f6\u949f \uff1a33.33M <\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>xillinux-eval-basic \u4e0b\u8f7d\u5730\u5740\u5982\u4e0b \uff1a <a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/xillinux-eval-basic-1.0b.zip\">xillinux-eval-basic-1.0b<\/a><\/strong>  \uff08vivado \u7248\u672c\u5bf9\u5e942018.3 \u6216\u4ee5\u4e0a\uff09<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5907\u6ce8 \uff1a\u6b64demo bundle \u793a\u4f8b\u5305\u5728 Lemon Zynq\u4e3b\u677f\u7684\u793a\u4f8b\u6846\u67b6\u4e0a\u4fee\u6539\u800c\u6765\uff0cps\u8f93\u5165\u65f6\u949f\u5df2\u4fee\u6539\u6210\u4e86\u66f4\u5e38\u7528\u768433.33m\uff0c\u800cLemon Zynq \u4e0a\u4f7f\u7528\u7684PS\u65f6\u949f\u662f50M\uff0c\u6240\u4ee5\u6b64demo bundle \u5de5\u7a0b\u751f\u6210\u7684\u7ed3\u679c\u5e76\u4e0d\u80fd\u76f4\u63a5\u5e94\u7528\u5728Lemon Zynq\u7684\u4e3b\u677f\u4e0a\uff08\u9700\u8981\u5c0633.33\u4fee\u6539\u621050m \u624d\u53ef\u4ee5\uff0c  devicetree \u4e5f\u8981\u54cd\u5e94\u7684\u4fee\u6539\u621050\uff09<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u89e3\u538b\u5e76\u6253\u5f00boot partition kit \u793a\u4f8b\u5305<\/strong><\/h2>\n\n\n\n<p>1. \u89e3\u538b\u7f29\u521a\u521a\u4e0b\u8f7d\u7684\u793a\u4f8b\u538b\u7f29\u5305\uff08\u89e3\u538b\u7f29\u7684\u8def\u5f84\u4e0d\u80fd\u5e26\u6709\u4e2d\u6587\u5b57\u7b26\uff09<\/p>\n\n\n\n<p>2. \u542f\u52a8Vivado\u3002\u8bf7\u786e\u4fdd\u6240\u4f7f\u7528\u7684vivado\u7248\u672c\u662f 2018.3 \u6216\u4ee5\u4e0a\u3002<\/p>\n\n\n\n<p>3. \u6253\u5f00 Vivado\u540e , \u4ece\u4e0a\u65b9\u83dc\u5355\u680f\u4e2d\u9009\u62e9 Tools &gt; Run Tcl Script\u2026 \u3002\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u9009\u62e9\u9879\u76ee\u8def\u5f84\u4e2d\u7684 verilog\u6587\u4ef6\u5939\u4e0b\u7684xillydemo-vivado.tcl \u6587\u4ef6\u3002\u7cfb\u7edf\u5c06\u4f1a\u81ea\u52a8\u52a0\u8f7dtcl\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 Vivado\u5de5\u7a0b\uff0c\u8be5\u5de5\u7a0b\u5305\u542b\u751f\u6210bitstream\u6240\u9700\u7684\u6e90\u6587\u4ef6\u4ee5\u53ca\u5404\u79cd\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"585\" height=\"258\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-8.png\" alt=\"\" class=\"wp-image-5109\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-8.png 585w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-8-300x132.png 300w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"523\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-9-1024x523.png\" alt=\"\" class=\"wp-image-5111\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-9-1024x523.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-9-300x153.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-9-768x392.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-9.png 1114w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>4. \u5f53Vivado\u7a97\u53e3\u5e95\u90e8\u7684\u201cTcl Console\u201d\u72b6\u6001\u680f\u4e2d\u51fa\u73b0 INFO: Project created: xillydemo\uff0c \u4ee3\u8868\u5de5\u7a0b\u5df2\u7ecf\u521b\u5efa\u6210\u529f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"512\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-10.png\" alt=\"\" class=\"wp-image-5113\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-10.png 961w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-10-300x160.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-10-768x409.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001\u4fee\u6539Vivado\u5de5\u7a0b<\/strong>  <\/h2>\n\n\n\n<p>(\u8fd9\u91cc\u53ea\u9488\u5bf9\u51e0\u4e2a\u6bd4\u8f83\u5178\u578b\u9700\u8981\u4fee\u6539\u6ce8\u610f\u7684\u70b9\u8fdb\u884c\u4ecb\u7ecd\uff0c\u6709\u4e9b\u5185\u5bb9\u53ef\u80fd\u5e76\u4e0d\u9002\u7528\u4e8e\u60a8\u624b\u4e2d\u7684\u4e3b\u677f\uff0c\u8bf7\u6839\u636e\u4e0d\u540c\u7684\u914d\u7f6e\u9009\u62e9\u6027\u53c2\u8003)<\/p>\n\n\n\n<p><strong>1 \uff09\u4fee\u6539\u4e3b\u82af\u7247\u578b\u53f7<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u4e3b\u677f\u4e0a\u7684ZYNQ\u578b\u53f7\u5e76\u4e0d\u662f XC7Z020CLG400-1 \u578b\u53f7\u7684\u82af\u7247\uff0c\u8bf7\u5148\u4fee\u6539\u5de5\u7a0b\u4e2d\u82af\u7247\u7684\u5b8c\u6574\u578b\u53f7\u3002\uff08\u5982\u679c\u662f\uff0c\u5c31\u4e0d\u9700\u8981\u4fee\u6539\uff09\uff0c\u70b9\u9009Settings<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"840\" height=\"434\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image.png\" alt=\"\" class=\"wp-image-8695\" style=\"width:474px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image.png 840w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-300x155.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-768x397.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5728Project device \u4e2d\u6309\u53f3\u4fa7\u7684\u201c\u4e09\u4e2a\u70b9\u201d\u6309\u952e\uff0c\u7136\u540e\u5728\u5f39\u51fa\u7684\u754c\u9762\u4e2d\u6309\u4e0b\u56fe\u4fee\u6539\u5bf9\u5e94\u7684ZYNQ \u82af\u7247\u578b\u53f7\uff08Search \u4e2d\u8f93\u5165\u81ea\u5df1\u4e3b\u677f\u7684ZYNQ \u578b\u53f7\uff09\uff0c\u4e4b\u540e\u6309OK \u786e\u8ba4\uff0c \u7136\u540e\u5728Settings \u4e2d\u6309\u4e0bApply \u5e94\u7528\uff0c\u5e76\u6309\u4e0bOK\u9000\u51fa<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"914\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-1-1024x914.png\" alt=\"\" class=\"wp-image-8696\" style=\"width:571px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-1-1024x914.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-1-300x268.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-1-768x685.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-1.png 1225w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u5f39\u51fa\u4e0b\u5217\u83dc\u5355\uff0c\u8bf7\u70b9NO\u5c31\u53ef\u4ee5<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"993\" height=\"399\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-13.png\" alt=\"\" class=\"wp-image-8740\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-13.png 993w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-13-300x121.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-13-768x309.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u578b\u53f7\u6709\u4fee\u6539\uff0c\u9700\u8981\u5bf9\u6240\u6709\u7684IP\u6a21\u5757\u8fdb\u884c\u66f4\u65b0\uff0c Reports -&gt; Report IP Status<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"252\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-2.png\" alt=\"\" class=\"wp-image-8697\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-2.png 606w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-2-300x125.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/figure>\n\n\n\n<p>\u5728\u5f39\u51fa\u7684\u9009\u9879\u4e2d \u9009 Upgrade Selected\uff0c<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"223\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-4-1024x223.png\" alt=\"\" class=\"wp-image-8700\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-4-1024x223.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-4-300x65.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-4-768x167.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-4-1536x335.png 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-4.png 1550w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u5728\u5f39\u51fa\u7684\u754c\u9762\u4e2d\u70b9OK \u786e\u8ba4\u5373\u53ef\uff0c\u4fee\u6539\u6210\u529f<\/p>\n\n\n\n<p><strong>2\uff09\u4fee\u6539PS\u4e3b\u65f6\u949f<\/strong> \uff08BLOCK DESIGN \uff09<\/p>\n\n\n\n<p>\u5982\u679c\u4e3b\u677f\u4e0aPS\u7684\u4e3b\u65f6\u949f\u4e0d\u662f33.33Mhz\uff08ZYNQ\u4e3b\u677f\u9ed8\u8ba4\u7684PS\u65f6\u949f\u662f33.33M\uff0c\u4f46\u662f\u6709\u4e00\u4e9b\u5e02\u9762\u4e0a\u6bd4\u8f83\u706b\u7684\u4e3b\u677f\uff0c\u5982Digilent \u7684PYNQ-Z1 \uff0cTUI\u7684PYNQ-Z2\uff0c \u4ee5\u53caDigilent \u7684Arty Z7 \u7b49\u6bd4\u8f83\u6d41\u884c\u7684ZYNQ\u4e3b\u677f\u6240\u4f7f\u7528\u7684PS\u65f6\u949f\u662f50Mhz\u7684\uff09\u90a3\u8fd9\u91cc\u9700\u8981\u5bf9\u5e94\u7684\u8fdb\u884c\u4fee\u6539PS\u7684\u8f93\u5165\u65f6\u949f\u3002\uff08\u5907\u6ce8\u5982\u679c\u4fee\u6539\u4e86 PS\u7684 CLK\uff0c\u90a3\u5bf9\u5e94\u7684 Device tree \u4e2d\u4e5f\u9700\u8981\u4fee\u6539\uff09<\/p>\n\n\n\n<p>a \uff09 OPEN BLOCK DESIGN  -&gt;   \u53cc\u51fbZYNQ 7 Processing System  \u6253\u5f00Z7\u8bbe\u7f6e\u9875<\/p>\n\n\n\n<p>b \uff09 Clock Configuration  \u754c\u9762\u4e2d\u5c06 Input Frequency  \u7531\u9ed8\u8ba4\u768433.333333 \u4fee\u6539\u6210\u4e3b\u677f\u5bf9\u5e94\u7684PS\u65f6\u949f<\/p>\n\n\n\n<p>c\uff09\u4fee\u6539\u4e86\u4e3b\u65f6\u949f\u4e4b\u540e\uff0c\u5bf9\u5e94\u7684 Device tree \u4e2d\u4e5f\u9700\u8981\u4fee\u6539\u5bf9\u5e94\u7684\u5185\u5bb9\uff0c \u4e0b\u6587\u4e2d\u4f1a\u4ecb\u7ecd\u5230\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"925\" height=\"546\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-5.png\" alt=\"\" class=\"wp-image-8703\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-5.png 925w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-5-300x177.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-5-768x453.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 DDR\u7684\u4fee\u6539 <\/strong><\/p>\n\n\n\n<p>\u5404\u5bb6\u7684\u4e3b\u677f DDR \u7684\u578b\u53f7 \u548c\u5bb9\u91cf\u901a\u5e38\u4e0d\u540c\uff0c \u6309\u7167\u5b9e\u9645\u677f\u5b50\u4e0a\u7684\u578b\u53f7\uff08\u6216\u8005\u517c\u5bb9\u7684\u578b\u53f7\uff09\u8fdb\u884c\u4fee\u6539\uff08\u8fd9\u5757\u4e0d\u6e05\u695a\u7684\u53ef\u4ee5\u8be2\u95ee\u4e3b\u677f\u751f\u4ea7\u5382\u5546\uff09\uff0c\u4f4d\u5bbd\u6309\u5b9e\u9645\u7684\u586b\uff0c\u5982\u679c\u662f\u5355\u9897\u7c92DDR\u4e00\u822c\u662f16bit\uff0c\u5982\u679c\u662f\u53cc\u9897\u7c92DDR\u4e00\u822c\u662f32bit\uff08\u5982\u679cDDR\u7684\u5bb9\u91cf\u6709\u4fee\u6539\uff0c\u90a3\u4e48 devicetree \u4e2d\u4e5f\u5bf9\u5e94\u9700\u8981\u8fdb\u884c\u5bb9\u91cf\u7684\u8c03\u6574\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"702\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-6-1024x702.png\" alt=\"\" class=\"wp-image-8706\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-6-1024x702.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-6-300x206.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-6-768x527.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-6.png 1257w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>4\uff09 \u4fee\u6539PS\u90e8\u5206BANK 1 I\/O \u7684BANK\u7535\u538b(BANK 501)<\/strong><\/p>\n\n\n\n<p>\u8fd9\u90e8\u5206\u7684\u8bbe\u7f6e\u4f1a\u5bf9SD\u5361\uff0c\u7f51\u7edc \uff0cUSB\u90e8\u5206\u529f\u80fd\u7684\u7a33\u5b9a\u6027\u4ea7\u751f\u5f71\u54cd\uff0c\u6240\u4ee5\u9700\u8981\u5c06\u8fd9\u90e8\u5206\u7535\u538b\u6309\u7167\u4e3b\u677f\u5b9e\u9645\u7684BANK\u7535\u538b\u5148\u8fdb\u884c\u8bbe\u7f6e\u3002\uff08\u53ef\u4ee5\u67e5\u8be2\u4e3b\u677f\u7684\u539f\u7406\u56fe\uff0c\u6216\u8005\u8be2\u95ee\u4e3b\u677f\u7684\u751f\u4ea7\u5382\u5546\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"414\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-10-1024x414.png\" alt=\"\" class=\"wp-image-8715\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-10-1024x414.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-10-300x121.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-10-768x311.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-10.png 1199w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>5\uff09UART\u7684\u8bbe\u7f6e<\/strong><\/p>\n\n\n\n<p><strong>UART\u90e8\u5206\uff0c\u4e0d\u8bba\u4f7f\u7528\u7684\u662fUART0,  \u53c8\u6216\u8005\u662fUART1\uff0c \u8bf7\u90fd\u4fdd\u7559\u4e24\u79cdUART\u63a5\u53e3\u7684\u4f7f\u80fd\u72b6\u6001\u90fd\u662f\u5f00\u542f\u7684<\/strong>\uff08\u5982\u679c\u7981\u7528\u4e86\u67d0\u4e00\u4e2aUART\u53e3\uff0c\u6709\u53ef\u80fd\u4f1a\u51fa\u73b0\u7cfb\u7edf\u542f\u52a8\u5931\u8d25\u7684\u60c5\u51b5\uff0c\u8fd9\u70b9\u9700\u8981\u6ce8\u610f\uff09\u3002 \u5bf9\u4e8e\u7528\u4e0d\u5230\u7684UART\u53e3\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u5de5\u7a0b\u4e2d\u5c06\u7528\u4e0d\u5230\u7684uart\u7aef\u53e3\u6620\u5c04\u5230\u6ca1\u6709\u4f7f\u7528\u5230\u7684MIO\u5373\u53ef\u3002<\/p>\n\n\n\n<p>a ) UART \u63a5\u5728PS\u7aef<\/p>\n\n\n\n<p>\u5047\u8bbe\u7535\u8def\u4e0a\u7684UART\u4f7f\u7528\u7684\u662fmio 14-15\u811a\uff0c\u90a3\u4e48\u5728\u8bbe\u7f6e\u754c\u9762\uff0c\u53ea\u9700\u8981 \u52fe\u9009\u4e0aUART0 \uff0c\u7136\u540e \u5728IO\u680f\u91cc\u9009\u62e9MIO 14-15\u5373\u53ef \uff0c \u5207\u8bb0UART 1\u4e5f\u5fc5\u987b\u52fe\u9009\u4e0a\uff08\u53ef\u4ee5\u5c06UART 1\u6620\u5c04\u5230\u6ca1\u6709\u4f7f\u7528\u7684MIO\uff09\uff0c\u5982\u679c\u786c\u4ef6\u4e0a\u5bf9\u5e94\u7684\u4e32\u53e3mio \u63a5\u5728UART1\u7aef\uff0c\u64cd\u4f5c\u4e5f\u662f\u76f8\u540c\u7684\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"981\" height=\"446\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-7.png\" alt=\"\" class=\"wp-image-8709\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-7.png 981w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-7-300x136.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-7-768x349.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>b \uff09 UART \u63a5\u5728PL\u7aef <\/p>\n\n\n\n<p>\u5047\u8bbe\u7535\u8def\u4e0a\u7684UART \u662f\u63a5\u5728PL\u7aef\u7684\uff0c \u8fd9\u91cc\u76f4\u63a5\u5c06 UART 0 \u5bf9\u5e94\u7684IO \u4fee\u6539\u6210EMIO \u8f93\u51fa\u5373\u53ef\u3002 \u5207\u8bb0UART 1\u4e5f\u5fc5\u987b\u52fe\u9009\u4e0a\uff08\u53ef\u4ee5\u5c06UART 1\u6620\u5c04\u5230\u6ca1\u6709\u4f7f\u7528\u7684MIO\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"972\" height=\"308\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-8.png\" alt=\"\" class=\"wp-image-8710\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-8.png 972w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-8-300x95.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-8-768x243.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u662f\u63a5\u5728PL\u7684\u60c5\u51b5\uff0c\u90a3\u8bb0\u4fdd\u5b58\u8bbe\u7f6e\u540e \u53f3\u952eZ7\u7684UART\u53e3\uff0c\u7136\u540e\u70b9\u9009External \uff0c\u5c06UART\u8d44\u6e90\u5f15\u51fa<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"450\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-9-1024x450.png\" alt=\"\" class=\"wp-image-8712\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-9-1024x450.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-9-300x132.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-9-768x338.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-9.png 1067w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>6 \uff09 \u7f51\u7edc\u8bbe\u7f6e<\/strong><\/p>\n\n\n\n<p>\u7f51\u7edc\u8bbe\u7f6e\u4e5f\u548c\u4e32\u53e3\u4e00\u6837\uff0c\u5206\u4e24\u79cd\u60c5\u51b5 a )\u63a5 PS\u7aef\uff0c  b )\u63a5PL\u7aef\uff0c \u63a5PL\u7aef\u4f1a\u76f8\u5bf9\u6bd4\u8f83\u590d\u6742\u3002\u5907\u6ce8\uff0c\u8fd9\u91cc\u90fd\u662f\u9488\u5bf9rgmii \u7684\u5343\u5146\u63a5\u53e3\u7684phy\u6765\u4ecb\u7ecd\u7684\uff0c \u5982\u679c\u662f\u5176\u4ed6\u63a5\u53e3\u6216\u8005\u767e\u5146phy\u5927\u5bb6\u81ea\u884c\u5c1d\u8bd5\u3002<\/p>\n\n\n\n<p>a ) \u5343\u5146PHY \u82af\u7247\u63a5\u5728PS\u7aef \uff0c \u4f7f\u80fdENET0 \u548c MDIO \uff0c\u7136\u540e\u5728IO\u7aef\u9009\u62e9\u5bf9\u5e94\u7684MIO \u7aef\u53e3\uff08\u548c\u4e3b\u677f\u9700\u8981\u5bf9\u5e94\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"350\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-11.png\" alt=\"\" class=\"wp-image-8725\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-11.png 859w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-11-300x122.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-11-768x313.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u786c\u4ef6\u4e0a\u7f51\u7edcPHY\u7684Reset \u4fe1\u53f7\u63a5\u5728PS\u7aef\uff0c\u53ef\u4ee5\u4f7f\u80fdGPIO MIO\u529f\u80fd\uff0c\u518d\u5bf9ENET0 reset\u811a\u8fdb\u884c\u8bbe\u7f6e\u3002\u5982\u679cPHY\u82af\u7247\u7684\u8fd9\u4e2aReset\u4fe1\u53f7\u5728\u786c\u4ef6\u4e0a\u540c\u6837\u63a5\u6709RC\u4e0a\u7535\u590d\u4f4d\uff0c\u90a3\u8fd9\u90e8\u5206\u4e0d\u8bbe\u7f6e\u4e5f\u662f\u53ef\u4ee5\u7684\uff08\u4f46\u662f\u8981\u786e\u786e\u4fdd\u5de5\u4f5c\u65f6reset\u811a\u7684\u7535\u5e73\u9ad8\u4e8e PHY\u82af\u7247datasheet \u4e0a\u7684Reset\u5f15\u811a Vih \u7535\u538b\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"311\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-55-1024x311.png\" alt=\"\" class=\"wp-image-7620\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-55-1024x311.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-55-300x91.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-55-768x233.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-55.png 1412w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5982\u679cPHY\u662f\u63a5PS MIO\u7aef\u7684\uff0c\u8fd8\u9700\u8981\u68c0\u67e5\u7f51\u7edc\u65f6\u949f\u90e8\u5206\u7684\u8bbe\u7f6e\u4ee5\u514d\u6700\u540e\u4e0d\u80fd\u8bbf\u95ee\u7f51\u7edc\uff0c\u8fd9\u91ccENET0 \u7684Clock Source<strong>&nbsp;\u4e00\u5b9a\u8981\u662fIO PLL<\/strong> \uff08Clock Configuration \u754c\u9762\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"400\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-114-1024x400.png\" alt=\"\" class=\"wp-image-8430\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-114-1024x400.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-114-300x117.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-114-768x300.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-114.png 1059w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>b ) \u5343\u5146PHY \u82af\u7247\u63a5\u5728PL\u7aef<\/p>\n\n\n\n<p>\u8fd9\u91cc\u628aENET0\u901a\u8fc7EMIO\u5f15\u51fa\u6765 ,\u5e76\u4e14\u9009\u4e2dMDIO\u529f\u80fd(\u4e5f\u7528EMIO\u65b9\u5f0f)\uff0c\u4e4b\u540e\u70b9\u9009OK \u6765\u4fdd\u5b58ZYNQ\u7684\u914d\u7f6e<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"663\" height=\"194\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-125.png\" alt=\"\" class=\"wp-image-1370\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-125.png 663w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-125-300x88.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/figure>\n\n\n\n<p>\u540c\u6837\u7684\uff0c1.\u5982\u679c\u786c\u4ef6\u4e0a\u7f51\u7edcPHY\u7684Reset \u4fe1\u53f7\u63a5\u5728PS\u7aef\uff0c\u53ef\u4ee5\u4f7f\u80fdGPIO MIO\u529f\u80fd\uff0c\u518d\u5bf9ENET0 reset\u811a\u8fdb\u884c\u8bbe\u7f6e\u3002\u5982\u679cPHY\u82af\u7247\u7684\u8fd9\u4e2aReset\u4fe1\u53f7\u5728\u786c\u4ef6\u4e0a\u540c\u6837\u63a5\u6709RC\u4e0a\u7535\u590d\u4f4d\uff0c\u90a3\u8fd9\u90e8\u5206\u4e0d\u8bbe\u7f6e\u4e5f\u662f\u53ef\u4ee5\u7684\uff08\u4f46\u662f\u8981\u786e\u786e\u4fdd\u5de5\u4f5c\u65f6reset\u811a\u7684\u7535\u5e73\u9ad8\u4e8e PHY\u82af\u7247datasheet \u4e0a\u7684Reset\u5f15\u811a Vih \u7535\u538b\uff09\uff0c2.\u5982\u679c\u8fd9\u4e2aReset\u4fe1\u53f7\u63a5 PL\u7aef\u7684\u8bdd\uff0c\u60c5\u51b5\u4e5f\u7c7b\u4f3c\uff0c\u53ef\u4ee5\u4eba\u4e3a\u5728PL\u7aef\u7ed9\u590d\u4f4d\u903b\u8f91\uff0c\u4e5f\u53ef\u4ee5\u4e0d\u63a5\uff08\u524d\u63d0\u548c1\u4e00\u81f4\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"311\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-55-1024x311.png\" alt=\"\" class=\"wp-image-7620\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-55-1024x311.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-55-300x91.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-55-768x233.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-55.png 1412w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5982\u679cPHY\u662f\u63a5PL \u7aef\u7528EMIO\u65b9\u5f0f\u7684\uff0c\u90a3\u8fd9\u91cc\u7684ENET0 \u7684Clock Source<strong>\u00a0<\/strong>\u4f1a\u53d8\u6210External\uff0c\u8fd9\u91cc\u548c\u63a5\u5728MIO\u65b9\u5f0f\u7684\u662f\u4e0d\u540c\u7684\uff08Clock Configuration \u754c\u9762\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"994\" height=\"453\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-23.png\" alt=\"\" class=\"wp-image-8815\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-23.png 994w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-23-300x137.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-23-768x350.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u7531\u4e8e ZYNQ\u7684PS \u8c03\u7528EMIO\u65b9\u5f0f \u9ed8\u8ba4\u8f93\u51fa\u662fGMII,\u800c\u6211\u4eec\u4fee\u6539\u7684\u76ee\u6807\u5343\u5146phy\u662fRGMII\u63a5\u53e3\u7684\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u9700\u8981\u589e\u52a0\u4e00\u4e2a GMII\u548cRGMII\u8f6c\u6362\u7684IP\u6a21\u5757 \uff08Gmii to Rgmii\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"469\" height=\"283\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-126.png\" alt=\"\" class=\"wp-image-1372\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-126.png 469w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-126-300x181.png 300w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/figure>\n\n\n\n<p>\u6253\u5f00 GMII TO RGMII\u6a21\u5757 \u8bbe\u7f6e\u66f4\u6539\u6210\u4e0b\u9762<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"459\" height=\"374\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-127.png\" alt=\"\" class=\"wp-image-1373\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-127.png 459w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-127-300x244.png 300w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"479\" height=\"378\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-128.png\" alt=\"\" class=\"wp-image-1374\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-128.png 479w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-128-300x237.png 300w\" sizes=\"auto, (max-width: 479px) 100vw, 479px\" \/><\/figure>\n\n\n\n<p>\u53c8\u56e0\u4e3aGMII TO RGMII \u662f\u9ad8\u7535\u5e73\u590d\u4f4d \uff0c\u4f46\u662fZYNQ \u662f\u8f93\u51fa\u4f4e\u7535\u5e73\u590d\u4f4d\u7684\uff0c\u6240\u4ee5\u8fd9\u91cc\u9700\u8981\u589e\u52a0\u4e00\u4e2a\u53cd\u76f8\u5668\uff08\u641c\u7d22utility, \u5728\u68c0\u7d22\u51fa\u6765\u7684\u9009\u9879\u91cc \u9009\u62e9 utility vector logic\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"599\" height=\"449\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-129.png\" alt=\"\" class=\"wp-image-1375\" style=\"width:569px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-129.png 599w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-129-300x225.png 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/figure>\n\n\n\n<p>\u5728\u8bbe\u7f6e\u9875\u91cc\u6539\u6210 not\uff08\u53cd\u76f8\u5668\uff09\u5c06\u4f4d\u5bbd\u6539\u62101<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"446\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-130.png\" alt=\"\" class=\"wp-image-1376\" style=\"width:562px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-130.png 700w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-130-300x191.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>\u6309\u4e0b\u56fe\u65b9\u5f0f\u8fde\u63a5\u597d\u5404\u4e2a\u6a21\u5757\uff08\u590d\u4f4d \u65f6\u949f \u7f51\u7edc\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"493\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/763a6abfdf1cab6eca124eaf19c804b-1024x493.jpg\" alt=\"\" class=\"wp-image-8728\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/763a6abfdf1cab6eca124eaf19c804b-1024x493.jpg 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/763a6abfdf1cab6eca124eaf19c804b-300x144.jpg 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/763a6abfdf1cab6eca124eaf19c804b-768x370.jpg 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/763a6abfdf1cab6eca124eaf19c804b-1536x739.jpg 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/763a6abfdf1cab6eca124eaf19c804b.jpg 1668w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5e76\u901a\u8fc7\u53f3\u952e \u7136\u540e\u9009\u62e9Make external \u7684\u65b9\u5f0f\u5f15\u51faRGMII \u548cMDIO_PHY\u529f\u80fd\u5f15\u811a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"428\" height=\"161\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-133.png\" alt=\"\" class=\"wp-image-1379\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-133.png 428w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-133-300x113.png 300w\" sizes=\"auto, (max-width: 428px) 100vw, 428px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u91cc\u8fd8\u8981\u5bf9Z7\u7684\u6a21\u5757\u8fdb\u884c\u4e00\u4e2a\u4fee\u6539\uff0c\u56e0\u4e3agmii to rgmii \u6a21\u5757\u7684clkin \u5728\u624b\u518c\u4e0a\u5199\u8981\u6c42\u662f200mhz\uff0c\u6240\u4ee5\u6211\u4eec\u8fd9\u91cc\u9700\u8981\u5bf9ZYNQ\u6838\u7684\u8f93\u51fa\u65f6\u949f\u9891\u7387\u8fdb\u884c\u4fee\u6539<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"518\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-135.png\" alt=\"\" class=\"wp-image-1381\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-135.png 938w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-135-300x166.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-135-768x424.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u91cd\u65b0\u53cc\u51fbZYNQ\u7684\u6838\uff0c\u5c06FCLK_CLK0\u7684\u9891\u7387\u6539\u6210200 \uff08demo \u4e2d\u7684\u5de5\u7a0b\u9ed8\u8ba4\u5c31\u662f200M\u4e86\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1012\" height=\"406\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-12.png\" alt=\"\" class=\"wp-image-8729\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-12.png 1012w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-12-300x120.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-12-768x308.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5230\u6b64\uff0cBlock Design \u4e3b\u8981\u7684\u4fee\u6539\u90e8\u5206\u5df2\u7ecf\u5b8c\u6210<\/p>\n\n\n\n<p><strong>8) \u5173\u4e8eBlock Automation<\/strong><\/p>\n\n\n\n<p>\u5efa\u8bae\u5728\u6b63\u786e\u8fde\u63a5\u597d\u5fc5\u8981\u7684\u4fe1\u53f7\u7ebf\u4e4b\u540e\uff0c\u4e0d\u8981\u4f7f\u7528Block Automation\u529f\u80fd\uff0c\u5f53\u4f7f\u7528 Block Automation\u65f6\uff0c\u67d0\u4e9b\u4fe1\u53f7\u4f1a\u4f5c\u4e3a block design\u7684 ports \uff08GPIO_0\u3001 DDR \u548cFIXED_IO\uff09\u8fdb\u884c\u8fde\u63a5\u3002\u7136\u800c\u4e0d\u7ba1\u4f60\u662f\u5426\u5c06\u8fd9\u4e9b\u4fe1\u53f7\u5f15\u51fa\uff0c\u8fd9\u4e9b\u4fe1\u53f7\u5728\u7269\u7406\u5c42\u9762\u90fd\u662f\u548c\u82af\u7247\u7684IO\u786c\u4ef6\u8fde\u63a5\u7684\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u4fe1\u53f7\u5c5e\u4e8e PS\u672c\u8eab\u3002\u56e0\u6b64\uff0c\u5728\u8bbe\u8ba1\u4e2d\u4e0d\u5f15\u51fa\u8fd9\u4e9b\u4fe1\u53f7\uff0c\u53cd\u800c\u4f1a\u8ba9\u7a0b\u5e8f\u770b\u8d77\u6765\u66f4\u4e3a\u7b80\u6d01\u3002<\/p>\n\n\n\n<p><strong>9) \u4fee\u6539\u9876\u5c42\u6587\u4ef6  xillydemo.v<\/strong>  (\u8fd9\u90e8\u5206\u5185\u5bb9\u8bf7\u7ed3\u5408\u5b9e\u9645\u7684Block Design \u7684\u6539\u52a8\u6765\u8fdb\u884c\u4fee\u6539)<\/p>\n\n\n\n<p>a) \u5982\u679c\u677f\u5b50\u4e0a\u7684\u7f51\u7edc \u548c UART \u4e24\u4e2a\u529f\u80fd\u662f\u8fde\u63a5\u5728PS \u7684MIO\u7aef \uff0c\u90a3<strong>xillydemo.v<\/strong>\u4e0d\u9700\u8981\u5927\u7684\u4fee\u6539\uff0c \u4ec5\u6839\u636e\u4f60\u7684\u9700\u6c42\u4fee\u6539LED , GPIO \u7b49\u5373\u53ef\u3002 <strong>\uff08xillydemo.v<\/strong>\u4e0a\u7684 IO\u53e3\u591a\u6570\u662f\u9884\u7559\u7684\uff09<\/p>\n\n\n\n<p>b\uff09\u5982\u679c\u677f\u5b50\u7684UART\u662f\u63a5\u5728PL\u7aef\uff0c \u90a3\u7a0b\u5e8f\u4e0a\u9700\u8981\u589e\u52a0UART\u7684\u7aef\u53e3\u5b9a\u4e49 \uff0c\u4ee5\u53ca\u548cBD\u6a21\u5757\u7684\u4fe1\u53f7\u8fde\u63a5\u90e8\u5206\u3002<\/p>\n\n\n\n<p>\u5728\u6a21\u5757\u7aef\u53e3\u5b9a\u4e49\u5904 \u589e\u52a0\u4e0b\u5217\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">  input  uart_rxd,<br>  output uart_txd,<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"460\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-14.png\" alt=\"\" class=\"wp-image-8744\" style=\"width:477px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-14.png 649w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-14-300x213.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\n\n\n\n<p>\u5728  vivado_system vivado_system_i \u7684\u6a21\u5757\u4f8b\u5316\u5185\u5bb9\u4e2d\uff0c\u6dfb\u52a0\u4e0b\u5217\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">      .UART_0_0_rxd(uart_rxd),\n      .UART_0_0_txd(uart_txd)<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"264\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-15.png\" alt=\"\" class=\"wp-image-8745\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-15.png 742w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-15-300x107.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>c ) \u540c\u7406\u5982\u679c\u677f\u5b50\u7684\u5343\u5146\u7f51\u7edcPHY\u82af\u7247\u662f\u63a5\u5728PL\u7aef\uff0c \u90a3\u7a0b\u5e8f\u4e0a\u9700\u8981\u589e\u52a0RGMII\u7684\u7aef\u53e3\u5b9a\u4e49 \uff0c\u4ee5\u53ca\u548cBD\u6a21\u5757\u7684\u4fe1\u53f7\u8fde\u63a5\u90e8\u5206\u3002<\/p>\n\n\n\n<p>\u5728\u6a21\u5757\u7aef\u53e3\u5b9a\u4e49\u5904 \u589e\u52a0\u4e0b\u5217\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">  output MDIO_PHY_mdc,<br>  inout  MDIO_PHY_mdio_io,<br>  input  [3:0]RGMII_rd,<br>  input  RGMII_rx_ctl,<br>  input  RGMII_rxc,<br>  output [3:0]RGMII_td,<br>  output RGMII_tx_ctl,<br>  output RGMII_txc,<\/pre>\n\n\n\n<p>\u4e3aMDIO \u6dfb\u52a0 iobuf \u6a21\u5757<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   wire MDIO_PHY_mdio_i, MDIO_PHY_mdio_o, MDIO_PHY_mdio_t;<br>   IOBUF MDIO_PHY_0_mdio_iobuf<br>     (.I(MDIO_PHY_mdio_o),<br>      .IO(MDIO_PHY_mdio_io),<br>      .O(MDIO_PHY_mdio_i),<br>      .T(MDIO_PHY_mdio_t));<\/pre>\n\n\n\n<p>\u5728  vivado_system vivado_system_i \u7684\u6a21\u5757\u4f8b\u5316\u5185\u5bb9\u4e2d\uff0c\u6dfb\u52a0\u4e0b\u5217\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\t\t  .MDIO_PHY_0_mdc(MDIO_PHY_mdc),<br>\t\t  .MDIO_PHY_0_mdio_i(MDIO_PHY_mdio_i),<br>\t\t  .MDIO_PHY_0_mdio_o(MDIO_PHY_mdio_o),<br>\t\t  .MDIO_PHY_0_mdio_t(MDIO_PHY_mdio_t),<br>\t\t  .RGMII_0_rd(RGMII_rd),<br>\t\t  .RGMII_0_rx_ctl(RGMII_rx_ctl),<br>\t\t  .RGMII_0_rxc(RGMII_rxc),<br>\t\t  .RGMII_0_td(RGMII_td),<br>\t\t  .RGMII_0_tx_ctl(RGMII_tx_ctl),<br>\t\t  .RGMII_0_txc(RGMII_txc),<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"516\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-17.png\" alt=\"\" class=\"wp-image-8748\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-17.png 804w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-17-300x193.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-17-768x493.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>c \uff09\u5269\u4e0b\u7684\u4f8b\u5982 J5, J6 \u662f\u8fde\u63a5\u5230\u6392\u9488\u7684\u7aef\u53e3\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u4f7f\u7528\u60c5\u51b5\u8fdb\u884c\u4fee\u6539\u548c\u5220\u51cf\uff0c clk_50\u662fPL\u7684\u65f6\u949f\u8f93\u5165\uff0c\u5b9e\u9645\u5e76\u672a\u4f7f\u7528\u4ec5\u4f5c\u9884\u7559\u3002<\/p>\n\n\n\n<p>10\uff09\u4fee\u6539XDC\u7ea6\u675f\u6587\u4ef6<\/p>\n\n\n\n<p>a ) \u8fd9\u91cc\u5305\u542b\u65f6\u5e8f\u7ea6\u675f\u548c \u7ba1\u811a\u7ea6\u675f\uff0c \u5982\u679cxillydemo.v\u6539\u52a8\u4e0d\u662f\u5f88\u5927\uff0c \u90a3\u53ea\u9700\u8981\u53c2\u8003xillydemo.xdc <strong>\u5c06\u91cc\u9762\u6240\u6709\u7528\u5230\u7684\u4fe1\u53f7\u7684\u7ba1\u811a\u53f7\u4fee\u6539\u6210\u548c\u4e3b\u677f\u5339\u914d\u7684\u7ba1\u811a\u53f7\u5373\u53ef<\/strong>\u3002<\/p>\n\n\n\n<p>b ) \u5982\u679c\u4e3b\u677f\u7684\u4e32\u53e3\u662fEMIO\u65b9\u5f0f\u8fde\u63a5\u5230PL\u7684\uff0c\u5e76\u4e14\u5728xillydemo.v\u4e2d\u4e5f\u589e\u52a0\u4e86\u4e32\u53e3\u7684\u76f8\u5e94\u90e8\u5206\u5185\u5bb9\uff0c\u90a3\u5728xdc\u7ea6\u675f\u4e2d\u589e\u52a0\u4e0b\u5217\u4e32\u53e3\u5f15\u811a\u7684\u7ea6\u675f<strong>\uff08\u5176\u4e2d\u7684\u7ba1\u811a\u53f7\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">set_property -dict {PACKAGE_PIN M17 IOSTANDARD LVCMOS33} [get_ports uart_rxd]<br>set_property -dict {PACKAGE_PIN L17 IOSTANDARD LVCMOS33} [get_ports uart_txd]<\/pre>\n\n\n\n<p>c \uff09\u5982\u679c\u4e3b\u677f\u7684\u7f51\u7edc\u662fEMIO\u65b9\u5f0f\u8fde\u63a5\u5230PL\u7684\uff0c\u5e76\u4e14\u5728xillydemo.v\u4e2d\u4e5f\u589e\u52a0\u4e86\u4e32\u53e3\u7684\u76f8\u5e94\u90e8\u5206\u5185\u5bb9\uff0c\u90a3\u5728xdc\u7ea6\u675f\u4e2d\u589e\u52a0\u4e0b\u5217\u4e32\u53e3\u5f15\u811a\u7684\u7ea6\u675f<strong>\uff08\u5176\u4e2d\u7684\u7ba1\u811a\u53f7\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># RGMII PHY<br>set_property -dict {PACKAGE_PIN G21 IOSTANDARD LVCMOS33} [get_ports MDIO_PHY_mdc]<br>set_property -dict {PACKAGE_PIN H22 IOSTANDARD LVCMOS33} [get_ports MDIO_PHY_mdio_io]<br>set_property -dict {PACKAGE_PIN A22 IOSTANDARD LVCMOS33} [get_ports {RGMII_rd[0]}]<br>set_property -dict {PACKAGE_PIN A18 IOSTANDARD LVCMOS33} [get_ports {RGMII_rd[1]}]<br>set_property -dict {PACKAGE_PIN A19 IOSTANDARD LVCMOS33} [get_ports {RGMII_rd[2]}]<br>set_property -dict {PACKAGE_PIN B20 IOSTANDARD LVCMOS33} [get_ports {RGMII_rd[3]}]<br>set_property -dict {PACKAGE_PIN A21 IOSTANDARD LVCMOS33} [get_ports RGMII_rx_ctl]<br>set_property -dict {PACKAGE_PIN B19 IOSTANDARD LVCMOS33} [get_ports RGMII_rxc]<br>set_property -dict {PACKAGE_PIN E21 IOSTANDARD LVCMOS33} [get_ports {RGMII_td[0]}]<br>set_property -dict {PACKAGE_PIN F21 IOSTANDARD LVCMOS33} [get_ports {RGMII_td[1]}]<br>set_property -dict {PACKAGE_PIN F22 IOSTANDARD LVCMOS33} [get_ports {RGMII_td[2]}]<br>set_property -dict {PACKAGE_PIN G20 IOSTANDARD LVCMOS33} [get_ports {RGMII_td[3]}]<br>set_property -dict {PACKAGE_PIN G22 IOSTANDARD LVCMOS33} [get_ports RGMII_tx_ctl]<br>set_property -dict {PACKAGE_PIN D21 IOSTANDARD LVCMOS33} [get_ports RGMII_txc]<br>set_property SLEW FAST [get_ports {RGMII_td[0]}]<br>set_property SLEW FAST [get_ports {RGMII_td[1]}]<br>set_property SLEW FAST [get_ports {RGMII_td[2]}]<br>set_property SLEW FAST [get_ports {RGMII_td[3]}]<br>set_property SLEW FAST [get_ports RGMII_tx_ctl]<br>set_property SLEW FAST [get_ports RGMII_txc]<\/pre>\n\n\n\n<p>\u540c\u65f6\uff0c\u5728\u65f6\u5e8f\u7ea6\u675f\u7684\u5730\u65b9\u4e5f\u9700\u8981\u4fee\u6539\u6210\u4e0b\u5217\u5185\u5bb9\uff08\u589e\u52a0\u7f51\u7edc\u90e8\u5206\u7684\u65f6\u5e8f\u7ea6\u675f\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">set_clock_groups -asynchronous \\<br>  -group [get_clocks -include_generated_clocks clk_fpga_0] \\<br>  -group [get_clocks -include_generated_clocks clk_fpga_1] \\<br>  -group [get_clocks -include_generated_clocks clk_fpga_2] \\<br>  -group [get_clocks -include_generated_clocks clk_50] \\<br>  -group [get_clocks -include_generated_clocks RGMII_rxc]<\/pre>\n\n\n\n<p>d \uff09\u5269\u4e0b\u7684\u4f8b\u5982 J5, J6 \u662f\u8fde\u63a5\u5230\u6392\u9488\u7684\u7aef\u53e3\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u4f7f\u7528\u60c5\u51b5\u8fdb\u884c\u4fee\u6539\u548c\u5220\u51cf\uff0c clk_50\u662fPL\u7684\u65f6\u949f\u8f93\u5165\uff0c\u5b9e\u9645\u5e76\u672a\u4f7f\u7528\u4ec5\u4f5c\u9884\u7559\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u5bf9Vivado \u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1\u548c\u7efc\u5408\uff0c\u5f97\u5230bit\u6587\u4ef6<\/strong><\/h2>\n\n\n\n<p>\u5b8c\u6210\u4e0a\u8ff0\u64cd\u4f5c\u540e\uff0c\u5c31\u53ef\u4ee5\u5bf9\u6574\u4e2avivado \u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1\u548c\u7efc\u5408\u4e86\uff0c\u5e76\u6700\u7ec8\u751f\u6210bitstream\u6587\u4ef6\u3002 \u8fd9\u4e2a\u8fc7\u7a0b\u5c06\u6301\u7eed\u51e0\u5206\u949f\u3002\u6b63\u5e38\u60c5\u51b5\u4e0b\u4e0d\u5e94\u8be5\u51fa\u73b0\u4efb\u4f55\u9519\u8bef\u6216\u4e25\u91cd\u7684\u8b66\u544a\uff08Critical Warnings\uff09<\/p>\n\n\n\n<p>1\uff09\u6309\u4e0b\u7eff\u8272\u7bad\u5934\u5bf9\u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"115\" height=\"56\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-19.png\" alt=\"\" class=\"wp-image-206\"\/><\/figure>\n\n\n\n<p>2\uff09\u6309\u4e0bGenerate Bitstream \u5b8c\u6210\u7efc\u5408\u4ee5\u53ca\u751f\u6210bit\u6587\u4ef6 \uff08\u9700\u8981\u7b49\u5f85\u5f88\u4e45\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"303\" height=\"203\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-18.png\" alt=\"\" class=\"wp-image-204\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-18.png 303w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-18-300x201.png 300w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/figure>\n\n\n\n<p>3\uff09\u5728\u6b64\u8fc7\u7a0b\u7ed3\u675f\u540e\uff0c\u53ef\u4ee5\u5728verilog\/vivado\/xillydemo.runs\/impl_1\/xillydemo.bit \u8def\u5f84\u4e0b\u627e\u5230\u65b0\u751f\u6210\u7684bitstream\u6587\u4ef6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"375\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-13-1024x375.png\" alt=\"\" class=\"wp-image-5117\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-13-1024x375.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-13-300x110.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-13-768x281.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/10\/image-13.png 1169w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e94\u3001\u521b\u5efaboot.bin\u6587\u4ef6<\/strong><\/h2>\n\n\n\n<p>\u6bcf\u6b21\u6211\u4eec\u66f4\u6539 Zynq block\u7684\u53c2\u6570\u65f6\uff0c\u6211\u4eec\u90fd\u5e94\u8be5\u91cd\u65b0\u521b\u5efa boot.bin \u3002\uff08hardware platform \uff0c FSBL\u4e5f\u5fc5\u987b\u91cd\u65b0\u66f4\u65b0\u6216\u521b\u5efa\uff09<\/p>\n\n\n\n<p>1\uff09File\u2192Export\u2192Export hardware\u2026\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\u52fe\u9009\u201cinclude bitstream\u201d\uff0c\u70b9\u51fb\u201cOK\u201d\u786e\u8ba4<\/p>\n\n\n\n<p>2\uff09File\u2192Lauch SDK\uff0c\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\uff0c\u4fdd\u5b58\u9ed8\u8ba4\uff0c\u70b9\u51fb\u201cOK\u201d\u3002\u7cfb\u7edf\u5c06\u81ea\u52a8\u6253\u5f00SDK\u5f00\u53d1\u73af\u5883<\/p>\n\n\n\n<p>3\uff09\u6dfb\u52a0FSBL\u90e8\u5206<\/p>\n\n\n\n<p>\u5728SDK\u4e2d\u65b0\u5efa\u5de5\u7a0b\u5982\u4e0b  file\u2192new\u2192Application Project<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"137\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-61.png\" alt=\"\" class=\"wp-image-1099\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-61.png 669w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-61-300x61.png 300w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><\/figure>\n\n\n\n<p>\u8bbe\u7f6e\u5de5\u7a0b\u540dfsbl\uff0c\u70b9next<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"260\" height=\"190\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-62.png\" alt=\"\" class=\"wp-image-1100\"\/><\/figure>\n\n\n\n<p>\u9009\u62e9FSBL\u6a21\u677f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"495\" height=\"484\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-2.png\" alt=\"\" class=\"wp-image-411\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-2.png 495w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-2-300x293.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/figure>\n\n\n\n<p>4\uff09 \u4e0b\u8f7d\u6211\u4eec\u9884\u5148\u7f16\u8bd1\u597d\u7684 u-boot.elf \uff08\u5907\u6ce8\uff0c\u8bf7\u6839\u636euart \u5728ps\u8d44\u6e90\u4e2d\u7684\u7aef\u53e3\u53f7\u6765\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u7684u-boot\u6587\u4ef6\uff09\uff0c\u5e76\u89e3\u538b\u7f29\u538b\u7f29\u5305\uff0c\u5f97\u5230 u-boot.elf\u6587\u4ef6<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>UART0 \u7248\uff1a<a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/u-boot_uart_0.zip\">u-boot_uart_0<\/a><\/strong><\/li>\n\n\n\n<li><strong>UART1 \u7248\uff1a<\/strong>UART 1\u7248\u672c\u7684u-boot \u5f85\u7f16\u8bd1\u540e\u4e0a\u4f20<\/li>\n<\/ul>\n\n\n\n<p>5 ) \u521b\u5efauboot.bin <\/p>\n\n\n\n<p>a )\u70b9\u9009\u6211\u4eec\u7684FSBL \u5de5\u7a0b\uff0c\u4e4b\u540e\u70b9 Xilinux -&gt; Create Boot Image  \u521b\u5efa\u542f\u52a8\u955c\u50cf<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"332\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-18.png\" alt=\"\" class=\"wp-image-8758\" style=\"width:611px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-18.png 777w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-18-300x128.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-18-768x328.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>b ) \u5982\u679c\u64cd\u4f5c\u6ca1\u95ee\u9898\uff0c \u5728\u5f39\u51fa\u7684\u754c\u9762\u7684\u5217\u8868\u4e2d\u4f1a\u51fa\u73b0FSBL.ELF \u4ee5\u53caxillydemo.bit <\/p>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u9700\u8981\u4fdd\u7559FSBL.elf \uff08\u5982\u679cFSBL.elf\u6ca1\u6709\u51fa\u73b0\uff0c\u53ef\u4ee5\u624b\u52a8\u6dfb\u52a0\u6587\u4ef6\uff0c\u5728SDK\\FSBL\\DEBUG\u76ee\u5f55\u4e0b\uff09\uff0c \u63a5\u7740\u5220\u9664xillydemo.bit\uff08\u9009\u4e2dxillydemo.bit\uff0c\u7136\u540e\u70b9\u9009Delete\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"821\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-19-1024x821.png\" alt=\"\" class=\"wp-image-8759\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-19-1024x821.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-19-300x241.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-19-768x616.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-19.png 1131w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p> c ) \u6dfb\u52a0\u521a\u624d\u89e3\u538b\u7f29\u7684u-boot.elf (\u70b9\u9009Add\uff0c\u7136\u540e\u5728\u5f39\u51fa\u7684\u754c\u9762\u4e2d\u9009\u4e2d\u521a\u624d\u6211\u4eec\u89e3\u538b\u7f29\u7684u-boot.elf\u6587\u4ef6)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-21-1024x762.png\" alt=\"\" class=\"wp-image-8761\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-21-1024x762.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-21-300x223.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-21-768x572.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-21.png 1131w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>d \uff09\u73b0\u5728\u6211\u4eec\u5df2\u7ecf\u6709FSBL.elf \u548cu-boot.elf\u4e24\u4e2a \u6587\u4ef6\u4e86\uff0c \u4e4b\u540e\u6309\u4e0bCreate Image \u751f\u6210\u542f\u52a8\u955c\u50cf\u6587\u4ef6\u3002\u4e4b\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u5728SDK\\FSBL\\BOOTIMAGE\\\u6587\u4ef6\u5939\u4e0b\u627e\u5230\u521a\u521a\u751f\u6210\u7684 BOOT.bin \u6587\u4ef6\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u516d\u3001\u4fee\u6539device tree<\/strong><\/h2>\n\n\n\n<p>\u6211\u4eec\u7684demo bundle \u793a\u4f8b\u5305\u4e2d\u6709\u4e00\u4efd devicetree.dts \uff08devicetree \u6587\u4ef6\u5939\u4e0b\uff09\u7684\u793a\u4f8b\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u6253\u5f00\u5e76\u5728\u8fd9\u4efd\u6587\u4ef6\u4e0a\u8fdb\u884c\u4fee\u6539\uff08\u5728win\u4e0b\u53ef\u4ee5\u76f4\u63a5\u7528\u8bb0\u4e8b\u672c\u6253\u5f00\uff09\u3002<\/p>\n\n\n\n<p>1 \uff09 \u9ed8\u8ba4\u7684devicetree \u662f\u5047\u8bbePS\u7aef\u8f93\u5165\u65f6\u949f\u662f33.33M\u60c5\u51b5\u4e0b\u7684\uff0c\u5982\u679c\u4f60\u7684\u4e3b\u677f\u662f50M\u6216\u8005\u5176\u4ed6\u65f6\u949f\uff0c\u9664\u4e86\u4e4b\u524d\u7684Block Design \u4e2dZYNQ\u6a21\u5757\u7684\u65f6\u949f\u9700\u8981\u4fee\u6539\u5916\uff0cdevicetree\u7684\u8fd0\u884c\u65f6\u949f\u4e5f\u9700\u8981\u5bf9\u5e94\u7684\u6539\u52a8\u3002<\/p>\n\n\n\n<p>\u627e\u5230 ps-clk-frequency = &lt;33333333&gt;;    \u91cc\u9762\u768433333333\u4ee3\u8868PS-CLK\u8f93\u5165\u662f\u572833.333333M\u7684\u610f\u601d\uff0c\u5982\u679c\u4f60\u7684\u4e3b\u9891\u662f50M\uff0c\u5bf9\u5e94\u7684\u4fee\u6539\u6210  ps-clk-frequency = &lt;50000000&gt;;\u5373\u53ef<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"481\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-22.png\" alt=\"\" class=\"wp-image-8763\" style=\"width:594px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-22.png 934w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-22-300x154.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-22-768x396.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 \u4fee\u6539\u5bf9\u5e94\u7684\u4e3b\u677f\u540d\u79f0 \uff08\u8fd9\u6b65\u5e76\u4e0d\u91cd\u8981\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">xillinux {\n    board = \"Lemon-zynq\";\n} ;<\/pre>\n\n\n\n<p>3\uff09 \u901a\u8fc7\u4fee\u6539chosen  \u53ef\u4ee5\u8c03\u6574\u547d\u4ee4\u884c\u7ec8\u7aef\u5bf9\u5e94\u7684\u4e32\u53e3\u53f7\uff0c \u6ce2\u7279\u7387\u7b49 \uff08\u5982\u679c\u4f60\u7684\u4e32\u53e3\u8f93\u51fa\u9ed8\u8ba4\u662fuart 0 \uff0c\u5c31\u4e0d\u9700\u8981\u4fee\u6539\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chosen {\n    bootargs = \"console=ttyPS0,115200n8 console=tty0 consoleblank=0 root=\/dev\/mmcblk0p2 rw rootwait earlyprintk\";\n    linux,stdout-path = \"\/amba@0\/serial@e0000000\";\n} ;<\/pre>\n\n\n\n<p>\u5982\u679c\u4f60\u9700\u8981\u5c06uart 0 \u4fee\u6539\u6210uart 1\uff0c \u8fd9\u91cc\u5c06<code>bootargs<\/code> \u4e2d\u7684 <code>console<\/code> \u53c2\u6570\u4ece <code>ttyPS0<\/code> \u66f4\u6539\u4e3a <code>ttyPS1<\/code>\u3002\u786e\u4fdd\u6ce2\u7279\u7387\u548c\u5176\u4ed6\u53c2\u6570\u4fdd\u6301\u4e0d\u53d8\uff0c  <strong>\u4fee\u6539 <code>stdout-path<\/code><\/strong>\uff1a \u786e\u4fdd <code>linux,stdout-path<\/code> \u6307\u5411 <code>ttyPS1<\/code> \u5982\u4e0b\u3002  <strong>\uff08\u5f53\u7136\u9ed8\u8ba4\u7684 UART 1\u5bf9\u5e94\u7684\u8bbe\u5907\u6811\u5185\u5bb9\u4e5f\u9700\u8981\u6dfb\u52a0\uff0c \u53ef\u4ee5\u53c2\u8003UART 0\u5bf9\u5e94\u7684\u5185\u5bb9\u8fdb\u884c\u6dfb\u52a0\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chosen {<br>    bootargs = \"console=ttyPS1,115200n8 console=tty0 consoleblank=0 root=\/dev\/mmcblk0p2 rw rootwait earlyprintk\";<br>    linux,stdout-path = \"\/amba@0\/serial@e0001000\";  \/\/ \u786e\u4fdd\u8def\u5f84\u4e0e\u5b9e\u9645\u8bbe\u5907\u6811\u8282\u70b9\u4e00\u81f4<br>} ;<\/pre>\n\n\n\n<p>4 \uff09 \u4e0b\u9762\u662f\u7f51\u7edc\u90e8\u5206\u7684\u8bbe\u5907\u6811\u5185\u5bb9\uff0c\u9ed8\u8ba4\u662f\u7684\u5f53\u4f5c\u63a5PS\u7aef\u7684<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">    ps7_ethernet_0: ps7-ethernet@e000b000 {\n        #address-cells = &lt;1&gt;;\n        #size-cells = &lt;0&gt;;\n        clock-names = \"pclk\", \"hclk\", \"tx_clk\";\n        clocks = &lt;&amp;clkc 30&gt;, &lt;&amp;clkc 30&gt;, &lt;&amp;clkc 13&gt;;\n        compatible = \"cdns,gem\";\n        interrupt-parent = &lt;&amp;ps7_scugic_0&gt;;\n        interrupts = &lt;0 22 4&gt;;\n        phy-handle = &lt;&amp;eth_phy0&gt;;\n        phy-mode = \"rgmii-id\";\n        reg = &lt;0xe000b000 0x1000&gt;;\n\n        eth_phy0: phy@0 {\n            device_type = \"ethernet-phy\";\n            reg = &lt;0&gt;;\n        };\n    } ;<\/pre>\n\n\n\n<p>\u5982\u679c\u7684\u7f51\u7edcPHY\u662f\u63a5PL\u7aef\u7684\uff0c\u90a3\u63a5\u53e3\u4f1a\u6709\u4e0d\u540c\uff0cEmio\u65b9\u5f0f\u7684 rgmii\u63a5\u53e3\u662f PS\u7aef\u7684GMII\u63a5\u53e3\u901a\u8fc7PL\u7aefrgmii2gmii\u6a21\u5757\u8f6c\u6362\u5b9e\u73b0\u7684\uff0c\u6240\u4ee5\u5bf9\u4e8ePS\u6765\u8bf4\uff0c\u7f51\u7edc\u63a5\u53e3\u5c31\u662fgmii\u7684\uff0c\u6240\u4ee5\u8fd9\u91cc\u9700\u8981\u5c06 phy-mode\u4fee\u6539\u6210 gmii<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">phy-mode = \"gmii\";<\/pre>\n\n\n\n<p>6\uff09 \u4fee\u6539DDR <\/p>\n\n\n\n<p>\u793a\u4f8bdevicetree \u9ed8\u8ba4\u7684 \u5185\u5b58\u662f256M x 16bit \uff08512MB\uff09\uff0c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ps7_ddr_0: memory@0 {\n    device_type = \"memory\";\n    reg = &lt;0x0 0x20000000&gt;;\n} ;<\/pre>\n\n\n\n<p>\u5982\u679c\u4f60\u7684\u4e3b\u677f\u5bf9\u5e94 256M x 32bit \uff081G\u5bb9\u91cf\uff09\u5219\u9700\u8981\u5c06\u5185\u5bb9\u4fee\u6539\u5982\u4e0b\uff1a\uff08vivado\u5de5\u7a0bblock design \u7684ZYNQ DDR\u8bbe\u7f6e\u4e5f\u9700\u8981\u5bf9\u5e94\u4fee\u6539\uff0c\u4e0a\u6587\u4e2d\u6709\u4ecb\u7ecd\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ps7_ddr_0: memory@0 {<br>    device_type = \"memory\";<br>    reg = &lt;0x0 0x40000000&gt;;<br>};<\/pre>\n\n\n\n<p>5\uff09 \u5c06\u4fee\u6539\u540e\u7684 devicetree.dts \u8f6c\u6362\u6210 devicetree.dtb\u6587\u4ef6 \uff08\u5728Ubuntu \u4e0b\u64cd\u4f5c\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dtc -I dts -O dtb -o devicetree.dtb devicetree.dts<\/pre>\n\n\n\n<p>\u8fd9\u6837\u6211\u4eec\u5c31\u5f97\u5230\u4e86\u4fee\u6539\u540e\u7684devicetree.dtb\u6587\u4ef6<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u7ed3\u5c3e<\/strong><\/h2>\n\n\n\n<p>\u7ecf\u8fc7\u4e0a\u8ff0\u8fd9\u4e9b\u64cd\u4f5c\uff0c\u6211\u4eec\u5df2\u7ecf\u5f97\u5230\u4e86xillinux\u542f\u52a8\u6240\u5fc5\u987b\u7684\u4e09\u4e2a\u6587\u4ef6\u4e86<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>devicetree.dtb<\/li>\n\n\n\n<li>BOOT.bin<\/li>\n\n\n\n<li>xillydemo.bit <\/li>\n<\/ul>\n\n\n\n<p>\u63a5\u4e0b\u6765\u7684\u64cd\u4f5c\u53ef\u4ee5\u53c2\u8003Xillinux \u5bf9\u5e94\u7684\u4e00\u3001\u4e8c\u3001\u4e09\u7ae0\u8282\u6b63\u5e38\u8fdb\u884c\u3002\uff08\u7b2c\u4e8c\u7ae0\u7684\u4e09\u4e2a\u6587\u4ef6\uff0c\u7528\u672c\u6587\u751f\u6210\u7684\u4e09\u4e2a\u6587\u4ef6\u6765\u66ff\u4ee3\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"http:\/\/www.hellofpga.com\/index.php\/2023\/10\/16\/xillinux-image\/\">Xillinux \u7ae0\u8282\u4e00 TF\u5361\u51c6\u5907\u5de5\u4f5c\u4e4b \u955c\u50cf\u70e7\u5f55<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.hellofpga.com\/index.php\/2023\/10\/17\/xillinux-demo-bundle\/\">Xillinux \u7ae0\u8282\u4e8c TF\u5361\u51c6\u5907\u5de5\u4f5c\u4e4b demo bundle \u7684\u4f7f\u7528\u8bf4\u660e<\/a>&nbsp;<\/li>\n\n\n\n<li><a href=\"http:\/\/www.hellofpga.com\/index.php\/2023\/10\/18\/xillinux-start\/\">Xillinux \u7ae0\u8282\u4e09 Xillinux \u7684\u542f\u52a8\u9a8c\u8bc1<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5927\u5bb6\u5b9e\u9645\u79fb\u690d\u7684\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230\u548c\u672c\u6587\u4e0d\u4e00\u81f4\u7684\u5730\u65b9\uff0c\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u4efb\u4f55\u95ee\u9898\u90fd\u53ef\u4ee5\u5728\u672c\u7ad9\u7ed3\u5c3e\u8fdb\u884c\u7559\u8a00\u3002\u4e5f\u795d\u5927\u5bb6\u79fb\u690d\u8fc7\u7a0b\u80fd\u591f\u987a\u5229\u3002Enjoy it \uff01<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7ae0\u8282\u5c06\u6f14\u793a\u5982\u4f55\u5c06Xillinux \u79fb\u690d\u5230\u4e0d\u540c\u7684\u4e3b\u677f\u4e0a\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-8668","post","type-post","status-publish","format-standard","hentry","category-xillinux"],"views":1527,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/8668","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=8668"}],"version-history":[{"count":98,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/8668\/revisions"}],"predecessor-version":[{"id":8817,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/8668\/revisions\/8817"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=8668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=8668"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=8668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}