{"id":3873,"date":"2023-04-27T22:29:53","date_gmt":"2023-04-27T14:29:53","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=3873"},"modified":"2024-10-18T23:11:40","modified_gmt":"2024-10-18T15:11:40","slug":"smart-zynqspampslsmart-zynq_tf_test","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2023\/04\/27\/smart-zynqspampslsmart-zynq_tf_test\/","title":{"rendered":"\u57fa\u4e8eSmart ZYNQ (SP\/SP2\/SL \u7248) \u7684PS\u5b9e\u9a8c\u4e03 \u5c06\u7a0b\u5e8f\u653e\u7f6e\u5728TF\u5361\u5e76\u8fdb\u884cTF\u5361\u542f\u52a8\u6f14\u793a"},"content":{"rendered":"\n<p>ZYNQ \u6709\u591a\u79cd\u542f\u52a8\u65b9\u5f0f\u53ef\u4ee5\u9009\u62e9\uff0c\u9664\u4e86\u4e4b\u524d\u4ecb\u7ecd\u7684\u4eceQSPI FLASH \u7684\u65b9\u5f0f\u6765\u542f\u52a8\u5916\uff0c\u8fd8\u53ef\u4ee5\u8ba9\u7cfb\u7edf\u4eceTF \u5361\u7684\u65b9\u5f0f\u6765\u542f\u52a8\uff0c\u672c\u6587\u5c06\u901a\u8fc7\u4e00\u4e2aEMIO \u70b9LED \u706f\u7684\u65b9\u5f0f\u6765\u6f14\u793a TF \u5361\u7684\u542f\u52a8\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6b64\u7ae0\u8282\u5185\u5bb9\u9002\u7528\u4e8eSmart ZYNQ SP SP2\u548c SL \u7248\u7684\u677f\u5b50 ( \u4e0d\u5305\u542bSmart ZYNQ \u6807\u51c6\u7248 )\uff0c\u5982\u662f\u6807\u51c6\u7248\u6216\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<p><strong>\u672c\u5de5\u7a0b\u548c\u4e0a\u4e00\u8282\u5de5\u7a0b\u5185\u5bb9\u9ad8\u5ea6\u91cd\u5408\uff0c\u8bf7\u9009\u62e9\u6027\u7684\u53c2\u770b\u3002<\/strong>\uff08\u4ec5\u5728BlockDesign \u8bbe\u7f6e\u7684\u5730\u65b9\u5c06 FLASH \u76f8\u5173\u7684\u8bbe\u7f6e\u66f4\u6362\u6210SD\u5373\u53ef\uff0c \u6700\u540e\u5c06\u6211\u4eecSDK\u4e0b\u751f\u6210\u7684boot.bin\u6587\u4ef6\u590d\u5236\u5230FAT32\u683c\u5f0f\u7684TF\u5361\u4e2d\u5373\u53ef\uff09<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u4e00\u3001ZYNQ\u542f\u52a8\u6d41\u7a0b\u4ecb\u7ecd<\/strong><\/h1>\n\n\n\n<p>1\uff09\u9996\u5148\u4e86\u89e3ZYNQ\u7684\u542f\u52a8\u8fc7\u7a0b\uff0c ZYNQ\u7684\u542f\u52a8\u8fc7\u7a0b\u4ee5ARM\u6838\u4e3a\u4e3b\uff0c\u4e0a\u7535\u540e \u786c\u4ef6\u5148\u8bfb\u53d6ARM\u6838PS\u7aef\u7279\u5b9a\u5f15\u811a\u7684\u7535\u5e73\u72b6\u6001\u4ee5\u786e\u5b9a \u7cfb\u7edf\u4eceNAND \uff0cQSPI \uff0cSD Card\u8fd8\u662f JTAG \u542f\u52a8\u7cfb\u7edf\u3002&nbsp;<strong>\u542f\u52a8\u7684\u65b9\u5f0f\u53ef\u4ee5\u901a\u8fc7\u677f\u5b50\u7684\u62e8\u7801\u5f00\u5173\u8fdb\u884c\u8c03\u6574<\/strong>\u3002<\/p>\n\n\n\n<p>2\uff09ZYNQ\u662f\u6839\u636eMIO5,MIO4,\u548cMIO3\u4e09\u4e2a\u7ba1\u811a\u5728\u4e0a\u7535\u65f6\u7684\u7535\u5e73\u72b6\u6001\u6765\u51b3\u5b9a\u7cfb\u7edf\u7684\u542f\u52a8\u65b9\u5f0f\u7684\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"492\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-52.png\" alt=\"\" class=\"wp-image-1085\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-52.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-52-300x192.png 300w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09\u4e3b\u677f\u4e0a\u7684\u542f\u52a8\u9009\u9879\uff1a\u6211\u4eec\u7684\u6700\u5c0f\u7cfb\u7edf\u677f\u53ea\u6709 QSPI \u548cTF\u7684\u786c\u4ef6\uff0c\u6240\u4ee5\u53ea\u9700\u8981\u5173\u6ce8QUAD-SPI ,SD,JTAG \u4e09\u79cd\u542f\u52a8\u65b9\u5f0f\u5c31\u597d\u3002\u4e5f\u5c31\u662f\u770b\u7cfb\u7edf\u4e0a\u7535\u77ac\u95f4MIO5\u548cMIO4\u4e24\u4e2a\u7ba1\u811a\u7684\u7535\u5e73\u72b6\u6001\uff0c\u7528\u6765\u533a\u5206\u4e0d\u540c\u7684\u4e0a\u7535\u65b9\u5f0f\u3002\u5728\u7535\u8def\u4e0a\u5df2\u5c06MIO5\u548cMIO4\u5206\u522b\u63a5\u5230\u4e86 \u62e8\u52a8\u5f00\u5173\u4e0a\u4e86\uff0c\u4e5f\u5c31\u662f\u6309\u7167\u62e8\u52a8\u5f00\u5173\u5728\u4e0a\u7535\u77ac\u95f4\u7684\u72b6\u6001\u5373\u53ef\u63a7\u5236\u7cfb\u7edf\u7684\u542f\u52a8\u65b9\u5f0f \uff0c\u5177\u4f53\u53ef\u53c2\u8003\u677f\u5b50\u4e0a\u7684\u4e1d\u5370\u6807\u6ce8\u3002<\/p>\n\n\n\n<p>4) \u8981\u60f3TF\u5361\u542f\u52a8\uff0c\u6211\u4eec\u4ec5\u9700\u5c06\u62e8\u7801\u5f00\u5173\u8c03\u6574\u5230\u5982\u56fe\u6240\u793a\u72b6\u6001 \uff0c\u6b64\u65f6\u5982\u679cTF\u5361\u4e0a\u6709\u53ef\u6267\u884c\u7a0b\u5e8f\uff0c\u65ad\u7535\u91cd\u542f\u540e\uff0c\u7cfb\u7edf\u5c06\u4f1a\u4eceTF\u5361\u542f\u52a8\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"300\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-32.png\" alt=\"\" class=\"wp-image-2914\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-32.png 298w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-32-150x150.png 150w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-32-100x100.png 100w\" sizes=\"auto, (max-width: 298px) 100vw, 298px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u5b9e\u9a8c\u5185\u5bb9<\/strong><\/h2>\n\n\n\n<p>\u8fd9\u4e2a\u5b9e\u9a8c\u5c06\u4ecb\u7ecdZYNQ\u7684\u5b8c\u6574\u56fa\u5316\u6d41\u7a0b\u3002\u5b9e\u9a8c\u4e2d\u6709\u4e24\u4e2aLED\u706f\uff0c\u5176\u4e2d\u4e00\u4e2a\u7531PL\u903b\u8f91\u63a7\u5236\uff0c\u53e6\u4e00\u4e2a\u7531PS\u63a7\u5236\uff08EMIO\u65b9\u5f0f\uff09\u3002\u8fd9\u6837\u53ef\u4ee5\u4f7f\u56fa\u5316\u5de5\u7a0b\u9002\u5e94\u66f4\u591a\u5e94\u7528\u573a\u666f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001Vivado\u5de5\u7a0b\u521b\u5efa<\/strong><\/h2>\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\/\">\u57fa\u4e8eSmart ZYNQ (SP\/SP2\/SL \u7248) <\/a><\/strong><strong><a href=\"http:\/\/www.hellofpga.com\/index.php\/2023\/04\/27\/smart-zynq_sp_sl_01_led\/\">\u7684PS\u5b9e\u9a8c\u4e00 GPIO\u4e4b\u7528EMIO\u65b9\u5f0f\u70b9\u4eaeLED\uff08\u5b8c\u6574\u56fe\u6587\uff09<\/a> (\u82af\u7247\u578b\u53f7\u9009XC7Z020CLG484-1)<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001Block Design\u4e2d\u7684\u8bbe\u7f6e<\/strong><\/h2>\n\n\n\n<p>1\uff09\u521b\u5efa\u4e00\u4e2aBLOCK\u8bbe\u8ba1 \uff1aIP INTEGRATOR\u2192Create Block Design\uff0c\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\u8f93\u5165\u8bbe\u8ba1\u540d\uff0c\u6700\u540e\u70b9\u51fb\u201cOK\u201d\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"599\" height=\"283\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-1.png\" alt=\"\" class=\"wp-image-183\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-1.png 599w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-1-300x142.png 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/figure>\n\n\n\n<p>2)\u5728\u53f3\u4fa7\u7684\u7a97\u53e3\u91cc \uff0c\u70b9\u51fb\u52a0\u53f7\uff0c\u5728\u9009\u62e9\u6846\u91cc\u641c\u7d22ZYNQ\uff0c\u5e76\u627e\u5230ZYNQ7 PROCESSING SYSTEM \uff0c\u53cc\u51fb\u5e76\u6253\u5f00<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"477\" height=\"271\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-2.png\" alt=\"\" class=\"wp-image-184\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-2.png 477w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-2-300x170.png 300w\" sizes=\"auto, (max-width: 477px) 100vw, 477px\" \/><\/figure>\n\n\n\n<p>3\uff09\u8f6f\u4ef6\u81ea\u52a8\u751f\u6210\u4e86\u4e00\u4e2a zynq\u7684block \u5982\u4e0b\u56fe\u6240\u793a\uff0c\u63a5\u4e0b\u6765\u8981\u505a\u4e00\u4e9b\u76f8\u5e94\u7684\u8bbe\u7f6e\uff0c\u53cc\u51fb\u4e0b\u56fe\u4e2d\u7684ZYNQ\u6838<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"266\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-3.png\" alt=\"\" class=\"wp-image-186\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-3.png 505w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-3-300x158.png 300w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/figure>\n\n\n\n<p>4\uff09\u4f9d\u6b21\u5728\u5f39\u7a97\u91cc\u627e\u5230DDR Configuration\u2192DDR Controller Configuration\u2192DDR3\uff0c\u5728Memory Part\u4e0b\u62c9\u83dc\u5355\u4e2d\u6839\u636e\u81ea\u5df1\u677f\u5b50\u4e0a\u7684DDR\u6765\u9009\u62e9\u76f8\u5e94\u7684DDR3\uff0c\u672c\u5b9e\u9a8c\u6240\u7528\u5230\u578b\u53f7\uff1aMT41K256M16RE-125\uff0c\u6570\u636e\u4f4d\u5bbd\u9009\u62e916bit \u6700\u540e\u70b9\u51fb\u201cOK\u201d,\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"453\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-70.png\" alt=\"\" class=\"wp-image-2527\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-70.png 788w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-70-300x172.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-70-768x442.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\u5728PS\u7684MIO\u914d\u7f6e\u9009\u9879\u7684GPIO\u680f\u91cc\uff0c\u589e\u52a0\u4e00\u8defEMIO\uff08\u56e0\u4e3a\u672c\u6b21\u6d4b\u8bd5\u7684\u662f\u4e00\u4e2a\uff0c\u5982\u679c\u9700\u8981\u589e\u52a0\u6309\u952e\u6216\u8005\u5176\u5b83IO \u8fd9\u91cc\u53ef\u4ee5\u5bf9\u5e94\u7684\u8c03\u6574\uff08\u8fd9\u91ccGPIO\u662f\u4e3a\u4e86\u70b9\u4eaeLED\u706f\u770b\u6548\u679c\u6f14\u793a\u7528\u7684\uff0c\u975e\u56fa\u5316\u5fc5\u987b\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"490\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-31.png\" alt=\"\" class=\"wp-image-7543\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-31.png 865w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-31-300x170.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-31-768x435.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>6\uff09<strong>\u91cd\u8981\u7684\u4e00\u6b65<\/strong>&nbsp;<strong>MIO Configuration \u4e2d \u4f7f\u80fdSD 0\u7684\u529f\u80fd\uff0c\u8fd9\u4e00\u6b65\u662f TF\u5361\u542f\u52a8\u7684\u5173\u952e\u8bbe\u7f6e<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"575\" height=\"179\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-5.png\" alt=\"\" class=\"wp-image-584\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-5.png 575w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-5-300x93.png 300w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/figure>\n\n\n\n<p>7\uff09\u6700\u540e \u70b9\u51fb\u201cRun Block Automation\u201d\u5982\u4e0b\u56fe\u6240\u793a\u3002\u5728\u5f39\u51fa\u7684\u9009\u9879\u4e2d\u4fdd\u6301\u9ed8\u8ba4\uff0c\u70b9\u51fb\u201cOK\u201d\uff0c\u5373\u53ef\u5b8c\u6210\u5bf9ZYNQ7 Processing System\u7684\u914d\u7f6e<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"247\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-43.png\" alt=\"\" class=\"wp-image-1062\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-43.png 552w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-43-300x134.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<p>8\uff09\u5c06\u521a\u624d\u6dfb\u52a0EMIO GPIO \u5f15\u51fa \u53f3\u952eGPIO_0\u2014-&gt;Make External<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"471\" height=\"338\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-44.png\" alt=\"\" class=\"wp-image-1063\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-44.png 471w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-44-300x215.png 300w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/figure>\n\n\n\n<p>9\uff09\u7528\u7ebf\u5c06M_AXI_GP0_ACLK\u4e0e FCLK_CLK0\u8fde\u63a5\u8d77\u6765<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"557\" height=\"247\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-47.png\" alt=\"\" class=\"wp-image-1066\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-47.png 557w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-47-300x133.png 300w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/figure>\n\n\n\n<p>10\uff09source\u2192Design Source \uff0c\u53f3\u952e\u6211\u4eec\u521b\u5efa\u7684BLOCK\u5de5\u7a0b\uff0c\u70b9\u51fbcreate HDL wrapper\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"446\" height=\"271\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-12.png\" alt=\"\" class=\"wp-image-195\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-12.png 446w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-12-300x182.png 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/figure>\n\n\n\n<p>11\uff09\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u91cc\u4fdd\u6301\u9ed8\u8ba4<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"492\" height=\"281\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-13.png\" alt=\"\" class=\"wp-image-196\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-13.png 492w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-13-300x171.png 300w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/figure>\n\n\n\n<p>12\uff09\u8f6f\u4ef6\u81ea\u52a8\u4e3a\u6211\u4eec\u751f\u6210HDL\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"375\" height=\"210\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-14.png\" alt=\"\" class=\"wp-image-197\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-14.png 375w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-14-300x168.png 300w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e94\u3001\u6dfb\u52a0\u6211\u4eec\u7684FPGA\u90e8\u5206\u70b9LED\u4ee3\u7801\uff0c\u5e76\u4f8b\u5316ZYNQ\u6a21\u5757<\/strong><\/h2>\n\n\n\n<p id=\"block-b4987e22-79b1-4651-bd74-8fddeaf35076\">1\uff09\u5728\u4e3b\u754c\u9762\u70b9\u51fb\u5de6\u4fa7 Add Sources ,\u70b9\u51fb \u590d\u9009\u6846\u7684Add or create design sources \u9009\u9879 \u5e76\u70b9\u51fbNEXT<\/p>\n\n\n\n<figure class=\"wp-block-image\" id=\"block-b6843c17-66a2-41ea-ac03-85e778afd2f6\"><img decoding=\"async\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-5.png\" alt=\"\u6b64\u56fe\u7247\u7684 alt \u5c5e\u6027\u4e3a\u7a7a\uff1b\u6587\u4ef6\u540d\u4e3a image-5.png\"\/><\/figure>\n\n\n\n<p id=\"block-d86ae567-3202-4c40-90a8-d2c7b308f677\">2\uff09\u5728\u51fa\u73b0\u7684Add Sources \u4e2d \u9009\u62e9\u521b\u5efa\u65b0\u6587\u4ef6 Create FILE \u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5e76\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d \u9009\u62e9\u7c7b\u522b\u4e3aVerilog \uff0c\u5728FILE name\u4e2d\u586b\u5199\u6587\u4ef6\u7684\u540d\u79f0\uff0c\u8fd9\u91cc\u7528LED \u4ee3\u66ff\uff0c\u70b9\u51fbOK \u5e76\u70b9\u51fbFINISH<\/p>\n\n\n\n<p id=\"block-d86ae567-3202-4c40-90a8-d2c7b308f677\">3\uff09\u5728\u8df3\u51fa\u7684\u7a97\u53e3\u4e2d\u53ef\u4ee5\u586b\u5199\u6a21\u5757\u7684\u8f93\u5165\u8f93\u51fa\u4fe1\u53f7\uff0c\u7531\u4e8e\u8fd9\u90e8\u5206\u5de5\u4f5c\u5728\u4ee3\u7801\u4e2d\u53ef\u4ee5\u5b8c\u6210\uff0c\u6240\u4ee5\u8fd9\u91cc\u76f4\u63a5\u70b9OK \u5b8c\u6210VERILOG \u6587\u4ef6\u7684\u521b\u5efa.<\/p>\n\n\n\n<p id=\"block-a1b54f22-724a-46ed-be16-aab8d649724f\">4\uff09\u53cc\u51fb\u6253\u5f00\u521a\u624d\u521b\u5efa\u7684LED.V\u6587\u4ef6 \u5e76\u5728\u91cc\u9762\u5199\u5165LED\u7684\u4ee3\u7801<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"651\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-53-1024x651.png\" alt=\"\" class=\"wp-image-7869\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-53-1024x651.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-53-300x191.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-53-768x488.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-53.png 1107w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p id=\"block-a1b54f22-724a-46ed-be16-aab8d649724f\">LED\u90e8\u5206\u7684\u4ee3\u7801\u5982\u4e0b\uff0c\u548c\u6211\u4eec\u4e4b\u524dFPGA\u5b9e\u9a8c\u4e00\u4e2d\u7684\u4e00\u81f4\u3002<\/p>\n\n\n\n<pre id=\"block-8e4b73fd-532e-40ca-82b4-73112011cbd0\" class=\"wp-block-preformatted\">\/\/hellofpga.com\/\/<br>`timescale 1ns \/ 1ps<br>module LED(<br>     input clk,\/\/50M<br>     output led,<br>     inout led_emio<br> );<br> parameter T1MS = 26'd50_000_000 ; <br> reg [25:0]time_count =26'd0;\/\/time counter<br> reg led_r;<br> always@(posedge clk)<br>     if(time_count&gt;=T1MS)begin<br>         time_count&lt;=26'd0;<br>         led_r&lt;=~led_r;<br>     end<br>     else time_count&lt;=time_count+1'b1;<br> assign led=led_r;    <br> <br> wire [0:0]GPIO_EMIO;<br> ZYNQ_CORE_wrapper zynq_u(<br>    .GPIO_0_0_tri_io(GPIO_EMIO)<br> );<br> assign led_emio=GPIO_EMIO[0];<br> <br> endmodule<\/pre>\n\n\n\n<p>5\uff09&nbsp;<strong>\u5728\u7a0b\u5e8f\u4e2d\u4f8b\u5316ZYNQ\u6a21\u5757<\/strong><\/p>\n\n\n\n<p>\u9996\u5148\u56de\u770b\u6211\u4eec\u7684\u5de5\u7a0b, \u73b0\u5728\u5de5\u7a0b\u6709\u4e24\u90e8\u5206\u6784\u6210\uff0c\u4e00\u4e2a\u662f\u6211\u4eec\u7684\u7eafFPGA\u4ee3\u7801 LED.V \uff08\u91cc\u9762\u662f\u903b\u8f91\u70b9LED\u7684\u529f\u80fd\uff09\uff0c\u53e6\u4e00\u4e2a\u662f\u521a\u521a\u521b\u5efa\u7684ZYNQ_CORE_wrapper ,\u4e24\u8005\u662f\u76f8\u4e92\u72ec\u7acb\u7684\uff0c\u4e5f\u5c31\u662f\u5982\u679c\u4ee3\u7801\u6309\u73b0\u5728\u7684\u7ed3\u6784\u8fd0\u884c\uff0c\u786c\u4ef6\u53ea\u4f1a\u5305\u542bZYNQ_CORE\uff0c\u800c\u4e0d\u4f1a\u5305\u542bLED\u3002 \u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u9700\u8981\u5c06\u4e24\u8005\u6574\u5408\u5230\u4e00\u8d77\uff0c\u53ef\u4ee5\u518d\u521b\u5efa\u4e00\u4e2a\u9876\u5c42\u4ee3\u7801top.v \u6765\u5206\u522b\u4f8b\u5316\u6211\u4eec\u7684LED \u8fd8\u6709 ZYNQ\uff0c\u4e5f\u53ef\u4ee5\u5077\u61d2\u76f4\u63a5\u5728\u6211\u4eec\u539f\u5148\u7684\u5de5\u7a0bLED.V\u4e2d\u76f4\u63a5\u4f8b\u5316ZYNQ_CORE\uff08\u56e0\u4e3a\u672c\u7ae0\u7684\u91cd\u70b9\u662f\u4ecb\u7ecd\u4ee3\u7801\u7684\u56fa\u5316\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u9009\u62e9\u66f4\u7b80\u5355\u7684\u7b2c\u4e8c\u79cd\u65b9\u5f0f\uff09\u3002<\/p>\n\n\n\n<p>\u6253\u5f00\u521a\u624d\u7684LED.v\uff0c\u5e76\u5728 endmodule\u7684 \u4e0a\u65b9\u6dfb\u52a0ZYNQ_CORE \u4f8b\u5316\u7684\u4ee3\u7801,\u4ee5\u53ca\u5728\u6a21\u5757\u5b9a\u4e49\u4e0a\u6dfb\u52a0\u4e00\u4e2aoutput\u4fe1\u53f7 led_emio\uff0c\u7528\u4e8e\u5f15\u51faZYNQ\u6a21\u5757\u7684EMIO\u811a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"688\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-54-1024x688.png\" alt=\"\" class=\"wp-image-7871\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-54-1024x688.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-54-300x202.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-54-768x516.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-54.png 1335w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\"> wire [0:0]GPIO_EMIO;<br> ZYNQ_CORE_wrapper zynq_u(<br>    .GPIO_0_0_tri_io(GPIO_EMIO)<br> );<br> assign led_emio=GPIO_EMIO[0];<\/pre>\n\n\n\n<p>\uff08\u56e0\u4e3aZYNQ\u4e2d\u5b9a\u4e49\u7684 GPIO_O_O_tri_io\u662finout [0:0]GPIO_0_0_tri_io \uff0c\u6240\u4ee5\u8fd9\u91cc GPIO_EMIO\u5b9a\u4e49\u7684\u65f6\u5019\u4e5f\u8981\u5b9a\u4e49 wire [0:0]GPIO_EMIO\uff0c\u5426\u5219\u4f1a\u51fa\u73b0\u7efc\u5408\u4e0d\u901a\u8fc7\u7684\u60c5\u51b5\uff09<\/p>\n\n\n\n<p><strong>\u80af\u5b9a\u6709\u4eba\u4f1a\u95ee ZYNQ_CORE \u91cc\u660e\u660e\u6709\u90a3\u4e48\u591a\u4fe1\u53f7\uff0c\u4e3a\u5565\u6211\u90fd\u7559\u7a7a\u4e86\u53ea\u4fdd\u7559\u4e86GPIO_0_0_tri_io\u4fe1\u53f7\uff0c\u5176\u5b9e\u8fd9\u91cc\u6211\u4e5f\u5077\u61d2\u4e86<\/strong>\uff0c\u56e0\u4e3a\u672c\u7ae0\u4e2dZYNQ\u53ea\u6dfb\u52a0\u4e86\u4e00\u4e2aEMIO\u5916\u8bbe\uff0c\u800c\u5269\u4e0b\u8bf8\u5982DDR FIX_IO\u8fd9\u79cd\u4fe1\u53f7\u7ebf\u56e0\u4e3a\u672c\u8eab\u662f\u786c\u4ef6\u8fde\u63a5\u7684\uff0c\u6240\u4ee5\u5373\u4f7f\u7a0b\u5e8f\u4f8b\u5316\u7684\u65f6\u5019\u7559\u7a7a\uff0c\u8fd9\u4e9b\u4fe1\u53f7\u7ebf\u4ecd\u7136\u662f\u786c\u4ef6\u540c\u5916\u90e8\u8fde\u63a5\u7684\u3002<strong>\uff08\u5907\u6ce8 \u5982\u679c\u6709\u5176\u4ed6\u7684EMIO \u6216\u8005AXI \u7b49\u6d89\u53ca\u5230\u548cFPGA\u901a\u8baf\u6216\u8005\u6620\u5c04\u7684\u4fe1\u53f7\uff0c\u5219\u8fd9\u91cc\u4f8b\u5316\u7684\u65f6\u5019\u5fc5\u987b\u6dfb\u52a0\u4fe1\u53f7\u4e0a\u53bb\uff09<\/strong><\/p>\n\n\n\n<p>\u8fd9\u6837\u6211\u4eec\u5c31\u5728LED.V\u4e2d\u589e\u52a0\u4e86ZYNQ\u90e8\u5206\u4e86\u3002 \uff08\u8fd9\u91cc\u5bb9\u6613\u4ea7\u751f\u8bef\u533a\uff0cZYNQ\u6a21\u5757\u662f\u786c\u4ef6\u5b58\u5728\u7684\uff0c\u5e76\u4e0d\u662f\u5b9e\u4f8b\u5316\u51ed\u7a7a\u51fa\u73b0\u7684\uff0c\u53ea\u662f\u901a\u8fc7\u4f8b\u5316\u8fd9\u79cd\u65b9\u5f0f\u5c06\u4e24\u90e8\u5206\u7ed3\u5408\u5728\u4e00\u8d77\u4e86\uff09<\/p>\n\n\n\n<p>\u5b8c\u6574\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">`timescale 1ns \/ 1ps<br>module LED(<br>     input clk,\/\/50M<br>     output led,<br>     inout led_emio<br> );<br> parameter T1MS = 26'd50_000_000 ; <br> reg [25:0]time_count =26'd0;\/\/time counter<br> reg led_r;<br> always@(posedge clk)<br>     if(time_count&gt;=T1MS)begin<br>         time_count&lt;=26'd0;<br>         led_r&lt;=~led_r;<br>     end<br>     else time_count&lt;=time_count+1'b1;<br> assign led=led_r;    <br> <br> wire [0:0]GPIO_EMIO;<br> ZYNQ_CORE_wrapper zynq_u(<br>    .GPIO_0_0_tri_io(GPIO_EMIO)<br> );<br> assign led_emio=GPIO_EMIO[0];<br> <br> endmodule<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u516d\u3001\u521b\u5efa\u7ea6\u675f\u6587\u4ef6\uff0c\u5e76\u5b9a\u4e49\u7ba1\u811a<\/strong><\/h2>\n\n\n\n<p>1\uff09Add Source \u2192 Add or create constraints \u70b9Next<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"588\" height=\"300\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-15.png\" alt=\"\" class=\"wp-image-199\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-15.png 588w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-15-300x153.png 300w\" sizes=\"auto, (max-width: 588px) 100vw, 588px\" \/><\/figure>\n\n\n\n<p>\u56e0\u4e3a\u8fd9\u4e2a\u9879\u76ee\u6ca1\u6709\u521b\u5efa\u8fc7\u7ea6\u675f\u6587\u4ef6 \u6240\u4ee5\u8fd9\u91cc\u521b\u5efa\u4e00\u4e2a\u7ea6\u675f\u6587\u4ef6\uff0c\u5e76\u5728File name \u91cc\u8bbe\u7f6e\u7ea6\u675f\u6587\u4ef6\u7684\u540d\u79f0\uff0c\u5e76\u4e14\u70b9\u51fbFINISH \u5b8c\u6210\u7ea6\u675f\u6587\u4ef6\u7684\u521b\u5efa<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"642\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-36.png\" alt=\"\" class=\"wp-image-7551\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-36.png 751w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-36-300x256.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>2\uff09Sources \u2192 Constraints \u91cc\u627e\u5230\u521a\u624d\u521b\u5efa\u7684\u7ea6\u675f\u6587\u4ef6 \u53cc\u51fb\u5e76\u6253\u5f00\u8be5XDC\u7ea6\u675f\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">set_property IOSTANDARD LVCMOS33 [get_ports led_emio]<br>set_property IOSTANDARD LVCMOS33 [get_ports led]<br>set_property IOSTANDARD LVCMOS33 [get_ports clk]<br>set_property PACKAGE_PIN M19 [get_ports clk]<br>set_property PACKAGE_PIN P20 [get_ports led]<br>set_property PACKAGE_PIN P21 [get_ports led_emio]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e03\u3001\u7efc\u5408\u5e03\u7ebf\u548c\u751f\u6210bit\u6587\u4ef6<\/strong><\/h2>\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<\/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<h2 class=\"wp-block-heading\"><strong>\u516b\u3001SDK\u7a0b\u5e8f\u7f16\u5199<\/strong><\/h2>\n\n\n\n<p>1\uff09File\u2192Export\u2192Export hardware\u2026\uff0c\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\u52fe\u9009\u201cinclude bitstream\u201d\uff0c\u70b9\u51fb\u201cOK\u201d\u786e\u8ba4\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"462\" height=\"541\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-20.png\" alt=\"\" class=\"wp-image-207\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-20.png 462w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-20-256x300.png 256w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"332\" height=\"252\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-24.png\" alt=\"\" class=\"wp-image-211\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-24.png 332w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-24-300x228.png 300w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/figure>\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\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"361\" height=\"285\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-21.png\" alt=\"\" class=\"wp-image-212\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-21.png 361w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-21-300x237.png 300w\" sizes=\"auto, (max-width: 361px) 100vw, 361px\" \/><\/figure>\n\n\n\n<p>\u7cfb\u7edf\u5c06\u81ea\u52a8\u6253\u5f00SDK\u5f00\u53d1\u73af\u5883<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"748\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-22.png\" alt=\"\" class=\"wp-image-213\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-22.png 998w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-22-300x225.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-22-768x576.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09\u65b0\u5efa\u4e00\u4e2a\u5de5\u7a0b file\u2192new\u2192Application Project\uff0c\u6765\u65b0\u5efa\u4e00\u4e2a\u201cApplication Project\u201d\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"546\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-23.png\" alt=\"\" class=\"wp-image-214\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-23.png 624w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-23-300x263.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>4\uff09\u5728\u65b0\u5efa\u5de5\u7a0b\u540d\u4e2d\u8f93\u5165\u81ea\u5df1\u7684\u5de5\u7a0b\u540d\u79f0\uff0c\u70b9\u51fbNEXT<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"510\" height=\"713\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-37.png\" alt=\"\" class=\"wp-image-1050\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-37.png 510w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-37-215x300.png 215w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/figure>\n\n\n\n<p>5\uff09\u9009\u62e9\u7a7a\u5de5\u7a0b\uff0c\u70b9\u51fb\u5b8c\u6210FINISH<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"485\" height=\"262\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-26.png\" alt=\"\" class=\"wp-image-216\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-26.png 485w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-26-300x162.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/figure>\n\n\n\n<p>6) \u5728\u5de5\u7a0b\u4e2d\u6dfb\u52a0main.c\u6587\u4ef6 src\u2014&gt;New\u2014&gt;Source File \u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"497\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-48.png\" alt=\"\" class=\"wp-image-1068\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-48.png 683w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-48-300x218.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/figure>\n\n\n\n<p>7\uff09\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u586b\u5165main.c \u5e76\u4e14\u4fdd\u5b58<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"308\" height=\"210\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-49.png\" alt=\"\" class=\"wp-image-1069\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-49.png 308w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-49-300x205.png 300w\" sizes=\"auto, (max-width: 308px) 100vw, 308px\" \/><\/figure>\n\n\n\n<p>8\uff09.\u6253\u5f00\u521a\u624d\u521b\u5efa\u7684main.c<\/p>\n\n\n\n<p>\u7136\u540e \u5199\u5165\u4ee5\u4e0b\u4ee3\u7801\uff08\u4ee3\u7801\u662f\u5728 \u4f8b\u7a0b\u7684\u57fa\u7840\u4e0a\u8fdb\u884c\u7cbe\u7b80\u7684\uff09 \u6709\u4e00\u4e2a\u5730\u65b9\u503c\u5f97\u6ce8\u610f EMIO\u7684 IO\u53e3\u7f16\u53f7 \u662f\u4ece54\u5f00\u59cb\u7684\uff0c\u4e5f\u5c31\u662f\u6211VIVADO \u4e0b\u521b\u5efa\u7684 EMIO\u7aef\u53e3\uff0c\u5728PS\u7aef\u90fd\u662f\u4ece54-55-56 \u4f9d\u6b21\u6392\u5e8f\u7684\uff08\u5c0f\u8d34\u58eb \u5c0f\u4e8e54\u7684\u662fMIO \u4e5f\u5c31\u662f\u82af\u7247PS\u7684\u786c\u4ef6IO\u53e3\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#include \"xparameters.h\"<br>#include \"xgpiops.h\"<br>#include \"xstatus.h\"<br>#include \"xplatform_info.h\"<br><br>#define LED    \t54<br><br>#define GPIO_DEVICE_ID  \tXPAR_XGPIOPS_0_DEVICE_ID<br>XGpioPs Gpio;<br><br><br>void Gpio_Init(void){<br>\tXGpioPs_Config *ConfigPtr;<br><br>\tConfigPtr = XGpioPs_LookupConfig(GPIO_DEVICE_ID);<br>\tXGpioPs_CfgInitialize(&amp;Gpio, ConfigPtr,ConfigPtr-&gt;BaseAddr);<br><br>\tXGpioPs_SetDirectionPin(&amp;Gpio, LED, 1);<br>\tXGpioPs_SetOutputEnablePin(&amp;Gpio, LED, 1);<br>\tXGpioPs_WritePin(&amp;Gpio, LED, 0);<br>}<br><br><br>#define LED_DELAY     10000000<br>volatile int Delay;<br><br>int main(void)<br>{<br>\tGpio_Init();<br><br>\twhile(1){<br><br>\t\tXGpioPs_WritePin(&amp;Gpio, LED, 1);<br>\t\tfor (Delay = 0; Delay &lt; LED_DELAY; Delay++);<br>\t\tXGpioPs_WritePin(&amp;Gpio, LED, 0);<br>\t\tfor (Delay = 0; Delay &lt; LED_DELAY; Delay++);<br><br>\t};<br><br>\treturn 0;<br>}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e5d\u3001\u4e0b\u8f7d\u4e0e\u9a8c\u8bc1<\/strong><\/h2>\n\n\n\n<p>1\uff09\u65b0\u521b\u5efa\u7684\u5de5\u7a0b\u6700\u597d\u5148\u5bf9Run as \u8fdb\u884c\u914d\u7f6e\uff1a\u53f3\u952e\u5de5\u7a0b\uff0c\u5e76\u70b9\u9009Run As -&gt; Run Configurations<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"798\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-27.png\" alt=\"\" class=\"wp-image-7494\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-27.png 750w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-27-282x300.png 282w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>2\uff09 \u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u5bf9Reset entire system \u548c Program FPGA\u4e24\u4e2a\u9009\u9879\u8fdb\u884c\u52fe\u9009\u64cd\u4f5c\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u51fa\u73b0\u4e0b\u8f7d\u7a0b\u5e8fdebug\u7684\u65f6\u5019\u6982\u7387\u6027\u4e0d\u5de5\u4f5c\u7684\u95ee\u9898\u4e86\u3002<strong>\uff08\u8fd9\u6837\u64cd\u4f5c\u540e\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5bf9FPGA\u8fdb\u884c\u914d\u7f6e\uff0c\u4e0d\u9700\u8981\u6309\u4e4b\u524d\u5de5\u7a0b\u624b\u52a8\u5bf9FPGA\u8fdb\u884c\u7f16\u7a0b\u4e86\uff09<\/strong><\/p>\n\n\n\n<p>PS\u5982\u679c\u6ca1\u6709\u51fa\u73b0\u4e0b\u56fe\u5bf9\u8bdd\u6846\uff0c\u53ef\u4ee5\u76f4\u63a5\u53cc\u51fb\u5de6\u4fa7\u7684applicationo \uff08System Debugger\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"705\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-1024x705.png\" alt=\"\" class=\"wp-image-7496\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-1024x705.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-300x206.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-768x528.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29.png 1401w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09\u8bbe\u7f6e\u597d\u4e4b\u540e\uff0c\u9009\u62e9<code>Run As<\/code>&nbsp;-&gt;&nbsp;<code>Launch on Hardware (System Debugger)<\/code>&nbsp;\u8fdb\u884c\u8c03\u8bd5\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"178\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-14.png\" alt=\"\" class=\"wp-image-835\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-14.png 780w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-14-300x68.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-14-768x175.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u4e0b\u8f7d\u6210\u529f\u540e\uff0c\u53ef\u4ee5\u770b\u5230\u677f\u5b50\u4e0a\u7684\u4e24\u4e2aLED\u4ee5\u4e0d\u540c\u7684\u9891\u7387\u6b63\u8fdb\u884c\u95ea\u70c1\uff0c\u5176\u4e2dLED1\u5bf9\u5e94\u7684\u662fFPGA\u903b\u8f91\u529f\u80fd\u4e2d\u7684LED\uff0c \u800cLED2\u5bf9\u5e94\u7684\u662fPS\u903b\u8f91\u4e2d\u7684LED\u706f\u3002 \u4e24\u8005\u95ea\u70c1\u8bc1\u660e\u7a0b\u5e8f\u90fd\u6b63\u5e38\u8fd0\u884c\u4e86\u3002<\/p>\n\n\n\n<p><strong>\u5907\u6ce8 \u8fd9\u91cc\u7684\u8c03\u8bd5\u4e0b\u8f7d\u662f\u6ca1\u6709\u56fa\u5316\u7684\uff0c\u65ad\u7535\u540e \u7a0b\u5e8f\u4f1a\u4e22\u5931\u3002<\/strong>&nbsp;<strong>\u63a5\u4e0b\u6765\u624d\u662f PS\u90e8\u5206\u7684\u56fa\u5316\u8bbe\u7f6e<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5341\u3001\u521b\u5efaTF\u5361\u7684\u955c\u50cf\u6587\u4ef6<\/strong><\/h2>\n\n\n\n<p>\u7a0b\u5e8f\u56fa\u5316\u5206\u4e3a\u4e24\u6b651. \u521b\u5efaFSBL\u6a21\u5757\uff0c2.\u521b\u5efaimage\uff08boot.bin\uff09\u6587\u4ef6<\/p>\n\n\n\n<p>\u5728zynq\u4e0a\u8fd0\u884c\u7a0b\u5e8f\u7684\u65f6\u5019\uff0c\u52a0\u8f7d\u8fc7\u7a0b\u4e2d\u80af\u5b9a\u9700\u8981\u7528\u5230\u4e00\u4e2a\u6587\u4ef6\uff0c\u90a3\u5c31\u662ffsbl\uff0c\u662fzynq\u542f\u52a8\u7b2c\u4e00\u9636\u6bb5\u7684\u52a0\u8f7d\u7a0b\u5e8f\uff0c\u7ecf\u8fc7\u4e86fsbl\u8fd9\u4e00\u9636\u6bb5\uff0c\u540e\u9762\u7cfb\u7edf\u624d\u80fd\u591f\u8fd0\u884c\u88f8\u5954\u7a0b\u5e8f\u6216\u8005\u662f\u5f15\u5bfc\u64cd\u4f5c\u7cfb\u7edf\u7684u-boot<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"277\" height=\"268\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-60.png\" alt=\"\" class=\"wp-image-1098\"\/><\/figure>\n\n\n\n<p><strong>1\uff09\u521b\u5efaFSBL:<\/strong>\u5728SDK\u4e2d\u65b0\u5efa\u5de5\u7a0b\u5982\u4e0b<\/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\u9009\u62e9FSBL\u6a21\u677f<\/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<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><strong>2\uff09\u5236\u4f5cBOOT.bin\u5373TF\u5361\u955c\u50cf\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p>BOOT.bin\u7531fsbl.elf\u6587\u4ef6 vivado\u751f\u6210\u7684fpga \u7684bit\u6587\u4ef6 app\u5de5\u7a0b\u7684elf\u6587\u4ef6\uff08\u8fd9\u91cc\u4e3aled\u5de5\u7a0b\u7684elf\uff09\u4e09\u4e2a\u6587\u4ef6\u7ec4\u6210\u3002\u5728\u751f\u6210image\u7684\u65f6\u5019\u8981\u5206\u522b\u586b\u5165\u4e09\u4e2a\u6587\u4ef6\u7684\u8def\u5f84\uff0c \u8fd9\u91cc\u4e5f\u6709\u4e2a\u5077\u61d2\u7684\u65b9\u6cd5\uff0c\u5c31\u662f\u5728\u70b9 create boot image\u4e4b\u524d\u5148\u9009\u4e2d \u6211\u4eec\u7684APP\u5de5\u7a0b\uff0c\u8fd9\u6837\u7cfb\u7edf\u4f1a\u81ea\u52a8\u4e3a\u6211\u4eec\u6dfb\u52a0\u8def\u5f84\u3002\u5982\u4e0b\u6240\u793a<\/p>\n\n\n\n<p>a) \u5148\u9009\u4e2d \u6211\u4eec\u7684APP\u5de5\u7a0b\u76ee\u5f55\uff0c\u8fd9\u91cc\u662fLED_CODE( \u4e0d\u662fFSBL \u4e5f\u4e0d\u662fBSP \u548c platform)<strong>&nbsp;\u5982\u679c\u4e00\u5f00\u59cb\u5df2\u7ecf\u88ab\u9009\u4e2d\u4e86\uff0c\u8bf7\u5148\u7528\u9f20\u6807\u9009\u62e9\u4e0a\u4e0b\u4efb\u610f\u4e00\u4e2a\u76ee\u5f55\uff0c\u518d\u9009\u62e9\u56deAPP\u76ee\u5f55\uff0c\u5426\u5219\u8def\u5f84\u53ef\u80fd\u4e0d\u81ea\u52a8\u52a0\u8f7d<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"314\" height=\"257\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-63.png\" alt=\"\" class=\"wp-image-1101\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-63.png 314w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-63-300x246.png 300w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/><\/figure>\n\n\n\n<p>b) \u70b9xilinx \u2013&gt;create boot image<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"329\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-3.png\" alt=\"\" class=\"wp-image-412\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-3.png 384w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-3-300x257.png 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/figure>\n\n\n\n<p>\u5728\u754c\u9762\u91cc\u5206\u522b\u8bbe\u7f6e boot.bin\u7684\u8f93\u51fa\u8def\u5f84\uff0c\u4ee5\u53ca\u751f\u6210boot.bin\u9700\u8981\u7684\u4e09\u4e2a\u6587\u4ef6\u7684\u8def\u5f84(\u8fd9\u91cc\u6709\u4e00\u4e2a\u5077\u61d2\u7684\u65b9\u6cd5\uff0c\u5c31\u662f\u5728\u70b9\u4e0bCreate Boot Image \u4e4b\u524d\u5148\u9009\u4e2d\u6211\u4eec\u7684APP\u5de5\u7a0b)\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5982\u679c\u6ca1\u6709\u51fa\u73b0\u4e09\u4e2a\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u8bf7\u91cd\u8bd5\u4e0a\u4e00\u6b65\u3002 \u5982\u679c\u6709\u4e09\u4e2a\u6587\u4ef6\u8def\u5f84\uff0c\u5219\u76f4\u63a5\u70b9create image\u751f\u6210\u955c\u50cf<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-59-1024x469.png\" alt=\"\" class=\"wp-image-7909\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-59-1024x469.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-59-300x137.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-59-768x352.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-59-1536x703.png 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-59.png 1662w\" 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>\u5341\u4e00\u3001 \u9a8c\u8bc1SD TF \u5361\u542f\u52a8<\/strong><\/h2>\n\n\n\n<p>1\uff09\u5728\u521a\u624dcreate boot image \u4e2d\u7684boot.bin\u6587\u4ef6\u7684\u5bfc\u51fa\u6587\u4ef6\u5939\u4e2d\uff0c\u590d\u5236\u51fa\u8fd9\u4e24\u4e2a\u6587\u4ef6\u5230\u7a7a\u7684TF\u5361\u4e2d \uff08\u5207\u8bb0 \u9700\u8981\u683c\u5f0f\u5316\u6210FAT32\u683c\u5f0f\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"383\" height=\"222\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-58.png\" alt=\"\" class=\"wp-image-7902\" style=\"width:257px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-58.png 383w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-58-300x174.png 300w\" sizes=\"auto, (max-width: 383px) 100vw, 383px\" \/><\/figure>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5728SDK\u8f6f\u4ef6\u4e2d\u76f4\u63a5COPY \u751f\u6210\u7684boot.bin\u6587\u4ef6,\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"657\" height=\"639\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-49.png\" alt=\"\" class=\"wp-image-7586\" style=\"width:430px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-49.png 657w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-49-300x292.png 300w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/figure>\n\n\n\n<p>2. \u5c06TF \u5361\u63d2\u5165\u5230 \u4e3b\u677f\u7684\u5361\u69fd\u4e2d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"329\" height=\"285\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-73.png\" alt=\"\" class=\"wp-image-1127\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-73.png 329w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-73-300x260.png 300w\" sizes=\"auto, (max-width: 329px) 100vw, 329px\" \/><\/figure>\n\n\n\n<p>3. \u5c06\u677f\u5b50\u8bbe\u7f6e\u6210 TF\u5361\u542f\u52a8\u6a21\u5f0f \u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"300\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-32.png\" alt=\"\" class=\"wp-image-2914\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-32.png 298w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-32-150x150.png 150w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-32-100x100.png 100w\" sizes=\"auto, (max-width: 298px) 100vw, 298px\" \/><\/figure>\n\n\n\n<p>4.\u91cd\u65b0\u65ad\u7535\u518d\u4e0a\u7535\uff08<strong>\u6216\u8005\u6309\u4e0bPOR_RST\u952e<\/strong>\uff09\uff0c\u6b63\u5e38\u7684\u8bdd\u4e24\u4e2aLED \u4f1a\u5f00\u59cb\u95ea\u70c1\uff0c\u8bf4\u660e\u677f\u5b50\u7684FPGA \u548cPS\u90e8\u5206\u7684\u4ee3\u7801\u90fd\u6b63\u5e38\u5de5\u4f5c\u4e86\uff0c\u8bc1\u660eTF\u5361\u542f\u52a8\u6210\u529f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e0d\u542f\u52a8\u95ee\u9898\u6392\u67e5<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>TF\u5361\u7684 \u683c\u5f0f\u4e0d\u5bf9 \u5fc5\u987b\u662fFAT32\u683c\u5f0f\u3002<\/li>\n\n\n\n<li>TF\u5361\u6709\u591a\u4e2a\u5206\u533a\uff0c\u9700\u8981\u7edf\u4e00\u6210\u4e00\u4e2a\u518d\u8fdb\u884c\u683c\u5f0f\u5316,\uff08\u7528\u8001\u6bdb\u6843\u7b49\u5de5\u5177\u505a\u8fc7\u542f\u52a8\u76d8\u7684\u4f1a\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\uff09\u3002<\/li>\n\n\n\n<li>TF\u5361\u4e0d\u652f\u6301\uff0c\u5c1d\u8bd5\u66f4\u6362\u4e0d\u540c\u54c1\u724c \u4e0d\u540c\u5bb9\u91cf\u5927\u5c0f\u7684TF\u5361\uff0c \u5927\u5bb9\u91cf\uff0c\u8d8a\u9ad8\u901f\u7684TF\u5361\u7684\u517c\u5bb9\u6027\u8d8a\u5dee\uff08PS \u6211\u8fd9\u8fb9\u6d4b\u8bd5 128g\u7684\u95ea\u8fea\u9ad8\u901f\u76d8\u4e5f\u80fd\u652f\u6301\uff09\u3002<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u672c\u6587\u7684\u5b8c\u6574\u5de5\u7a0b\u4e0b\u8f7d\uff1a<a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/07_PS_TF_BOOT_TEST.zip\">07_PS_TF_BOOT_TEST<\/a><\/strong><\/li>\n\n\n\n<li><strong>VIVADO\u7684\u7248\u672c\uff1a2018.3<\/strong><\/li>\n\n\n\n<li><strong>\u5de5\u7a0b\u9002\u7528\u4e3b\u677f: Smart ZYNQ (SP \/ SP2 \/ SL) \uff08\u4e0d\u9002\u7528\u4e8eSmart ZYNQ \u6807\u51c6\u7248&nbsp;<\/strong>\uff09<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>ZYNQ \u6709\u591a\u79cd\u542f\u52a8\u65b9\u5f0f\u53ef\u4ee5\u9009\u62e9\uff0c\u9664\u4e86\u4e4b\u524d\u4ecb\u7ecd\u7684\u4eceQSPI FLASH \u7684\u65b9\u5f0f\u6765\u542f\u52a8\u5916\uff0c\u8fd8\u53ef\u4ee5\u8ba9\u7cfb\u7edf\u4eceTF \u5361\u7684\u65b9\u5f0f\u6765\u542f\u52a8\uff0c\u672c\u6587\u5c06\u901a\u8fc7\u4e00\u4e2aEMIO \u70b9LED \u706f\u7684\u65b9\u5f0f\u6765\u6f14\u793a TF \u5361\u7684\u542f\u52a8\u8fc7\u7a0b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-3873","post","type-post","status-publish","format-standard","hentry","category-smart-zynq-spsl"],"views":1141,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/3873","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=3873"}],"version-history":[{"count":19,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/3873\/revisions"}],"predecessor-version":[{"id":8195,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/3873\/revisions\/8195"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=3873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=3873"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=3873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}