{"id":4837,"date":"2023-08-29T15:46:50","date_gmt":"2023-08-29T07:46:50","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=4837"},"modified":"2024-10-24T13:05:44","modified_gmt":"2024-10-24T05:05:44","slug":"fpga_qspi_flash","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2023\/08\/29\/fpga_qspi_flash\/","title":{"rendered":"\u57fa\u4e8eSmart ZYNQ (SP\/SP2\/SL \u7248) \u7684PS\u5b9e\u9a8c\u516d (\u8865\u5145)  \u7eafFPGA\u7a0b\u5e8f \u56fa\u5316\u81f3QSPI FLASH"},"content":{"rendered":"\n<p>\u524d\u4e00\u7ae0\u8282\u4ecb\u7ecd\u4e86ZYNQ\u7684\u56fa\u5316\u8fc7\u7a0b\uff0c\u4f46\u662f\u524d\u9635\u5b50\u7535\u8d5b\u7684\u65f6\u5019\u597d\u591a\u5c0f\u4f19\u4f34\u95ee\u6211\u7eafFPGA\u7684\u4ee3\u7801\u8be5\u5982\u4f55\u56fa\u5316\uff0c\u5176\u5b9e\u8fc7\u7a0b\u662f\u4e00\u6837\u7684,\u5185\u5bb9\u4e0a\u7701\u53bb\u4e86PS\u5e94\u7528\u90e8\u5206\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>\u672c\u7ae0\u4f5c\u4e3aPS\u5b9e\u9a8c\u516d\u7684\u8865\u5145\uff0c\u5bf9\u4e8e\u6709\u7eafFPGA\u5de5\u7a0b\u56fa\u5316\u9700\u6c42\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u7ffb\u770b\u3002\u7bc7\u5e45\u4e2d\u6709\u5927\u91cf\u548cPS\u5b9e\u9a8c\u516d\u662f\u4e00\u81f4\u7684\uff0c\u9009\u62e9\u6027\u770b\u3002 \u672c\u7ae0\u8282\u5c06\u6f14\u793a\u5bf9\u7ae0\u8282\u4e00\u7684LED\u5de5\u7a0b\u8fdb\u884c\u56fa\u5316\u3002<\/p>\n\n\n\n<p>\u5f88\u591a\u5c0f\u4f19\u4f34\u90fd\u8bf4\u81ea\u5df1\u7684\u7a0b\u5e8f\u53ea\u6709FPGA\u7684verilog \u7a0b\u5e8f\uff0c\u4e0d\u9700\u8981\u7528\u5230PS\uff0c\u95ee\u6211\u600e\u4e48\u56fa\u5316\u597d\uff0c\u8fd9\u4e2a\u7406\u89e3\u662f\u9519\u8bef\u7684\uff0c\u56e0\u4e3a\u4e0d\u8bba\u5982\u4f55ZYNQ\u82af\u7247\u7684\u542f\u52a8\u90fd\u9700\u8981PS\u6765\u4f5c\u5f15\u5bfc\u7684\uff0c\u5305\u62ecFPGA\u7684\u4ee3\u7801\uff0c\u4e5f\u662f\u9700\u8981PS\u6765\u52a0\u8f7d\u5e76\u914d\u7f6e\u3002\u8be6\u7ec6\u542f\u52a8\u8fc7\u7a0b\u5982\u4e0b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001ZYNQ\u542f\u52a8\u6d41\u7a0b\u4ecb\u7ecd<\/strong><\/h2>\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\uff09\u5bf9\u4e8e\u666e\u901aFPGA\uff08\u975eZYNQ\uff09\u56fa\u5316\u662f\u76f4\u63a5\u5c06BIT\u6587\u4ef6\u901a\u8fc7QSPI\u5199\u5165FLASH\u5c31\u884c\u7684\uff0c<strong>\u4f46\u662f\u5bf9\u4e8e ZYNQ \u6765\u8bf4\uff0c\u5fc5\u987b\u8981\u6709 PS \u7aef\u7684\u914d\u5408\u624d\u80fd\u56fa\u5316\u7a0b\u5e8f<\/strong><\/p>\n\n\n\n<p>3\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>4\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>5\uff09<strong>\u56fa\u5316\u524d\u7684\u64cd\u4f5c\uff1a\u8981\u60f3\u5bf9FLASH \u82af\u7247\u8fdb\u884c\u7a0b\u5e8f\u7684\u56fa\u5316\uff0c\u6211\u4eec\u9700\u8981\u8ba9\u677f\u5b50\u4e34\u65f6\u4eceJTAG\u8c03\u8bd5\u6a21\u5f0f\u8fdb\u884c\u542f\u52a8\uff08\u4e34\u65f6\u6027\u7684\uff09 \uff0c\u53ea\u9700\u8981\u5728\u4e0a\u7535\u524d\u8ba9\u677f\u5b50\u62e8\u7801\u5f00\u5173\u4fdd\u6301\u5728S1\u548cS2\u90fd\u5728ON\u7684\u72b6\u6001\u518d\u6267\u884c\u4e0a\u7535\u64cd\u4f5c\u3002<\/strong>&nbsp;\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"376\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-71.png\" alt=\"\" class=\"wp-image-2536\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-71.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-71-239x300.png 239w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/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\u7ecd\u7eafFPGA\u7684\u56fa\u5316\u6d41\u7a0b\u3002\u5b9e\u9a8c\u4e2d\u6709\u4e00\u4e2aLED\u706f\uff0c\u8fd9\u4e2aLED\u7531FPGA\u903b\u8f91\u63a7\u5236\u3002\u706f\u7684\u63a7\u5236\u903b\u8f91\u6ca1\u6709PS\u90e8\u5206\u53c2\u4e0e\uff08\u4f46\u662f\u542f\u52a8\u7684\u8fc7\u7a0b\u4ecd\u7136\u9700\u8981PS\u7684FSBL\u53c2\u4e0e\uff09<\/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>&nbsp;(\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\u56e0\u4e3a\u672c\u5de5\u7a0b\u6211\u4eec\u7528\u4e0d\u5230AXI\u529f\u80fd\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u52fe\u9664 \u7981\u7528 AXI\u7684\u529f\u80fd\u90e8\u5206<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"996\" height=\"373\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-132.png\" alt=\"\" class=\"wp-image-4850\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-132.png 996w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-132-300x112.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-132-768x288.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>6) \u91cd\u8981\u7684\u4e00\u6b65\u5728block design \u7684\u8bbe\u7f6e\u754c\u9762 \u4f7f\u80fdQSPI\u7684\u529f\u80fd \u5982\u4e0b\u56fe\u6240\u793a\uff08\u5f53QSPI \u65f6\u949f\u5927\u4e8e40MHZ\u7684\u65f6\u5019 \u5c31\u9700\u8981\u52fe\u9009Feedback clk\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"643\" height=\"531\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-56.png\" alt=\"\" class=\"wp-image-1089\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-56.png 643w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-56-300x248.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/figure>\n\n\n\n<p>7\uff09\u6700\u540e \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  <strong>\uff08\u5176\u5b9e\u8fd9\u4e00\u6b65\u4e0d\u64cd\u4f5c\u53cd\u800c\u4f1a\u66f4\u7b80\u6d01\uff0c\u56e0\u4e3aDDR\u548cFIXED_IO \u786c\u4ef6\u4e0a\u90fd\u662f\u8fde\u63a5\u4e0a\u7684\uff09<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"886\" height=\"449\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-133.png\" alt=\"\" class=\"wp-image-4851\" style=\"width:470px;height:238px\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-133.png 886w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-133-300x152.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-133-768x389.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>8\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 size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"588\" height=\"340\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-134.png\" alt=\"\" class=\"wp-image-4854\" style=\"width:425px;height:246px\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-134.png 588w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-134-300x173.png 300w\" sizes=\"auto, (max-width: 588px) 100vw, 588px\" \/><\/figure>\n\n\n\n<p>9\uff09\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u91cc\u4fdd\u6301\u9ed8\u8ba4<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><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\" style=\"width:403px;height:230px\" 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>10\uff09\u8f6f\u4ef6\u81ea\u52a8\u4e3a\u6211\u4eec\u751f\u6210HDL\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"494\" height=\"204\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-135.png\" alt=\"\" class=\"wp-image-4855\" style=\"width:371px;height:153px\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-135.png 494w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-135-300x124.png 300w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/figure>\n\n\n\n<p><\/p>\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> );<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>=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> 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 \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\u662fFPGA\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>\u53cc\u51fb\u6253\u5f00LED.v\uff0c\u5e76\u5728 endmodule\u7684 \u4e0a\u65b9\u6dfb\u52a0ZYNQ_CORE \u4f8b\u5316\u7684\u4ee3\u7801<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"759\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-137-1024x759.png\" alt=\"\" class=\"wp-image-4858\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-137-1024x759.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-137-300x222.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-137-768x570.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-137.png 1107w\" 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\">ZYNQ_CORE_wrapper zynq_u(\n \n );<\/pre>\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\uff0c\u5176\u5b9e\u8fd9\u91cc\u6211\u4e5f\u5077\u61d2\u4e86<\/strong>\uff0c\u56e0\u4e3a\u672c\u7ae0\u4e2dZYNQ\u6ca1\u6709\u6dfb\u52a0EMIO\u7b49\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\u6709EMIO \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>\u4fdd\u5b58\u5e76\u7f16\u8bd1\u540e\uff0c\u53ef\u4ee5\u770b\u5230LED\u53c8\u56de\u5230\u4e86\u9876\u5c42\u6a21\u5757\uff0c\u800czynq_u\u6210\u4e86LED\u7684\u5b50\u6a21\u5757\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"312\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-138.png\" alt=\"\" class=\"wp-image-4864\" style=\"width:329px;height:201px\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-138.png 511w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-138-300x183.png 300w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/figure>\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 PACKAGE_PIN P20 [get_ports led]<br>set_property PACKAGE_PIN M19 [get_ports clk]<br>set_property IOSTANDARD LVCMOS33 [get_ports led]<br>set_property IOSTANDARD LVCMOS33 [get_ports clk]<\/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\u3001\u5bfc\u51faHardware \u5e76\u6253\u5f00SDK\u5de5\u7a0b<\/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<h2 class=\"wp-block-heading\"><strong>\u4e5d\u3001\u8fdb\u884c\u7a0b\u5e8f\u7684\u955c\u50cf\u5236\u4f5c\u53ca\u56fa\u5316\u64cd\u4f5c<\/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\u7528\u4e8e\u56fa\u5316\u5230FLASH<\/strong>\u3002<\/p>\n\n\n\n<p>BOOT.bin\u7531fsbl.elf\u6587\u4ef6 \uff0cvivado\u751f\u6210\u7684fpga \u7684bit\u6587\u4ef6\uff0c\u4ee5\u53ca app\u5de5\u7a0b\u7684elf\u6587\u4ef6<strong>\uff08\u672c\u7ae0\u4e2d\u6ca1\u6709app\u7684elf\uff0c\u6240\u4ee5\u4e0d\u6dfb\u52a0\uff09<\/strong>\u4e09\u4e2a\u6587\u4ef6\u7ec4\u6210\u3002\u5728\u751f\u6210image\u7684\u65f6\u5019\u8981\u5206\u522b\u586b\u5165\u5404\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\u7684FSBL\u5de5\u7a0b\uff08\u6709APP\u5219\u9009APP\u5de5\u7a0b\uff0c\u672c\u7ae0\u6ca1\u6709\u5c31\u9009FSBL\uff09\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\u7684\u5de5\u7a0b\u76ee\u5f55\uff0c\u8fd9\u91cc\u662fFSBL( \u5982\u679c\u5de5\u7a0b\u4e2d\u542bAPP\u5e94\u7528\uff0c\u5c31\u9009APP\u7684\u5de5\u7a0b\uff0c\u672c\u7ae0\u6ca1\u6709APP\u6240\u4ee5\u76f4\u63a5\u9009FSBL)<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\u56deFSBL\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 size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"514\" height=\"291\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-139.png\" alt=\"\" class=\"wp-image-4865\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-139.png 514w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-139-300x170.png 300w\" sizes=\"auto, (max-width: 514px) 100vw, 514px\" \/><\/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\u4e24\u4e2a\u6587\u4ef6<strong>\uff08\u5982\u679cPS\u5e26APP\uff0c\u5219\u8fd9\u91cc\u662f\u4e09\u4e2a\u6587\u4ef6\uff0c\u672c\u8282\u662f\u7eafFPGA\u56fa\u5316\u6f14\u793a\u4e0d\u5e26PS\u5e94\u7528\u6240\u4ee5\u662f\u4e24\u4e2a\u6587\u4ef6\uff09<\/strong>\u7684\u8def\u5f84\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5982\u679c\u6ca1\u6709\u51fa\u73b0\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u8bf7\u91cd\u8bd5\u4e0a\u4e00\u6b65\u64cd\u4f5c\u3002 \u5982\u679c\u6709\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=\"509\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-142-1024x509.png\" alt=\"\" class=\"wp-image-8076\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-142-1024x509.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-142-300x149.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-142-768x382.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-142-1536x763.png 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-142.png 1582w\" 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>3\uff09 \u70e7\u5f55 \u955c\u50cf<\/strong><\/h2>\n\n\n\n<p>1\uff09\u751f\u6210\u5b8cboot.bin\u540e\uff0c\u4e0b\u4e00\u6b65\u5c06boot.bin \u4e0b\u8f7d\u5230QSPI flash \u4e2d\uff0c\u70b9Xilinx -&gt; Program Flash<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"225\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-222.png\" alt=\"\" class=\"wp-image-1907\"\/><\/figure>\n\n\n\n<p>2\uff09\u6309\u4e0b\u56fe\u64cd\u4f5c \u5bfc\u5165 boot\u955c\u50cf \u6587\u4ef6\uff0c\u548cfsbl.elf\u6587\u4ef6(<strong>\u9700\u8981\u81ea\u5df1\u5bfc\u5165\u8def\u5f84)<\/strong>\uff0c\u5c06flash type \u8bbe\u7f6e\u4e3a qspi-x4-sig \uff0c\u7136\u540e<strong>\u5c06\u677f\u5b50\u62e8\u7801\u5f00\u5173\u8c03\u6574\u5230<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"350\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-143-1024x350.png\" alt=\"\" class=\"wp-image-8077\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-143-1024x350.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-143-300x102.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-143-768x262.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-143-1536x524.png 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/image-143.png 1623w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u6309\u4e0a\u56fe\u64cd\u4f5c \u5bfc\u5165 boot\u955c\u50cf \u6587\u4ef6\uff0c\u548cfsbl.elf\u6587\u4ef6(<strong>\u9700\u8981\u81ea\u5df1\u5bfc\u5165\u8def\u5f84)<\/strong>\uff0c\u5c06flash type \u8bbe\u7f6e\u4e3a qspi-x4-sig \uff0c\u7136\u540e<strong>\u5c06\u677f\u5b50\u62e8\u7801\u5f00\u5173\u8c03\u6574\u5230JTAG\u6a21\u5f0f\uff0c\u5e76\u91cd\u65b0\u4e0a\u7535(\u6216\u8005\u6309\u4e0bPOR RST\u952e\uff09<\/strong>\uff0c\u4e4b\u540e\u518d\u70b9\u51fbPROGRAM \u5f00\u59cb\u4e0b\u8f7d<strong>(\u5fc5\u987b\u5728JTAG\u6a21\u5f0f\u4e0b\uff0c\u62e8\u7801\u5f00\u5173\u8c03\u6574\u5230JTAG \u6a21\u5f0f \u5e76\u4e14\u91cd\u542f\u677f\u5b50\u6216\u8005\u6309\u4e0bPOR RST\u952e)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"376\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-71.png\" alt=\"\" class=\"wp-image-2536\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-71.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-71-239x300.png 239w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p>3\uff09<strong>\u70b9\u51fbPROGRAM<\/strong>\uff0c<strong>\u5f85\u7a0b\u5e8f\u4e0b\u8f7d\u6210\u529f\u540e\uff0c\u5c06\u8df3\u7ebf\u4f4d\u7f6e\u6362\u56de\u5230QSPI\u4e0a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"317\" height=\"405\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-75.png\" alt=\"\" class=\"wp-image-2545\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-75.png 317w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-75-235x300.png 235w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/figure>\n\n\n\n<p>4\uff09\u91cd\u65b0\u4e0a\u7535<strong>(\u6216\u8005\u6309\u4e0bPOR RST\u952e\uff09<\/strong>\uff0c \u6b63\u5e38\u7684\u8bdd\u4e24\u4e2aLED \u4f1a\u5f00\u59cb\u95ea\u70c1\uff0c\u8bf4\u660e\u677f\u5b50\u7684FPGA \u5df2\u7ecf\u6b63\u5e38\u521d\u59cb\u5316\u5b8c\u6574\uff0cflash \u4e0b\u8f7d\u6210\u529f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56fa\u5316\u5931\u8d25\u95ee\u9898\u6392\u67e5\uff1a<\/strong><\/h2>\n\n\n\n<p>1\uff09 \u5982\u679c\u4e0b\u8f7d\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e0b\u56fe\u6240\u793a\uff0c\u8bf4\u660e\u7cfb\u7edf\u4e0a\u7535\u65f6\u6ca1\u6709\u6b63\u5e38\u8fdb\u5165JTAG \u8c03\u8bd5\u6a21\u5f0f\uff0c\u8bf7\u8fdb\u5165JTAG\u6a21\u5f0f\u540e\u518d\u5c1d\u8bd5\u4e0b\u8f7d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"165\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-10.png\" alt=\"\" class=\"wp-image-419\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-10.png 401w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-10-300x123.png 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/figure>\n\n\n\n<p>2\uff09\u5982\u679c\u4f60\u5728\u56fa\u5316\u7684\u65f6\u5019\u5361\u5728\u8fd9\u4e2a\u754c\u9762\uff0c\u8bf7\u68c0\u67e5VIVADO \u5de5\u7a0b\u4e0bFLASH\u7684\u76f8\u5173\u8bbe\u7f6e\u9879<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"826\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-41.png\" alt=\"\" class=\"wp-image-7560\" style=\"width:415px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-41.png 1017w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-41-300x244.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-41-768x624.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u8bbe\u7f6e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"319\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-42.png\" alt=\"\" class=\"wp-image-7561\" style=\"width:319px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-42.png 649w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-42-300x147.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\n\n\n\n<p>3\uff09 \u5982\u679c\u4f60\u7684\u7a0b\u5e8f\u56fa\u5316\u6210\u529f\u4e86\uff0c\u4f46\u662f\u8c03\u6574\u6210QSPI\u6a21\u5f0f\u91cd\u65b0\u4e0a\u7535\u6216\u8005\u590d\u4f4d\u540e\uff0c\u7cfb\u7edf\u6ca1\u6709\u6b63\u5e38\u542f\u52a8\uff0c\u8bf7\u68c0\u67e5Vivado\u4e2d \u662f\u5426\u6b63\u901a\u8fc7JTAG\u8fde\u63a5\u7740\u82af\u7247\uff0c\u8fde\u63a5\u60c5\u51b5\u4e0b\u4f1a\u5bfc\u81f4\u542f\u52a8\u540e\u9ed8\u8ba4\u8fdeVivado\u4e86\uff0c\u5bfc\u81f4QSPI\u542f\u52a8\u5931\u8d25\u7684\u60c5\u51b5\u3002 \u8fd9\u91cc\u76f4\u63a5\u53f3\u952e\u8c03\u8bd5\u5668\uff0c\u5e76\u4e14\u70b9\u9009Close Target \u5173\u95ed\u76ee\u6807\u8fde\u63a5\u5373\u53ef\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"599\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-44.png\" alt=\"\" class=\"wp-image-7565\" style=\"width:454px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-44.png 766w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-44-300x235.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>4\uff09 \u5176\u4f59\u95ee\u9898\u5927\u5bb6\u5c1d\u8bd5\u91cd\u542f\u7535\u8111\uff0c\u91cd\u542f\u8f6f\u4ef6\uff0c\u91cd\u65b0\u8fde\u63a5\u4e3b\u677f\u4e4b\u540e\u518d\u5c1d\u8bd5\u770b\u770b\u3002\uff08\u5982\u679c\u7535\u8111\u5f00\u673a\u540e\u8fde\u63a5\u8fc7\u4e0d\u540c\u7684JTAG\u4e0b\u8f7d\u5668\uff0c\u8bf7\u9000\u51fa\u591a\u4f59\u4e0b\u8f7d\u5668\uff0c\u5e76\u91cd\u542f\u540e\u518d\u5c1d\u8bd5\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u672c\u6587\u7684\u5b8c\u6574\u5de5\u7a0b\u4e0b\u8f7d\uff1a<\/strong><a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/08\/06_PART2_FPGA_QSPI_BOOT_TEST.zip\">06_PART2_FPGA_QSPI_BOOT_TEST<\/a><\/li>\n\n\n\n<li><strong>VIVADO\u7684\u7248\u672c\uff1a2018.3<\/strong><\/li>\n\n\n\n<li><strong>\u5de5\u7a0b\u521b\u5efa\u76ee\u5f55\uff1aE:\\Smart_ZYNQ_SP_SL\\SDK\\06_PART2_FPGA_QSPI_BOOT_TEST<\/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>\u524d\u4e00\u7ae0\u8282\u4ecb\u7ecd\u4e86ZYNQ\u7684\u56fa\u5316\u8fc7\u7a0b\uff0c\u4f46\u662f\u524d\u9635\u5b50\u7535\u8d5b\u7684\u65f6\u5019\u597d\u591a\u5c0f\u4f19\u4f34\u95ee\u6211\u7eafFPGA\u7684\u4ee3\u7801\u8be5\u5982\u4f55\u56fa\u5316\uff0c\u5176\u5b9e\u8fc7\u7a0b\u662f\u4e00\u6837\u7684\uff0c\u4f46\u662f\u8003\u8651\u5230\u597d\u591a\u4eba\u6709\u8fd9\u4e2a\u9700\u6c42\uff0c\u6240\u4ee5\u8fd9\u91cc\u5355\u72ec\u505a\u4e2a\u8865\u5145\u7ae0\u8282<\/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-4837","post","type-post","status-publish","format-standard","hentry","category-smart-zynq-spsl"],"views":2597,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/4837","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=4837"}],"version-history":[{"count":42,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/4837\/revisions"}],"predecessor-version":[{"id":8446,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/4837\/revisions\/8446"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=4837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=4837"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=4837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}