{"id":993,"date":"2022-10-05T12:33:11","date_gmt":"2022-10-05T04:33:11","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=993"},"modified":"2023-02-18T19:09:46","modified_gmt":"2023-02-18T11:09:46","slug":"1233","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2022\/10\/05\/1233\/","title":{"rendered":"Tiny ZYNQ\u677f \u5de5\u7a0b\u4e09\u00a0\u00a0\u901a\u8fc7PS\u90e8\u5206\u6765\u4e3aPL\u903b\u8f91\u63d0\u4f9b\u65f6\u949f\uff08\u505a\u5de5\u7a0b\u65f6\u7684\u5e38\u7528\u65b9\u6cd5\uff09"},"content":{"rendered":"\n<p>\u672c\u6587\u4ecb\u7ecd\u4e00\u79cd\u901a\u8fc7PS\u5171\u4eab\u65f6\u949f\u7684\u65b9\u5f0f \uff0c\u4e3aPL\u63d0\u4f9b\u903b\u8f91\u65f6\u949f\u7684\u65b9\u6cd5\uff0c\u6b64\u65b9\u6cd5\u5728\u5de5\u7a0b\u4e0a\u6bd4\u8f83\u5e38\u7528\uff0c\u53ef\u4ee5\u7701\u7565\u4e00\u4e2a\u6709\u6e90\u6676\u632f\u7684\u7269\u6599<\/p>\n\n\n\n<p>\u672c\u6587\u4e5f\u5c06\u4f5c\u4e3a Tiny ZYNQ \u7cfb\u5217\u5de5\u7a0b\u91cc \u7b2c\u4e00\u4e2a PS\u548cPL\u8054\u52a8\u7684\u5de5\u7a0b<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">\u672c\u6587\u5728 vivado2018.3\u7248\u672c\u4e0a \u6f14\u793a\uff0c \u5176\u4ed6\u7248\u672c\u8bf7\u81ea\u884c\u7814\u7a76<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u521b\u5efa\u5de5\u7a0b<\/h2>\n\n\n\n<p>1\uff09\u65b0\u5efa\u4e00\u4e2a\u9879\u76ee\uff0c\u82af\u7247\u578b\u53f7\u9009\u62e9 XC7Z010CLG400-1<\/p>\n\n\n\n<p>2)  \u521b\u5efa\u4e00\u4e2aBLOCK\u8bbe\u8ba1<\/p>\n\n\n\n<p>a.IP 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 size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"619\" height=\"331\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-12.png\" alt=\"\" class=\"wp-image-994\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-12.png 619w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-12-300x160.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/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 \u5728ZYNQ\u4e2d\u8bbe\u7f6e\u65f6\u949f\u529f\u80fd \uff1a<\/p>\n\n\n\n<p>\u627e\u5230 \u8bbe\u7f6e\u9879\u76ee\u4e2d\u7684 Clock Configuration \u9009\u9879\uff0c \u5728PL Fabric Clocks \u8bbe\u7f6e\u81ea\u5df1\u9700\u8981\u7684\u65f6\u949f\u9891\u7387\uff0c\u8fd9\u91cc\u4e00\u5171\u67094\u79cd\u9891\u7387\u53ef\u4ee5\u8bbe\u7f6e \u7c7b\u4f3c\u4e8e\u6211\u4eec\u7684PLL\u529f\u80fd\u3002\u8fd9\u91cc\u6211\u4eec\u8bbe\u7f6e50M\u65f6\u949f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"583\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-50.png\" alt=\"\" class=\"wp-image-264\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-50.png 960w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-50-300x182.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-50-768x466.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 \u5728zynq\u4e2d\u8bbe\u7f6eDDR\u529f\u80fd \uff1a<\/p>\n\n\n\n<p>\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\uff1aMT41K128M16JT 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=\"977\" height=\"493\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-5.png\" alt=\"\" class=\"wp-image-188\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-5.png 977w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-5-300x151.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-5-768x388.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>5\uff09\u5b8c\u6210\u4e0a\u8ff0\u64cd\u4f5c\u540e\uff0c \u70b9\u51fb\u201cRun Block Automation\u201d\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-13.png\" alt=\"\" class=\"wp-image-995\" width=\"353\" height=\"182\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-13.png 543w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-13-300x155.png 300w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><\/figure>\n\n\n\n<p>\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\uff0c\u5f97\u5230\u5982\u4e0b\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-51.png\" alt=\"\" class=\"wp-image-265\" width=\"456\" height=\"208\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-51.png 595w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-51-300x137.png 300w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/figure>\n\n\n\n<p>6\uff09\u53f3\u952e FCLK_CLK0\u53f3\u8fb9\u7684\u7ebf \uff0c\u7136\u540e\u70b9\u51fbMake External \u5c06PS\u7684\u65f6\u949f\u62c9\u51fa\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"423\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-14.png\" alt=\"\" class=\"wp-image-996\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-14.png 770w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-14-300x165.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-14-768x422.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">\u3001<\/figcaption><\/figure>\n\n\n\n<p>\u5f15\u51fa\u540e \u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"608\" height=\"215\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-15.png\" alt=\"\" class=\"wp-image-997\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-15.png 608w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-15-300x106.png 300w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/figure>\n\n\n\n<p>7\uff09\u5728FCLK_CLK0\u4e0e M_AXI_GP0_ACLK\u4e4b\u95f4\u8fde\u63a5\u4e00\u6839\u7ebf\uff0c\u6765\u4e3aPS\u63d0\u4f9b\u65f6\u949f\uff08\u4e0d\u8fde\u63a5\u4f1a\u62a5\u9519\uff09<\/p>\n\n\n\n<p>\u6700\u7ec8\u5f97\u5230\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"598\" height=\"233\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-16.png\" alt=\"\" class=\"wp-image-998\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-16.png 598w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-16-300x117.png 300w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/figure>\n\n\n\n<p>\u4e0a\u9762\u5df2\u7ecf\u5b8c\u6210\u4e86ZYNQ PS\u90e8\u5206\u7684\u8bbe\u7f6e\uff0c\u63a5\u4e0b\u6765\u8bbe\u8ba1\u81ea\u5df1\u7684PL\u6a21\u5757\u4ee3\u7801\u548c\u4e0eZYNQ PS\u90e8\u5206\u8fde\u63a5<\/p>\n\n\n\n<p>\u6b64\u65f6\u53ef\u4ee5\u68c0\u67e5 block design \u662f\u5426\u6709\u8bbe\u8ba1\u9519\u8bef  \uff0c\u5982\u679c\u6ca1\u6709\u62a5\u9519 \u6b63\u9762\u8bbe\u8ba1\u662f\u6b63\u786e\u7684<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"536\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-17.png\" alt=\"\" class=\"wp-image-999\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-17.png 921w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-17-300x175.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-17-768x447.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\u521b\u5efa\u786c\u4ef6\u63cf\u8ff0\uff0csource\u2192Design Source \uff0c\u53f3\u952e\u6211\u4eec\u521b\u5efa\u7684BLOCK\u5de5\u7a0b\uff0c\u70b9\u51fbcreate HDL wrapper\u5982\u4e0b\u56fe\u6240\u793a\uff08\u8fd9\u4e00\u6b65\u7684\u4f5c\u7528\u76f8\u5f53\u4e8e\u5c06\u56fe\u7eb8\u8f6c\u6362\u6210\u5bf9\u5e94\u7684\u786c\u4ef6\u63cf\u8ff0\u8bed\u8a00\u7684\u529f\u80fd\uff09<\/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<p>\u751f\u6210\u7684<em>wrapper<\/em>\u6587\u4ef6\u4f1a\u81ea\u52a8\u88ab\u8bbe\u7f6e\u4e3a\u9876\u5c42<\/p>\n\n\n\n<p>7\uff09\u65b0\u5efa\u4e00\u4e2a.v\u6587\u4ef6\uff0c\u672c\u6587\u547d\u540d\u4e3aLED \u5e76\u4e14\u5c06\u5de5\u7a0b\u4e00\u4e2d\u7684\u4ee3\u7801 \u590d\u5236\u8fc7\u6765\uff08\u5177\u4f53\u53ef\u4ee5\u770b\u5de5\u7a0b\u4e00\u5185\u5bb9\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"839\" height=\"564\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-18.png\" alt=\"\" class=\"wp-image-1001\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-18.png 839w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-18-300x202.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-18-768x516.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-19.png\" alt=\"\" class=\"wp-image-1002\" width=\"515\" height=\"522\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-19.png 515w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-19-296x300.png 296w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-19-100x100.png 100w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/figure>\n\n\n\n<p>\u590d\u5236\u4ee5\u4e0b\u4ee3\u7801\u5230 LED.V\u4e2d<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">module LED(\n     input clk,\n     output led\n );\n parameter T1MS = 26'd50_000_000 ; \/\/50M\u6676\u632f\u65f6\u949f\n reg [25:0]time_count;\/\/\u65f6\u949f\u8ba1\u6570\u5668\n reg led_r;\n always@(posedge clk)\n     if(time_count&gt;=T1MS)begin\n         time_count&lt;=26'd0;\n         led_r&lt;=~led_r;\n     end\n     else time_count&lt;=time_count+1'b1;\n assign led=led_r;    \n endmodule\n<\/pre>\n\n\n\n<p>8)\u73b0\u5728\u6211\u4eec\u62e5\u6709\u4e86  \u65f6\u949f\uff08ZYNQ \u7684PS\u6a21\u5757\uff09\uff0c\u4e5f\u62e5\u6709\u4e86 FPGA\u7684LED\u6a21\u5757\uff0c\u63a5\u4e0b\u6765\u8981\u5c06\u4e24\u4e2a\u6a21\u5757\u7ed3\u5408\u8d77\u6765\uff0c\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u9876\u5c42TOP.V \u6a21\u5757\u7136\u540e\u5728\u8be5\u9876\u5c42\u6a21\u5757\u4e2d\u4f8b\u5316ZYNQ \u548cLED\u6a21\u5757\uff08\u521b\u5efaTOP.v\u7684\u65b9\u5f0f\u548c\u4e0a\u9762\u521b\u5efaLED.V\u7684\u65b9\u5f0f\u4e00\u81f4\uff09<\/p>\n\n\n\n<p>\u590d\u5236\u4ee5\u4e0b\u4ee3\u7801\u5230 TOP.V<\/p>\n\n\n\n<pre id=\"block-d95a81be-82b4-4acf-a892-33f3701c7ca2\" class=\"wp-block-preformatted\">`timescale 1ns \/ 1ps\nmodule TOP(\n  output led\n);\n\nwire clk;\nLED u_1(\n     .clk(clk),\n     .led(led)\n );\n\nzynq_wrapper u_2(\n    .FCLK_CLK0_0(clk)\n);\n\nendmodule\n<\/pre>\n\n\n\n<p>\u4ed4\u7ec6\u89c2\u5bdf\u53d1\u73b0 \u9664\u4e86\u5bf9LED \u548cZYNQ \u6a21\u5757\u8fdb\u884c\u4f8b\u5316\u5916\uff0c\u4ee3\u7801\u91cc\u8fd8 \u901a\u8fc7  \u7ebfclk \u5c06 led\u6a21\u5757\u7684\u65f6\u949f\u548czynq\u6a21\u5757\u7684\u65f6\u949f\u8f93\u51fa\u8fde\u63a5\u5728\u4e00\u8d77\u4e86<\/p>\n\n\n\n<p>9) \u5bf9\u7a0b\u5e8f\u8fdb\u884c\u7efc\u5408<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"203\" height=\"105\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-20.png\" alt=\"\" class=\"wp-image-1003\"\/><\/figure>\n\n\n\n<p>\u7efc\u5408\u540e\u53ef\u4ee5\u770b\u5230\u7a0b\u5e8f\u7684\u62d3\u6251\u7ed3\u6784\u6539\u53d8\u4e86\uff0cTOP\u53d8\u6210\u9876\u5c42\u6a21\u5757\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"354\" height=\"207\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-21.png\" alt=\"\" class=\"wp-image-1004\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-21.png 354w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-21-300x175.png 300w\" sizes=\"auto, (max-width: 354px) 100vw, 354px\" \/><\/figure>\n\n\n\n<p>10) \u5728Source \u7a97\u53e3\u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u7ea6\u675f\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-22.png\" alt=\"\" class=\"wp-image-1005\" width=\"395\" height=\"180\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-22.png 639w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-22-300x137.png 300w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-23.png\" alt=\"\" class=\"wp-image-1006\" width=\"337\" height=\"348\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-23.png 440w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-23-291x300.png 291w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/figure>\n\n\n\n<p>\u6253\u5f00\u521a\u624d\u521b\u5efa\u7684\u7ea6\u675f\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"714\" height=\"341\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-24.png\" alt=\"\" class=\"wp-image-1007\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-24.png 714w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-24-300x143.png 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/figure>\n\n\n\n<p>\u5e76\u589e\u52a0\u4ee5\u4e0b\u4ee3\u7801\u6765\u5206\u914dLED\u7ba1\u811a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">set_property PACKAGE_PIN D18 [get_ports led]\nset_property IOSTANDARD LVCMOS33 [get_ports led]<\/pre>\n\n\n\n<p>12\uff09\u5b8c\u6210\u540e\u70b9\u51fbGenerate Bitstream\uff08\u5e03\u7ebf\u5e76\u751f\u6210\u4e8c\u8fdb\u5236\u6587\u4ef6\uff09 \u7684\u64cd\u4f5c\uff08\u4f1a\u63d0\u9192\u662f\u5426\u4fdd\u5b58\u7ea6\u675f\u6587\u4ef6\uff0c\u70b9\u786e\u8ba4\u5c31\u597d\uff09    <\/p>\n\n\n\n<p>\u4ee5\u4e0a\u64cd\u4f5c\u540e\uff0c\u786c\u4ef6PL\u4ee5\u53caPS\u7684\u8bbe\u7f6e\u548c\u5e03\u5c40\u5df2\u7ecf\u5b8c\u6210\uff0c\u4f46\u662f\u56e0\u4e3a\u65f6\u949f\u662f\u7531PS\u7aef\u4ea7\u751f\u7684\uff0cPS\u7aef\u7684ARM\u8fd0\u884c\u65f6\u624d\u80fd\u7ed9PL\u63d0\u4f9b\u65f6\u949f\u4fe1\u53f7\u3002<strong>\u76f4\u63a5\u5c06bit\u6d41\u6587\u4ef6\u4e0b\u8f7d\u5230ZYNQ\u4e2d\uff0cPS\u7aef\u5e76\u4e0d\u4f1a\u5de5\u4f5c\uff0c\u4e5f\u4e0d\u4f1a\u8f93\u51fa\u65f6\u949f\u7ed9PL<\/strong><\/p>\n\n\n\n<p>\u60f3\u8981\u8ba9PS\u7aef\u5de5\u4f5c\uff0c\u5c31\u9700\u8981\u5728SDK\u521b\u5efa\u4e00\u4e2a\u5de5\u7a0b\uff0c\u54ea\u6015\u662f\u4e2a\u7a7a\u5de5\u7a0b\u4e5f\u53ef\u4ee5<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee5\u4e0b\u662f\u521b\u5efa\u4e00\u4e2aPS\u7a7a\u5de5\u7a0b\u7684\u8fc7\u7a0b\uff0c\u8be6\u7ec6\u7684\u56fe\u6587\u6559\u7a0b\u53ef\u4ee5\u53c2\u8003<a rel=\"noreferrer noopener\" href=\"http:\/\/www.hellofpga.com\/index.php\/2021\/08\/02\/zynq_ps_to_pl_led_test\/\" target=\"_blank\">\u9879\u76ee6<\/a><\/h3>\n\n\n\n<p>1\uff09vivado\u4e2d \u9009File\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<\/p>\n\n\n\n<p>2\uff09File\u2192Lauch SDK\uff0c\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\uff0c\u4fdd\u5b58\u9ed8\u8ba4\uff0c\u70b9\u51fb\u201cOK\u201d\uff0c \u7cfb\u7edf\u5c06\u6253\u5f00SDK\u5de5\u7a0b<\/p>\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\u5728\u65b0\u5efa\u5de5\u7a0b\u4e2d\u8f93\u5165\u81ea\u5df1\u7684\u5de5\u7a0b\u540d\uff0c\u5e76\u9009\u62e9Empty Application\uff08\u7a7a\u5e94\u7528\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"413\" height=\"413\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-25.png\" alt=\"\" class=\"wp-image-1009\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-25.png 413w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-25-300x300.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-25-150x150.png 150w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-25-100x100.png 100w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/figure>\n\n\n\n<p>\u5e76\u4e14\u5728\u7a7a\u5e94\u7528\u4e2d\u521b\u5efa\u4e00\u4e2amain.c\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"609\" height=\"413\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-26.png\" alt=\"\" class=\"wp-image-1010\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-26.png 609w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-26-300x203.png 300w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"317\" height=\"182\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/04\/image-6.png\" alt=\"\" class=\"wp-image-637\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/04\/image-6.png 317w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/04\/image-6-300x172.png 300w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/figure>\n\n\n\n<p>\u5e76\u5728\u91cc\u9762\u590d\u5236\u4ee5\u4e0b\u4ee3\u7801(\u76f8\u5f53\u4e8e\u521b\u5efa\u4e86\u4e2awhile(1)\u7a7a\u5faa\u73af\u7684\u7a0b\u5e8f)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#include \"xparameters.h\"\n#include \"xplatform_info.h\"\n\nint main(void){\n  return 0;\n}\n<\/pre>\n\n\n\n<p>\u7136\u540e\u70b9\u4fdd\u5b58\u3002<\/p>\n\n\n\n<p>4\uff09\u7528\u4e4b\u524d\u751f\u6210\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u5bf9FPGA\u8fdb\u884c\u7f16\u7a0b\uff0c<code>Xilinx Tools<\/code>&nbsp;-&gt;&nbsp;<code>Program FPGA<\/code>&nbsp;\u7136\u540e\u70b9\u51fb \u201cProgram\u201d \uff08\u6b64\u65f6 DONE \u706f\u88ab\u70b9\u4eae\uff0c\u4ee3\u8868FPGA\u88ab\u914d\u7f6e\u5b8c\u6210\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"307\" height=\"252\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-57.png\" alt=\"\" class=\"wp-image-293\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-57.png 307w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-57-300x246.png 300w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/figure>\n\n\n\n<p>5\uff09\u5f53FPGA\u7f16\u7a0b\u6210\u529f\u540e\uff0c\u6211\u4eec\u9700\u8981\u521d\u59cb\u5316zynq\u4e2d\u7684\u5904\u7406\u5668\uff0c\u53f3\u952e\u70b9\u51fb\u521a\u624d\u521b\u5efa\u7684\u7a7a\u5de5\u7a0b\uff0c\u9009\u62e9<code>Run As<\/code>&nbsp;-&gt;&nbsp;<code>Launch on Hardware (System Debugger)<\/code>&nbsp;\u6216\u8005 Launch on Hardware (GDB).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"907\" height=\"558\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-56.png\" alt=\"\" class=\"wp-image-291\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-56.png 907w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-56-300x185.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-56-768x472.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>\u7ecf\u8fc7\u4ee5\u4e0a\u64cd\u4f5c\uff0c\u53ef\u4ee5\u770b\u5230LED\u706f\u5728\u6709\u89c4\u5f8b\u7684\u8fdb\u884c\u95ea\u70c1\uff0c\u8bc1\u660e\u6211\u4eec\u7684PS\u5df2\u7ecf\u6b63\u5e38\u5411PL\u8f93\u51fa\u65f6\u949f\u4e86<\/strong><\/p>\n\n\n\n<p>\u5b8c\u6574\u5de5\u7a0b\uff1a<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-fb0dfe4e-d9b2-4609-9966-6cabe5d57ecd\" href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/03_CLK_PS_TO_PL_TEST.zip\">03_CLK_PS_TO_PL_TEST<\/a><a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/03_CLK_PS_TO_PL_TEST.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-fb0dfe4e-d9b2-4609-9966-6cabe5d57ecd\">\u4e0b\u8f7d<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u4e00\u79cd\u901a\u8fc7PS\u5171\u4eab\u65f6\u949f\u7684\u65b9\u5f0f \uff0c\u4e3aPL\u63d0\u4f9b\u903b\u8f91\u65f6\u949f\u7684\u65b9\u6cd5\uff0c\u6b64\u65b9\u6cd5\u5728\u5de5\u7a0b\u4e0a\u6bd4\u8f83\u5e38\u7528\uff0c\u53ef\u4ee5\u7701\u7565\u4e00\u4e2a\u6709\u6e90\u6676\u632f\u7684\u7269\u6599<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,13],"tags":[],"class_list":["post-993","post","type-post","status-publish","format-standard","hentry","category-tiny-zynq","category-tiny-zynq-2"],"views":1165,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/993","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=993"}],"version-history":[{"count":6,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/993\/revisions"}],"predecessor-version":[{"id":1626,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/993\/revisions\/1626"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=993"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}