{"id":5360,"date":"2023-11-04T10:29:48","date_gmt":"2023-11-04T02:29:48","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=5360"},"modified":"2023-11-04T10:43:37","modified_gmt":"2023-11-04T02:43:37","slug":"vitis","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2023\/11\/04\/vitis\/","title":{"rendered":"vivado 2019.2 \u4ee5\u4e0a\u5e26vitis \u7248\u672c\u7684\u7b80\u5355\u6559\u7a0b\u6f14\u793a"},"content":{"rendered":"\n<p>\u56e0\u4e3a\u672c\u7f51\u7ad9\u7684\u8d44\u6599\u5927\u591a\u90fd\u662f\u57fa\u4e8e2018.3\u6765\u8fdb\u884c\u8bbe\u8ba1\u7684\uff0c\u6709\u5f88\u591avitis\u7528\u6237\u8868\u793a\u4e0d\u77e5\u9053\u8be5\u5982\u4f55\u8fdb\u884c\u64cd\u4f5c\uff0c\u6240\u4ee5\u672c\u6587\u505a\u4e86\u4e00\u4e2a\u7b80\u5355\u7684vitis\u4f7f\u7528\u6559\u7a0b\uff0c\u4ec5\u4f9b\u5927\u5bb6\u53c2\u8003\u3002<\/p>\n\n\n\n<p><strong>\u672c\u6587\u4ee5vivado 2020.2\u7248\u672c\u4e3a\u4f8b \uff0c\u5176\u4ed6\u7248\u672c\u81ea\u884c\u5c1d\u8bd5<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u5907\u6ce8\uff1a\u6b64\u6587\u672c\u4e2d\u7684\u82af\u7247\u578b\u53f7\uff0cDDR\u578b\u53f7\uff0c\u4ee5\u53caLED\u7684IO \u662f\u6839\u636eSmart ZYNQ SP\u4ee5\u53caSL\u4e3b\u677f\u6765\u7f16\u5199\u7684\uff0c\u5982\u679c\u662fSmart ZYNQ \u6807\u51c6\u7248\uff0c\u6216\u8005\u5176\u4ed6\u677f\u5b50\u8bf7\u6839\u636e\u677f\u5b50\u7684\u5185\u5bb9\u81ea\u884c\u4fee\u6539<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u672c\u6f14\u793a\u5de5\u7a0b\u901a\u8fc7\u6f14\u793aPS\u7684 EMIO LED \u70b9\u706f\u7a0b\u5e8f\uff0c\u6765\u8ba9\u5bf9vitis\u4e0d\u592a\u719f\u6089\u7684\u7528\u6237\u4e5f\u80fd\u5feb\u901f\u4e0a\u624bvitis\u3002<strong>\uff08\u5907\u6ce8 vivado \u90e8\u5206\u548c2018.3\u7248\u672c\u5dee\u522b\u4e0d\u5927\uff0c\u53ef\u4ee5\u53c2\u80032018.3\u90e8\u5206\u7684\u4f8b\u7a0b\uff09<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001 \u786c\u4ef6\u4ecb\u7ecd<\/strong><\/h2>\n\n\n\n<p>\u4e3a\u4e86\u6f14\u793a\u4e24\u4e2a\u6309\u952e\u7684\u529f\u80fd\uff0c\u8fd9\u91cc\u518d\u5f15\u5165\u4e24\u4e2a\u6307\u793a\u706f\uff0c\u5c06LED\u7684\u9a71\u52a8\u811a\u62c9\u9ad8\uff0c\u6307\u793a\u706f\u4eae\uff0c\u62c9\u4f4e\u6307\u793a\u706f\u7184\u706d\uff0c\u6307\u793a\u706f\u5206\u522b\u63a5\u5728\u4e3b\u82af\u7247\u7684P20\u548cP21\u811a<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"640\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-21.png\" alt=\"\" class=\"wp-image-3845\" style=\"aspect-ratio:0.9734375;width:295px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-21.png 623w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/04\/image-21-292x300.png 292w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u521b\u5efaVivado\u5de5\u7a0b<\/strong><\/h2>\n\n\n\n<p>1) \u5177\u4f53\u6b65\u9aa4 \u65b0\u5efa\u4e00\u4e2aVIVADO \u5de5\u7a0b\uff0c\u6253\u5f00\u8f6f\u4ef6 \u9009\u4e2dCreate Project, \u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"230\" height=\"136\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/Create-Project.png\" alt=\"\" class=\"wp-image-35\"\/><\/figure>\n\n\n\n<p>2\uff09\u70b9\u51fbNEXT \uff0c\u5728\u51fa\u73b0\u7684\u7b2c\u4e8c\u4e2a\u5bf9\u8bdd\u6846\u201cProject name\u201d\u4e2d\u8f93\u5165\u5de5\u7a0b\u540d\uff1b\u5728\u201cProject location\u201d\u4e2d\u9009\u62e9\u4fdd\u5b58\u8def\u5f84\uff1b\u52fe\u9009\u201cCreate project subdirectory\u201d\uff0c\u6700\u540e\u70b9\u51fb\u201cNext\u201d&nbsp;<strong>\u5907\u6ce8\uff0c\u6240\u6709\u7684\u8def\u5f84\u5747\u4e0d\u80fd\u51fa\u73b0\u4e2d\u6587\u540d\u79f0<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"854\" height=\"516\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-4.png\" alt=\"\" class=\"wp-image-5363\" style=\"aspect-ratio:1.6550387596899225;width:533px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-4.png 854w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-4-300x181.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-4-768x464.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3)\u70b9\u51fb RTL PROJECT \u9009\u9879\uff0c\u70b9\u51fbNEXT<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"868\" height=\"850\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-5.png\" alt=\"\" class=\"wp-image-5364\" style=\"aspect-ratio:1.0211764705882354;width:530px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-5.png 868w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-5-300x294.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-5-768x752.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>4\uff09 \u7b2c\u56db\u6b65Add Sources \u9009\u9879\u76f4\u63a5\u7559\u7a7a\uff0cNEXT<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"856\" height=\"842\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-7.png\" alt=\"\" class=\"wp-image-5367\" style=\"aspect-ratio:1.0166270783847982;width:522px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-7.png 856w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-7-300x295.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-7-768x755.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\u7b2c\u4e94\u6b65Add Constraints \u9009\u9879\u76f4\u63a5\u7559\u7a7a\uff0cNEXT<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"860\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-6.png\" alt=\"\" class=\"wp-image-5366\" style=\"aspect-ratio:1.013953488372093;width:521px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-6.png 872w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-6-300x296.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-6-768x757.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-6-100x100.png 100w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>6\uff09\u9009\u62e9\u82af\u7247\u578b\u53f7&nbsp;<strong>\uff08xc7z020clg484-1\uff09<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"847\" height=\"847\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-8.png\" alt=\"\" class=\"wp-image-5368\" style=\"aspect-ratio:1;width:525px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-8.png 847w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-8-300x300.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-8-150x150.png 150w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-8-768x768.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-8-100x100.png 100w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>7\uff09\u786e\u8ba4\u6240\u9009\u4fe1\u606f \u70b9\u51fb\u201cFinish\u201d\uff0c\u5b8c\u6210vivado\u7684\u5de5\u7a0b\u521b\u5efa<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"860\" height=\"861\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-9.png\" alt=\"\" class=\"wp-image-5370\" style=\"aspect-ratio:0.9988385598141696;width:521px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-9.png 860w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-9-300x300.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-9-150x150.png 150w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-9-768x769.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-9-100x100.png 100w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001 \u521b\u5efa\u4e00\u4e2aBLOCK\u8bbe\u8ba1<\/strong><\/h2>\n\n\n\n<p>1\uff09IP 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 is-resized\"><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\" style=\"aspect-ratio:2.11660777385159;width:525px;height:auto\" 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 is-resized\"><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\" style=\"aspect-ratio:1.739514348785872;width:558px;height:auto\" 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\u4e24\u8defEMIO\uff08\u56e0\u4e3a\u672c\u6b21\u6d4b\u8bd5\u7684\u662f\u4e24\u4e2a\uff0c\u5982\u679c\u9700\u8981\u589e\u52a0\u6309\u952e\u6216\u8005\u5176\u5b83IO \u8fd9\u91cc\u53ef\u4ee5\u5bf9\u5e94\u7684\u8c03\u6574\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"714\" height=\"553\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-11.png\" alt=\"\" class=\"wp-image-5377\" style=\"aspect-ratio:1.2911392405063291;width:510px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-11.png 714w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-11-300x232.png 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/figure>\n\n\n\n<p>6\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>7\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 is-resized\"><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\" style=\"aspect-ratio:1.393491124260355;width:410px;height:auto\" 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>8\uff09\u7528\u7ebf\u5c06M_AXI_GP0_ACLK\u4e0e FCLK_CLK0\u8fde\u63a5\u8d77\u6765 <strong>(\u4e5f\u53ef\u4ee5\u5728\u914d\u7f6e\u9875\u9762\u7981\u7528AXI \u5c31\u4e0d\u9700\u8981\u8fde\u63a5\u4e86)<\/strong><\/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>9\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>\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>\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<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u521b\u5efa\u7ea6\u675f\u6587\u4ef6\uff0c\u5e76\u4e14\u5b9a\u4e49\u7ba1\u811a<\/strong>  <\/h2>\n\n\n\n<p>\uff08\u8fd9\u91cc\u4f7f\u7528\u7ea6\u675f\u65b9\u5f0f\uff0c\u4e5f\u53ef\u4ee5\u5728RTL\u914d\u7f6e\u754c\u9762\u624b\u52a8\u9009\u62e9\u7ba1\u811a\uff09<\/p>\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=\"530\" height=\"327\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-16.png\" alt=\"\" class=\"wp-image-200\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-16.png 530w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-16-300x185.png 300w\" sizes=\"auto, (max-width: 530px) 100vw, 530px\" \/><\/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<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"389\" height=\"333\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-17.png\" alt=\"\" class=\"wp-image-202\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-17.png 389w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-17-300x257.png 300w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><\/figure>\n\n\n\n<p>\u5728\u7ea6\u675f\u6587\u4ef6\u91cc\u9762\u590d\u5236\u4e0b\u9762\u4ee3\u7801\u6765\u5bf9\u8f93\u51fa\u7684GPIO\u8fdb\u884c\u7ba1\u811a\uff08\u6240\u6709\u7684\u7ba1\u811a\u8f6c\u63a5\u677f\u4e0a\u4e1d\u5370\u90fd\u6709\u5b9e\u9645\u6807\u6ce8\u5bf9\u5e94\u7684IO\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">set_property IOSTANDARD LVCMOS33 [get_ports GPIO_0_0_tri_io[0]]\nset_property IOSTANDARD LVCMOS33 [get_ports GPIO_0_0_tri_io[1]]\n\nset_property PACKAGE_PIN P20 [get_ports GPIO_0_0_tri_io[0]]\nset_property PACKAGE_PIN P21 [get_ports GPIO_0_0_tri_io[1]]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e94\u3001\u751f\u6210bit\u6587\u4ef6<\/strong><\/h2>\n\n\n\n<p>\u6309\u4e0b\u7eff\u8272\u7bad\u5934\u5bf9\u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1 \uff08\u5f39\u51fa\u7684\u754c\u9762\u9009\u62e9OK \uff0c\u5e76\u4e14CPU CORE \u9009\u62e9\u6700\u5927\u5373\u53ef\uff09<\/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>\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>\u516d\u3001vitis \u5de5\u7a0b\u521b\u5efa<\/strong><\/h2>\n\n\n\n<p><strong>1\uff09\u5bfc\u51fa\u786c\u4ef6<\/strong><\/p>\n\n\n\n<p>File\u2192Export\u2192Export hardware\u2026<\/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<p>\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u91cc\u9009\u62e9Next<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"458\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-12.png\" alt=\"\" class=\"wp-image-5383\" style=\"aspect-ratio:1.9737991266375545;width:506px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-12.png 904w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-12-300x152.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-12-768x389.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u52fe\u9009 include bitstream \uff0c\u518d\u9009\u62e9Next<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"405\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-13-1024x405.png\" alt=\"\" class=\"wp-image-5384\" style=\"aspect-ratio:2.528395061728395;width:548px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-13-1024x405.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-13-300x119.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-13-768x303.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-13.png 1182w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u8bb0\u5f55\u4e0b\u5bfc\u51fa\u7684\u5730\u5740\uff0c\u7136\u540e\u9009\u62e9Next<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"375\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-14-1024x375.png\" alt=\"\" class=\"wp-image-5385\" style=\"aspect-ratio:2.7306666666666666;width:558px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-14-1024x375.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-14-300x110.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-14-768x281.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-14.png 1222w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u9009\u62e9Finish<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"381\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-15-1024x381.png\" alt=\"\" class=\"wp-image-5386\" style=\"aspect-ratio:2.6876640419947506;width:566px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-15-1024x381.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-15-300x112.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-15-768x286.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-15.png 1223w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>2 \uff09\u542f\u52a8vitis\uff0c\u5e76\u521b\u5efa\u5de5\u7a0b<\/strong><\/p>\n\n\n\n<p>1\uff09\u5728vivado\u4e2d\u542f\u52a8\uff1aTools -&gt; launch vitis IDE<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"643\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-16.png\" alt=\"\" class=\"wp-image-5388\" style=\"aspect-ratio:0.9502332814930016;width:419px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-16.png 611w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-16-285x300.png 285w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/figure>\n\n\n\n<p><strong>\u5907\u6ce8 \u5982\u679c\u4f60\u51fa\u73b0\u4e0b\u9762\u8fd9\u6837\u7684\u56fe \uff0c\u542f\u52a8\u5931\u8d25\uff0c\u5219\u8bf4\u660e\u60a8\u4ec5\u5b89\u88c5\u4e86 HDL \u6ca1\u6709\u5b89\u88c5vitis  \u8bf7\u53c2\u8003CSDN\u8fd9\u4e00\u9875\u9762\u589e\u52a0vitis <\/strong>  <a href=\"https:\/\/blog.csdn.net\/tcjy1000\/article\/details\/126567610\">https:\/\/blog.csdn.net\/tcjy1000\/article\/details\/126567610<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"494\" height=\"280\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-17.png\" alt=\"\" class=\"wp-image-5389\" style=\"aspect-ratio:1.7642857142857142;width:392px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-17.png 494w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-17-300x170.png 300w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/figure>\n\n\n\n<p>2\uff09 \u542f\u52a8 vitis \u540e\uff0c\u5c06workspace \u5b9a\u4e49\u5728\u5de5\u7a0b\u76ee\u5f55\u4e0b <strong>\uff08\u5907\u6ce8\u76ee\u5f55\u540d\u79f0\u4e0d\u80fd\u5e26\u4e2d\u6587\uff09<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"426\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-18.png\" alt=\"\" class=\"wp-image-5392\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-18.png 848w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-18-300x151.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-18-768x386.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 \u70b9\u9009Create Platform Project \u521b\u5efa\u5de5\u7a0b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"955\" height=\"493\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-19.png\" alt=\"\" class=\"wp-image-5393\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-19.png 955w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-19-300x155.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-19-768x396.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9Next<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"789\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-20.png\" alt=\"\" class=\"wp-image-5394\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-20.png 957w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-20-300x247.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-20-768x633.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>4\uff09 \u9009\u62e9\u4ece\u73b0\u6709\u7684xsa\u6587\u4ef6\u521b\u5efa\u5de5\u7a0b \uff0c\u5e76\u6309\u4e0b\u56fe\u6240\u793a\uff0c\u627e\u5230\u5e76\u52a0\u8f7d\u6211\u4eec\u7684xsa\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"916\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-21-1024x916.png\" alt=\"\" class=\"wp-image-5395\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-21-1024x916.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-21-300x268.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-21-768x687.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-21.png 1250w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>5\uff09 \u8fd9\u91cc\u6211\u4eec\u5b9a\u4e49\u5de5\u7a0b\u540d\u79f0\u4e3aLED_TEST<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"806\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-22.png\" alt=\"\" class=\"wp-image-5396\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-22.png 973w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-22-300x249.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-22-768x636.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 \u9009\u62e9next<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"967\" height=\"791\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-23.png\" alt=\"\" class=\"wp-image-5397\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-23.png 967w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-23-300x245.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-23-768x628.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>7\uff09 \u9009\u62e9\u521b\u5efa\u4e00\u4e2a\u7a7a\u5de5\u7a0b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"955\" height=\"798\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-24.png\" alt=\"\" class=\"wp-image-5398\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-24.png 955w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-24-300x251.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-24-768x642.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>8\uff09\u5728\u5de5\u7a0b\u4e2d\u6dfb\u52a0main.c\u6587\u4ef6 src\u2014&gt;New\u2014&gt;File \u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"482\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-25.png\" alt=\"\" class=\"wp-image-5399\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-25.png 848w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-25-300x171.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-25-768x437.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>9\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 size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"757\" height=\"694\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-26.png\" alt=\"\" class=\"wp-image-5400\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-26.png 757w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-26-300x275.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>10\uff09.\u6253\u5f00\u521a\u624d\u521b\u5efa\u7684main.c   \u7136\u540e \u5199\u5165\u4ee5\u4e0b\u4ee3\u7801<\/p>\n\n\n\n<p>\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\"\n#include \"xgpiops.h\"\n#include \"xstatus.h\"\n#include \"xplatform_info.h\"\n#include \"sleep.h\"\n\n#define LED1    \t54\n#define LED2  \t\t55\n\n#define GPIO_DEVICE_ID  \tXPAR_XGPIOPS_0_DEVICE_ID\nXGpioPs Gpio;\n\n\nvoid Gpio_Init(void){\n\tXGpioPs_Config *ConfigPtr;\n\n\tConfigPtr = XGpioPs_LookupConfig(GPIO_DEVICE_ID);\n\tXGpioPs_CfgInitialize(&amp;Gpio, ConfigPtr,ConfigPtr-&gt;BaseAddr);\n\n\tXGpioPs_SetDirectionPin(&amp;Gpio, LED1, 1);\n\tXGpioPs_SetOutputEnablePin(&amp;Gpio, LED1, 1);\n\n\tXGpioPs_SetDirectionPin(&amp;Gpio, LED2, 1);\n\tXGpioPs_SetOutputEnablePin(&amp;Gpio, LED2, 1);\n\n\tXGpioPs_WritePin(&amp;Gpio, LED1, 0);\n\tXGpioPs_WritePin(&amp;Gpio, LED2, 0);\n}\n\n\n\nint main(void)\n{\n\tGpio_Init();\n\n\twhile(1){\n\n\t\tXGpioPs_WritePin(&amp;Gpio, LED1, 0);\n\t\tXGpioPs_WritePin(&amp;Gpio, LED2, 0);\n\n\t\tsleep(1);\n\n\t\tXGpioPs_WritePin(&amp;Gpio, LED1, 1);\n\t\tXGpioPs_WritePin(&amp;Gpio, LED2, 1);\n\n\t\tsleep(1);\n\n\t};\n\n\treturn 0;\n}\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"767\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-27-1024x767.png\" alt=\"\" class=\"wp-image-5401\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-27-1024x767.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-27-300x225.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-27-768x576.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-27.png 1277w\" 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>\u4e0b\u8f7d\u5230\u677f\u5b50\u4e0a\u8fdb\u884c\u9a8c\u8bc1<\/strong><\/h2>\n\n\n\n<p>\u9009\u4e2d\u6211\u4eec\u751f\u6210\u7684LED_TEST\u5de5\u7a0b \u5c55\u5f00\u7eff\u8272\u7bad\u5934\uff08RUN\uff09\u53f3\u8fb9\u7684\u56fe\u6807\uff0c\u9009\u62e9Run As\u21921 Launch on Hardware<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"985\" height=\"683\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-29.png\" alt=\"\" class=\"wp-image-5404\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-29.png 985w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-29-300x208.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-29-768x533.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>\u53ef\u4ee5\u770b\u5230\u677f\u5b50\u4e0a\u7684LED\u706f\u5728\u95ea\u70c1<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5907\u6ce8<\/strong><\/h2>\n\n\n\n<p>\u5982\u679c\u7a0b\u5e8f\u6ca1\u6709\u6309\u9884\u671f\u8fd0\u884c\uff0c\u8bf7\u68c0\u67e5FPGA\u7a0b\u5e8f\u6709\u6ca1\u6709\u8bbe\u7f6e\u81ea\u52a8\u52a0\u8f7d\uff0c\u53f3\u952e\u6211\u4eec\u7684\u5de5\u7a0b\uff0c\u7136\u540eRun As\u2192Run Configurations \u914d\u7f6e<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"652\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-30-1024x652.png\" alt=\"\" class=\"wp-image-5406\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-30-1024x652.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-30-300x191.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-30-768x489.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-30.png 1062w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5e76\u5c06Reset entire system  \u548c Program FPGA \u7684\u52fe\u90fd\u52fe\u4e0a\uff0c\u518d\u9009run \u5c1d\u8bd5<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-31-1024x554.png\" alt=\"\" class=\"wp-image-5407\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-31-1024x554.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-31-300x162.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-31-768x415.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-31.png 1481w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u4ee5\u4e0a\u662fvivado 2020.2\u7248\u672c \u7684\u7b80\u5355vitis \u6f14\u793a\uff0c\u5982\u679c\u662f\u5176\u4ed6\u5e26vitis \u7248\u672c\u7684vivado \uff0c\u64cd\u4f5c\u4e0a\u53ef\u80fd\u4f1a\u6709\u4e9b\u8bb8\u533a\u522b\uff0c\u8bf7\u81ea\u884c\u7814\u7a76\u5c1d\u8bd5\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e3a\u672c\u7f51\u7ad9\u7684\u8d44\u6599\u5927\u591a\u90fd\u662f\u57fa\u4e8e2018.3\u6765\u8fdb\u884c\u8bbe\u8ba1\u7684\uff0c\u6709\u5f88\u591avitis\u7528\u6237\u8868\u793a\u4e0d\u77e5\u9053\u8be5\u5982\u4f55\u8fdb\u884c\u64cd\u4f5c\uff0c\u6240\u4ee5\u672c\u6587\u505a\u4e86\u4e00\u4e2a\u7b80\u5355\u7684vitis\u4f7f\u7528\u6559\u7a0b\uff0c\u4ec5\u4f9b\u5927\u5bb6\u53c2\u8003\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,10,7,13],"tags":[],"class_list":["post-5360","post","type-post","status-publish","format-standard","hentry","category-smart-zynq-spsl","category-smart-zynq-board","category-tiny-zynq","category-tiny-zynq-2"],"views":4100,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/5360","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=5360"}],"version-history":[{"count":25,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/5360\/revisions"}],"predecessor-version":[{"id":5422,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/5360\/revisions\/5422"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=5360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=5360"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=5360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}