{"id":9012,"date":"2025-01-01T19:54:50","date_gmt":"2025-01-01T11:54:50","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=9012"},"modified":"2025-01-04T08:53:00","modified_gmt":"2025-01-04T00:53:00","slug":"lvgl_demo_01","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2025\/01\/01\/lvgl_demo_01\/","title":{"rendered":"\u57fa\u4e8e\u672c\u7ad9  ZYNQ \u4e3b\u677f\u7684 LVGL\uff08V8.3.10\u7248\u672c\uff09\u7684\u624b\u628a\u624b\u79fb\u690d\u6559\u7a0b\uff08VDMA+DMA\u65b9\u5f0f\uff09"},"content":{"rendered":"\n<p>\u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u5728\u672c\u7ad9 ZYNQ \u4e3b\u677f\u4e0a\u79fb\u690dLVGL UI\u7cfb\u7edf \uff08\u672c\u6587\u5305\u542bVIVADO\u786c\u4ef6\u90e8\u5206\uff0c\u4e0eSDK\u8f6f\u4ef6\u90e8\u5206\u5185\u5bb9\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6b64\u7ae0\u8282\u5185\u5bb9\u9002\u7528\u4e8e\u4e0b\u5217\u4e3b\u677f<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>Lemon ZYNQ \u4e3b\u677f  \uff08CLG400\u5c01\u88c5\uff09<\/strong>\uff08\u672c\u6587\u63d0\u4f9b\u6700\u7ec8\u5de5\u7a0b\uff09<\/li>\n\n\n\n<li><strong>Smart ZYNQ SP \/ SP2 \/ SL \u7248\u7684\u677f\u5b50\uff08\u975e\u6807\u51c6\u7248\uff09\uff08CLG484\u5c01\u88c5\uff09<\/strong>\uff08\u672c\u6587\u63d0\u4f9b\u6700\u7ec8\u5de5\u7a0b\uff09<\/li>\n\n\n\n<li><strong>Smart ZYNQ \u6807\u51c6\u7248\uff08\u505c\u4ea7\uff09 (CLG400\u5c01\u88c57010\/7020 \uff09<\/strong>\u672c\u6587\u6682\u65f6\u53ea\u63d0\u4f9b\u79fb\u690d\u65b9\u6cd5<\/li>\n\n\n\n<li><strong>Tiny ZYNQ\uff08\u505c\u4ea7\uff09 \uff08CLG400\u5c01\u88c57010\uff09 <\/strong>\u672c\u6587\u6682\u65f6\u53ea\u63d0\u4f9b\u79fb\u690d\u65b9\u6cd5<\/li>\n\n\n\n<li>\u81f3\u4e8e\u522b\u5bb6\u7684ZYNQ\u4e3b\u677f\uff0c\u4e5f\u53ef\u4ee5\u6839\u636e\u672c\u6587\u7684\u5185\u5bb9\u8fdb\u884cLVGL\u7684\u79fb\u690d<\/li>\n<\/ul>\n<\/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 class=\"has-vivid-red-color has-text-color has-link-color wp-elements-8e7cc94f31c7adff12df8c705205fe43\"><strong><em>\u672c\u8d34\u524d\u540e\u82b1\u4e86\u5f88\u5927\u7cbe\u529b\u53bb\u5199\u4e86\uff0c\u5982\u9700\u642c\u8fd0\u8bf7\u6ce8\u660e\u51fa\u5904 \u201c hellofpga.com \u201d\u3002<\/em><\/strong>\uff08\u672c\u8d34\u4e5f\u53ef\u80fd\u662f\u5168\u7f51\u7b2c\u4e00\u4efd\u516c\u5f00\u7684LVGL \u901a\u8fc7DMA\u642c\u8fd0\u70b9\u5230VDMA\u7684\u6559\u7a0b\uff0c\u5927\u5bb6\u5982\u679c\u6709\u9047\u5230\u95ee\u9898\u53ef\u5728\u672c\u8d34\u4e0b\u65b9\u8fdb\u884c\u7559\u8a00\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5173\u4e8e\u672c\u6b21\u79fb\u690d\u7684\u8272\u6df1\u9009\u752816bit\uff08RGB565\uff09\u7684\u8bf4\u660e<\/strong><\/h2>\n\n\n\n<p><strong>\u5907\u6ce8<\/strong>\uff1a\u4e3a\u4e86\u6700\u5927\u7a0b\u5ea6\u5730\u53d1\u6325 <strong>LVGL<\/strong> \u7684\u6027\u80fd\uff0c\u672c\u6587\u5c06 <strong>LVGL<\/strong> \u7684\u8272\u6df1\u8bbe\u7f6e\u4e3a <strong>16bit<\/strong>\uff08\u5373 <strong>RGB565<\/strong>\uff09\u3002\u8fd9\u4e00\u8bbe\u7f6e\u4e0e\u4e4b\u524d <strong>VDMA<\/strong> \u5de5\u7a0b\u4f7f\u7528\u7684 <strong>24bit RGB888<\/strong> \u8272\u6df1\u7565\u6709\u4e0d\u540c\u3002\u5982\u679c\u5927\u5bb6\u7684\u5de5\u7a0b\u662f\u57fa\u4e8e <strong>VDMA<\/strong> \u5de5\u7a0b\u8fdb\u884c\u4fee\u6539\u7684\uff0c\u8bf7\u7279\u522b\u6ce8\u610f\u8c03\u6574\u8fd9\u90e8\u5206\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<p><strong>LVGL<\/strong> \u53ea\u652f\u6301 <strong>1bit<\/strong>\u3001<strong>8bit<\/strong>\u3001<strong>16bit<\/strong> \u548c <strong>32bit<\/strong> \u7684\u8272\u6df1\uff0c<strong>24bit<\/strong> \u8272\u6df1\u4e0d\u53ef\u76f4\u63a5\u4f7f\u7528\u3002\u5982\u679c\u9700\u8981\u5f00\u542f <strong>RGB888<\/strong> \u683c\u5f0f\uff0c\u5fc5\u987b\u4f7f\u7528 <strong>32bit ARGB<\/strong> \u6a21\u5f0f\u3002\u7136\u800c\uff0c\u4f7f\u7528 <strong>32bit<\/strong> \u8272\u6df1\u4f1a\u5bfc\u81f4\u6570\u636e\u6d41\u5904\u7406\u548c\u5185\u5b58\u6d88\u8017\u76f8\u8f83 <strong>16bit<\/strong> \u8272\u6df1\u589e\u52a0\u7ea6\u4e24\u500d\uff0c\u8fd9\u5c06\u5f71\u54cd\u6f14\u793a\u7684\u6027\u80fd\u3002\u56e0\u6b64\uff0c\u672c\u6b21\u6f14\u793a\u4e0d\u4f7f\u7528 <strong>32bit<\/strong> \u8272\u6df1\u3002\u5982\u679c\u60a8\u5bf9\u663e\u793a\u989c\u8272\u8d28\u91cf\u6709\u8f83\u9ad8\u8981\u6c42\uff0c\u53ef\u4ee5\u81ea\u884c\u5c1d\u8bd5\u66f4\u6539\u4e3a <strong>32bit<\/strong> \u6a21\u5f0f\u3002<\/p>\n\n\n\n<p>\uff08\u548c\u4e4b\u524dVDMA\u7ae0\u8282\u4e0d\u540c\u7684\u5730\u65b9\u662f  VDMA\u6a21\u5757\u91cc\u7684\u4f4d\u5bbd\u8bbe\u7f6e\uff0c\u4ee5\u53caVideo out \u6a21\u5757\u7684\u4f4d\u5bbd\u548c\u683c\u5f0f\u8bbe\u7f6e\uff0c\u4e0b\u6587\u4f1a\u63d0\u5230\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5173\u4e8e\u672c\u6b21\u79fb\u690dLVGL\u7248\u672c\u662fV8.3.10\u7684\u8bf4\u660e<\/strong><\/h2>\n\n\n\n<p>\u8003\u8651\u5230\u73b0\u5728\uff082024\u5e7412\u670820\u65e5\uff09\u6700\u65b0\u7248\u7684 GUI GUIDER\uff08V1.8.1GA\uff09 \uff08\u684c\u9762\u56fe\u5f62LVGL\u7f16\u8f91\u5668\uff09\u652f\u6301\u7684\u7248\u672c\u662f8.3.10\uff0c\u6240\u4ee5\u672c\u6587\u4e2d\u7684\u79fb\u690d\u5c06\u4ee5LVGL 8.3.10\u7248\u6765\u5c55\u5f00\u4ecb\u7ecd\uff0c\u8be6\u7ec6\u7684LVGL\u4e0b\u8f7d\u5730\u5740\u5982\u4e0b <a href=\"https:\/\/github.com\/lvgl\/lvgl\/releases\">https:\/\/github.com\/lvgl\/lvgl\/releases<\/a><\/p>\n\n\n\n<p>\u672c\u6b21\u5b9e\u9a8c\u9700\u8981\u5916\u63a5\u672c\u7ad9\u76845\u5bf8IPS \u5c4f\u5e55\u6a21\u5757\uff0c\u6709\u5173\u672c\u6b21\u5b9e\u9a8c\u7684 RGB\u5c4f\u7684\u539f\u7406\u56fe\u624b\u518c\u4ee5\u53ca\u5176\u4ed6\u4f8b\u7a0b\u8d44\u6599\u53ef\u4ee5\u53c2\u770b\u4e0b\u9762\u6c47\u603b\u8d34\uff1a<a href=\"http:\/\/www.hellofpga.com\/index.php\/2024\/12\/08\/hf_lcd_d50s01\/\">5\u5bf8IPS 800X480 RGB\u63a5\u53e3LCD\u5c4f\u5e55\u6a21\u5757<\/a> \uff08\u7406\u8bba\u4e0a\u672c\u6b21\u79fb\u690d\u8fc7\u7a0b\u652f\u6301\u6240\u6709RGB888 \u7684800X480\u5c4f\u5e55\uff0c\u89e6\u6478IC\u662fGT911\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"678\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-4-1024x678.png\" alt=\"\" class=\"wp-image-8856\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-4-1024x678.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-4-300x198.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-4-768x508.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-4-1536x1016.png 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-4.png 1596w\" 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>LVGL\u7b80\u4ecb<\/strong><\/h2>\n\n\n\n<p><strong>LVGL<\/strong>\uff08\u8f7b\u91cf\u7ea7\u56fe\u5f62\u5e93\uff09\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u5e93\uff0c\u65e8\u5728\u4e3a\u5d4c\u5165\u5f0f\u8bbe\u5907\u63d0\u4f9b\u9ad8\u6548\u3001\u4f4e\u8d44\u6e90\u6d88\u8017\u7684\u56fe\u5f62\u663e\u793a\u89e3\u51b3\u65b9\u6848\u3002\u5b83\u5e7f\u6cdb\u5e94\u7528\u4e8e\u4f4e\u529f\u8017\u3001\u8d44\u6e90\u53d7\u9650\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u652f\u6301\u591a\u79cd\u786c\u4ef6\u5e73\u53f0\uff0c\u5e76\u63d0\u4f9b\u4e30\u5bcc\u7684\u56fe\u5f62\u754c\u9762\u7ec4\u4ef6\u548c\u52a8\u753b\u6548\u679c\u3002<\/p>\n\n\n\n<p>\u6b64\u5916LVGL\u8fd8\u6709\u4ee5\u4e0b\u51e0\u4e2a\u7279\u70b9(\u7ffb\u8bd1\u81eaLVGL\u5b98\u7f51)<\/p>\n\n\n\n<p><strong>\u5b83\u662f\u5f00\u6e90\u7684<\/strong><br>LVGL \u662f\u5b8c\u5168\u5f00\u6e90\u7684\uff0c\u8fd9\u6709\u51e0\u4e2a\u663e\u8457\u7684\u4f18\u52bf\u3002\u9996\u5148\uff0c\u5b83\u8ba9\u4f60\u53ef\u4ee5\u5b8c\u5168\u638c\u63a7\u8be5\u5e93\uff0c\u56e0\u4e3a\u4f60\u4e0d\u4ec5\u53ef\u4ee5\u67e5\u770b\u3001\u4fee\u6539\u3001\u7f16\u8bd1\u548c\u8c03\u8bd5\u5e95\u5c42\u6e90\u4ee3\u7801\uff0c\u8fd8\u53ef\u4ee5\u5b8c\u5168\u83b7\u53d6\u5b83\u3002\u4e00\u65e6\u4e0b\u8f7d\uff0c\u5b83\u5c31\u5c5e\u4e8e\u4f60\u4e86\u3002\u8fd9\u79cd\u4e0d\u4f9d\u8d56\u5355\u4e00\u4f9b\u5e94\u5546\u7684\u72ec\u7acb\u6027\u5177\u6709\u5de8\u5927\u7684\u4ef7\u503c\u3002\u6b64\u5916\uff0c\u5f00\u6e90\u8fd8\u9f13\u52b1\u534f\u4f5c\u4e0e\u77e5\u8bc6\u5171\u4eab\uff0c\u5168\u7403\u7684\u5f00\u53d1\u8005\u90fd\u5728\u4e3a\u8f6f\u4ef6\u7684\u6539\u8fdb\u505a\u51fa\u8d21\u732e\uff0c\u4f7f\u5176\u53d8\u5f97\u66f4\u52a0\u53ef\u9760\u5e76\u529f\u80fd\u66f4\u52a0\u4e30\u5bcc\uff0c\u4ee5\u89e3\u51b3\u73b0\u5b9e\u751f\u6d3b\u4e2d\u7684\u5404\u79cd\u95ee\u9898\u3002<\/p>\n\n\n\n<p><strong>\u5b83\u662f\u514d\u8d39\u7684<\/strong><br>LVGL \u91c7\u7528 MIT \u8bb8\u53ef\u8bc1\u53d1\u5e03\uff0c\u5141\u8bb8\u7528\u6237\u81ea\u7531\u4f7f\u7528\u3001\u4fee\u6539\u548c\u5206\u53d1\u8f6f\u4ef6\uff0c\u800c\u65e0\u9700\u627f\u62c5\u590d\u6742\u7684\u9650\u5236\u6216\u6761\u4ef6\u3002\u8fd9\u4e3a\u5f00\u53d1\u8005\u548c\u4f01\u4e1a\u63d0\u4f9b\u4e86\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u5c06\u8be5\u8f6f\u4ef6\u96c6\u6210\u5230\u81ea\u5df1\u7684\u9879\u76ee\u4e2d\uff0c\u751a\u81f3\u7528\u4e8e\u5546\u4e1a\u76ee\u7684\uff0c\u540c\u65f6\u4ecd\u9700\u4fdd\u7559\u5bf9\u539f\u4f5c\u8005\u7684\u7f72\u540d\u3002<\/p>\n\n\n\n<p>\u5173\u4e8eLVGL\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u53ef\u4ee5\u8bbf\u95eeLVGL\u7684\u5b98\u7f51\u83b7\u5f97 <a href=\"https:\/\/lvgl.io\/\">https:\/\/lvgl.io\/<\/a><\/p>\n\n\n\n<p>\u672c\u6587\u5c06\u91cd\u70b9\u653e\u5728\u5982\u4f55\u5c06LVGL \u79fb\u690d\u5230\u672c\u7ad9\u7684ZYNQ \u4e3b\u677f\u4e0a\u3002 \u5750\u7a33\u6276\u597d\uff0c\u63a5\u4e0b\u6765\u5c06\u662f\u672c\u6587\u7684\u6b63\u9898\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u524d\u8a00 <\/strong><\/h2>\n\n\n\n<p>\u5907\u6ce8\uff1a \u4e3a\u4e86\u65b9\u4fbf\u4e4b\u540e\u7684\u9879\u76ee\u62d3\u5c55\uff0c\u672c\u6587\u5728VIVADO\u5de5\u7a0b\u4e2d\u9664\u4e86\u5f00\u542f VDMA\u548cIIC\u7684\u529f\u80fd\u5916\uff0c\u8fd8\u5f00\u542f\u4e86SD\u5361 \uff0cUART\uff0c\u4ee5\u53ca QSPI FLASH\u7684\u529f\u80fd\uff08LVGL\u6f14\u793a\u4e2d\u7528\u4e0d\u5230\uff0c\u4f46\u662f\u4eca\u540e\u7684\u9879\u76ee\u4e5f\u8bb8\u4f1a\u7528\u5230\uff09<\/p>\n\n\n\n<p>\u5173\u4e8eVDMA\u70b9\u5c4f\uff0c\u4ee5\u53ca\u89e6\u6478\u5c4f\u7684\u90e8\u5206\uff0c\u5728\u4e4b\u524d\u7684\u5de5\u7a0b\u4e2d\u6709\u63d0\u5230\uff0c\u53ef\u4ee5\u53c2\u8003(\u8fd9\u91cc\u4ee5Smart ZYNQ\u4e3b\u677f\u4e3a\u4f8b\uff0c\u672c\u6587\u5728VIVADO\u7684\u521b\u5efa\u4e0a\u4f1a\u6709\u90e8\u5206\u548c\u4e4b\u524dVDMA\u7684\u5de5\u7a0b\u6709\u91cd\u53e0)<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"http:\/\/www.hellofpga.com\/index.php\/2024\/12\/14\/sp_sl_vdma_lcd_color_bar\/\">\u57fa\u4e8eSmart ZYNQ (SP\/SP2\/SL \u7248) \u7684PS\u5b9e\u9a8c\u4e8c\u5341\u4e00 5\u5bf8RGB\u5c4f\u5b9e\u9a8c\uff1a\u7528VDMA\u6a21\u5757\u6765\u7f13\u5b58\u56fe\u50cf\u5e76\u5728LCD\u4e0a\u663e\u793a\uff08\u4e00\uff09PS\u7aef\u5f69\u6761\u7eb9\u7684\u663e\u793a<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.hellofpga.com\/index.php\/2024\/12\/14\/vdma_lcd_tf_image\/\">\u57fa\u4e8eSmart ZYNQ (SP\/SP2\/SL \u7248) \u7684PS\u5b9e\u9a8c\u4e8c\u5341\u4e8c 5\u5bf8RGB\u5c4f\u5b9e\u9a8c\uff1a \u7528VDMA\u6a21\u5757\u6765\u7f13\u5b58\u56fe\u50cf\u5e76\u5728LCD\u4e0a\u663e\u793a\uff08\u4e8c\uff09\u663e\u793aTF\u5361\u4e0a\u7684BMP\u683c\u5f0f\u56fe\u7247<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.hellofpga.com\/index.php\/2024\/12\/18\/sp_sl_lcd_touch_panel_demo\/\">\u57fa\u4e8eSmart ZYNQ (SP\/SP2\/SL \u7248) \u7684PS\u5b9e\u9a8c\u4e8c\u5341\u4e09 5\u5bf8RGB\u5c4f\u5b9e\u9a8c\uff1a \u7535\u5bb9\u89e6\u6478\u90e8\u5206DEMO<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u672c\u6587\u5c06\u5206\u786c\u4ef6\u548c\u8f6f\u4ef6\u4e24\u4e2a\u90e8\u5206\u6765\u4ecb\u7ecd\uff1a<br><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u786c\u4ef6\u90e8\u5206<\/strong><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001Vivado\u5de5\u7a0b\u521b\u5efa<\/strong><\/h2>\n\n\n\n<p>\u5de5\u7a0b\u521b\u5efa\u7684\u8fc7\u7a0b\u548c\u4ee5\u5f80\u521b\u5efa\u65b9\u5f0f\u662f\u4e00\u6837\u5f97\uff0c\u5728\u8bbe\u7f6e\u82af\u7247\u578b\u53f7\u7684\u754c\u9762\uff0c\u5927\u5bb6\u6839\u636e\u81ea\u5df1\u4e3b\u677f\u5b9e\u9645\u7684\u82af\u7247\u578b\u53f7\u8fdb\u884c\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Lemon ZYNQ                           : <\/strong> XC7Z020CLG400-1 <\/li>\n\n\n\n<li><strong>Smart ZYNQ \uff08SP\/SP2\/SL\uff09  :<\/strong>  XC7Z020CLG484-1 \uff08\u8fd9\u91cc\u53ef\u4ee5\u9009-2\u56e0\u4e3a \u677f\u5b50\u5b9e\u9645\u8d34\u7684\u662f-2\uff09<\/li>\n\n\n\n<li><strong>Smart ZYNQ \u6807\u51c6\u7248\uff08\u505c\u4ea7\uff09  \uff1a<\/strong>XC7Z020CLG400-1     \/   XC7Z010CLG400-1  \uff08\u63097010\/7020\u7248\u6765\u9009\u62e9\uff09<\/li>\n\n\n\n<li><strong>Tiny ZYNQ \uff08\u505c\u4ea7\uff09                \uff1a<\/strong>XC7Z010CLG400-1<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001Vivado \u4e2d\u7684\u8bbe\u7f6e<\/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\"><img loading=\"lazy\" decoding=\"async\" width=\"981\" height=\"361\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image.png\" alt=\"\" class=\"wp-image-2805\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image.png 981w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-300x110.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-768x283.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/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) \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\uff08512MB\uff09\uff0c\u6570\u636e\u4f4d\u5bbd\u9009\u62e916bit \u6700\u540e\u70b9\u51fb\u201cOK\u201d,\u5982\u4e0b\u56fe\u6240\u793a\u3002\uff08\u5982\u679c\u60a8\u662fTiny \u7cfb\u5217\u4e3b\u677f\uff0c\u8fd9\u91cc\u7684DDR\u9700\u8981\u4fee\u6539\u6210256MB\u7684\uff0c\u53ef\u4ee5\u770b\u4ee5\u4e0b\u5217\u8868\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-black-color has-text-color has-link-color wp-elements-06c03b4519c8ee11e11c6e657bc2698f\"><strong>Lemon ZYNQ \u4e3b\u677f : MT41K256M16RE-125\uff08512MB\uff09\u900916BIT<\/strong><\/li>\n\n\n\n<li><strong>Smart ZYNQ \u5168\u7cfb\u5217\u7684\u677f\u5b50:  MT41K256M16RE-125\uff08512MB\uff09\u900916BIT<\/strong><\/li>\n\n\n\n<li><strong>Tiny ZYNQ\uff08\u505c\u4ea7\uff09 \uff1aMT41K128M16JT 125\uff08256MB\uff09\u900916BIT<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"442\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-92.png\" alt=\"\" class=\"wp-image-2668\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-92.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-92-300x173.png 300w\" 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\u7f6e\u65f6\u949f\u529f\u80fd\uff1a<\/p>\n\n\n\n<p>a ) \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\u91ccFCLK_CLK0\u6211\u4eec\u8bbe\u7f6e\u621025M\uff08\u7528\u4e8eLCD 25M DCLK\u7528\uff09FCLK_CLK1\u8bbe\u7f6e\u621050M\u65f6\u949f\u7528\u4e8eAXI_LITE\u57fa\u7840\u901a\u4fe1\uff0c\u7136\u540e\u589e\u52a0FCLK_CLK2 150M\uff08\u7528\u4e8eAXI4 HP\u9ad8\u901f\u63a5\u53e3\u7528\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"519\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-7-1024x519.png\" alt=\"\" class=\"wp-image-8892\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-7-1024x519.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-7-300x152.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-7-768x389.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-7.png 1036w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>b ) \u4fee\u6539PS\u7684\u8f93\u5165\u4e3b\u65f6\u949f\uff08<\/strong>Clock Configuration \u754c\u9762\u4e2d\u5c06 Input Frequency \u7531\u9ed8\u8ba4\u768433.333333 \u4fee\u6539\u6210\u4e3b\u677f\u5bf9\u5e94\u7684PS\u65f6\u949f\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-vivid-red-color has-text-color has-link-color wp-elements-f64cc4cb03094bcb9a74430c6bbc3c78\"><strong>Lemon ZYNQ \u4e3b\u677f : \u9700\u8981\u4fee\u6539\u621050M \uff08\u7247\u5916PS\u6676\u632f\u662f50M\uff09<\/strong><\/li>\n\n\n\n<li>Smart ZYNQ \u5168\u7cfb\u5217\u7684\u677f\u5b50: \u4fdd\u6301\u9ed8\u8ba433.3333 \u4e0d\u7528\u4fee\u6539<\/li>\n\n\n\n<li>Tiny ZYNQ\uff08\u505c\u4ea7\uff09 \uff1a\u4fdd\u6301\u9ed8\u8ba433.3333<\/li>\n<\/ul>\n\n\n\n<p>\uff08ZYNQ\u4e3b\u677f\u9ed8\u8ba4\u7684PS\u65f6\u949f\u662f33.33M\uff0c\u4f46\u662f\u6709\u4e00\u4e9b\u5e02\u9762\u4e0a\u6bd4\u8f83\u706b\u7684\u4e3b\u677f\uff0c\u5982Digilent \u7684PYNQ-Z1 \uff0cTUI\u7684PYNQ-Z2\uff0c \u4ee5\u53caDigilent \u7684Arty Z7 \u7b49\u6bd4\u8f83\u6d41\u884c\u7684ZYNQ\u4e3b\u677f\u6240\u4f7f\u7528\u7684PS\u65f6\u949f\u662f50Mhz\u7684\uff09\u5982\u679c\u662f\u5176\u4ed6\u578b\u53f7\u7684\u4e3b\u677f\u8bf7\u6309\u4e3b\u677f\u4e0a\u7684\u914d\u7f6e\u8fdb\u884c\u4fee\u6539<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"925\" height=\"546\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-5.png\" alt=\"\" class=\"wp-image-8703\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-5.png 925w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-5-300x177.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-5-768x453.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>6) \u5728PS-PL\u63a5\u53e3\u90e8\u5206\uff0c\u589e\u52a0 AXI HP \u9ad8\u901f\u63a5\u53e3<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"617\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-12.png\" alt=\"\" class=\"wp-image-722\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-12.png 956w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-12-300x194.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-12-768x496.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>7)\u4e3a\u4e86\u65b9\u4fbf\u540e\u7eed \u4f8b\u7a0b\u7684\u62d3\u5c55\uff0c\u8fd9\u91cc\u589e\u52a0SD\u7684\u529f\u80fd\uff08\u672c\u6b21\u5de5\u7a0b\u7528\u4e0d\u5230\uff0c\u4ec5\u4e3a\u4e86\u65b9\u4fbf\u540e\u7eed\u8c03\u8bd5\u7528\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"315\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-22.png\" alt=\"\" class=\"wp-image-1989\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-22.png 532w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-22-300x178.png 300w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/figure>\n\n\n\n<p>8)\u4e3a\u4e86\u65b9\u4fbf\u540e\u7eed \u4f8b\u7a0b\u7684\u62d3\u5c55\uff0c\u8fd9\u91cc\u589e\u52a0QSPI FLASH\u7684\u529f\u80fd\uff08\u672c\u6b21\u5de5\u7a0b\u7528\u4e0d\u5230\uff0c\u4ec5\u4e3a\u4e86\u65b9\u4fbf\u540e\u7eed\u8c03\u8bd5\u7528\uff09\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>9)\u4e3a\u4e86\u65b9\u4fbf\u540e\u7eed \u4f8b\u7a0b\u7684\u62d3\u5c55\uff0c\u8fd9\u91cc\u589e\u52a0UART\u7684\u529f\u80fd\uff08\u672c\u6b21\u5de5\u7a0b\u7528\u4e0d\u5230\uff0c\u4ec5\u4e3a\u4e86\u65b9\u4fbf\u540e\u7eed\u8c03\u8bd5\u7528\uff09\u8fd9\u91cc\u5404\u4e2a\u4e3b\u677f\u4f1a\u6709\u533a\u522b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Lemon ZYNQ \u4e3b\u677f : <\/strong>\u4f7f\u80fd<strong>UART 0<\/strong> \u5e76\u5728IO\u9009\u9879\u91cc \u9009\u62e9<strong>MIO<\/strong>\u65b9\u5f0f\uff0c\u4e0b\u62c9\u83dc\u5355\u91cc\u9009\u62e9<strong>MIO14-15<\/strong><\/li>\n\n\n\n<li><strong>Smart ZYNQ SP \/ SP2 \/ SL \u7248<\/strong>\u7684\u677f\u5b50: \u4f7f\u80fd<strong>UART 0<\/strong> \u5e76\u5728IO\u9009\u9879\u91cc \u9009\u62e9<strong>EMIO<\/strong>\u65b9\u5f0f<\/li>\n\n\n\n<li><strong>Smart ZYNQ \u6807\u51c6\u7248<\/strong>\uff08\u505c\u4ea7\uff09\uff1a\u4f7f\u80fd<strong>UART 0<\/strong> \u5e76\u5728IO\u9009\u9879\u91cc \u9009\u62e9<strong>MIO<\/strong>\u65b9\u5f0f\uff0c\u4e0b\u62c9\u83dc\u5355\u91cc\u9009\u62e9<strong>MIO50-51<\/strong><\/li>\n\n\n\n<li><strong>Tiny ZYNQ<\/strong>\uff08\u505c\u4ea7\uff09 \u4f7f\u80fd<strong>UART 0<\/strong> \u5e76\u5728IO\u9009\u9879\u91cc \u9009\u62e9<strong>EMIO<\/strong>\u65b9\u5f0f<\/li>\n<\/ul>\n\n\n\n<p>\u4e0b\u56fe\u662f\u4ee5EMIO \u65b9\u5f0f\u4e3a\u793a\u4f8b\uff1a(MIO\u65b9\u5f0f\u4e5f\u5728\u8be5\u9875\u9762\u4fee\u6539\uff0c\u4fee\u6539IO\u5bf9\u5e94\u7684\u9009\u9879\u5373\u53ef)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"210\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-118.png\" alt=\"\" class=\"wp-image-1339\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-118.png 664w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-118-300x95.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/figure>\n\n\n\n<p>10\uff09 \u4f7f\u80fdI2C 0  \u5e76\u9009\u62e9EMIO \uff08\u89e6\u6478\u5c4f\u662f\u901a\u8fc7I2C\u8fdb\u884c\u63a7\u5236\u7684\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"331\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-38.png\" alt=\"\" class=\"wp-image-8988\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-38.png 858w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-38-300x116.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-38-768x296.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>11) \u5728GPIO\u7684\u5730\u65b9\u6dfb\u52a03\u8defEMIO GPIO \uff08\u5176\u4e2d\u4e00\u8def\u63a7\u5236 LCD\u7684\u80cc\u5149\uff0c\u4e00\u8def\u63a7\u5236\u89e6\u6478\u5c4f\u7684RST\uff0c\u4e00\u8def\u63a7\u5236\u89e6\u6478\u5c4f\u7684 INT\u811a\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"765\" height=\"415\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-37.png\" alt=\"\" class=\"wp-image-8986\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-37.png 765w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-37-300x163.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>12\uff09 <strong>\u4fee\u6539PS\u90e8\u5206BANK 1 I\/O \u7684BANK\u7535\u538b(BANK 501)<\/strong><\/p>\n\n\n\n<p>\u8fd9\u90e8\u5206\u7684\u8bbe\u7f6e\u4f1a\u5bf9SD\u5361\uff0c\u7f51\u7edc \uff0cUSB\u90e8\u5206\u529f\u80fd\u7684\u7a33\u5b9a\u6027\u4ea7\u751f\u5f71\u54cd\uff0c\u6240\u4ee5\u9700\u8981\u5c06\u8fd9\u90e8\u5206\u7535\u538b\u6309\u7167\u4e3b\u677f\u5b9e\u9645\u7684BANK\u7535\u538b\u5148\u8fdb\u884c\u8bbe\u7f6e\u3002\uff08\u53ef\u4ee5\u67e5\u8be2\u4e3b\u677f\u7684\u539f\u7406\u56fe\uff0c\u6216\u8005\u8be2\u95ee\u4e3b\u677f\u7684\u751f\u4ea7\u5382\u5546\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Lemon ZYNQ \u4e3b\u677f : \u4fee\u6539\u6210LVCMOS 1.8V<\/strong><\/li>\n\n\n\n<li><strong>Smart ZYNQ \u5168\u7cfb\u5217\u4e3b\u677f:<\/strong> <strong>\u4fdd\u6301\u9ed8\u8ba4LVCMOS 3.3V<\/strong><\/li>\n\n\n\n<li><strong>Tiny ZYNQ<\/strong>\uff08<strong>\u505c\u4ea7\uff09: \u4fdd\u6301\u9ed8\u8ba4LVCMOS 3.3V<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"414\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-10-1024x414.png\" alt=\"\" class=\"wp-image-8715\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-10-1024x414.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-10-300x121.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-10-768x311.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/11\/image-10.png 1199w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>\u4e4b\u540e\u70b9\u9009OK \u4fdd\u5b58\u9000\u51faZYNQ\u7684\u914d\u7f6e\u9875<\/strong><\/p>\n\n\n\n<p>13\uff09 \u56de\u5230Block Design \u754c\u9762\uff0c\u5bf9IIC, EMIO GPIO\u8fdb\u884c External \u5f15\u51fa\uff08 \u5206\u522b\u53f3\u952e GPIO_0 \u548c IIC_0 \u9009\u4e2dMake External \u5f15\u51fa\u8fd9\u4e24\u7ec4\u4fe1\u53f7\u63a5\u53e3\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"917\" height=\"632\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-47.png\" alt=\"\" class=\"wp-image-9057\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-47.png 917w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-47-300x207.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-47-768x529.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>14\uff09\u5bf9EMIO UART\u8fdb\u884c External \u5f15\u51fa \uff08\u5982\u679c\u4e0a\u6587\u4e2d\u662fMIO UART\u7684\u5c31\u4e0d\u9700\u8981\u8fdb\u884c\u6b64\u6b65\u9aa4\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MIO UART\u7684\u4e3b\u677f\uff08\u4e0d\u9700\u8981\u6b64\u6b65\u9aa4\uff09: <strong> Lemon ZYNQ<\/strong>  \uff0c Smart ZYNQ \u6807\u51c6\u7248\uff08\u505c\u4ea7\uff09<\/li>\n\n\n\n<li>EMIO UART\u7684\u4e3b\u677f\uff08\u9700\u8981\u6b64\u6b65\u9aa4\uff09 \uff1a<strong>Smart ZYNQ SP \/ SP2 \/ SL \u7248<\/strong>\uff0cTiny ZYNQ\u4e3b\u677f<\/li>\n<\/ul>\n\n\n\n<p>\uff08 \u53f3\u952e UART_0\u9009\u4e2dMake External \u5f15\u51faUART\u4fe1\u53f7\u63a5\u53e3 \uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"602\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-46.png\" alt=\"\" class=\"wp-image-9055\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-46.png 850w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-46-300x212.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-46-768x544.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><strong>14)\u6dfb\u52a0\u4e00\u4e2aVDMA\u6a21\u5757<\/strong>,\u641c\u7d22\u5e76\u6dfb\u52a0VDMA\u6a21\u5757\uff0c\u5e76\u53cc\u51fb\u6253\u5f00\u8fd9\u4e2a\u6a21\u5757\u7684\u914d\u7f6e\u9875<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"355\" height=\"127\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-2.png\" alt=\"\" class=\"wp-image-705\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-2.png 355w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-2-300x107.png 300w\" sizes=\"auto, (max-width: 355px) 100vw, 355px\" \/><\/figure>\n\n\n\n<p>\u672c\u6b21\u5de5\u7a0b\u53ea\u7528\u5230\u4e86 VDMA\u7684 \u8bfb\u529f\u80fd\uff0c\u6240\u4ee5\u8fd9\u91cc\u52fe\u9664\u4e86Enable Write Channel\u529f\u80fd\uff0c\u5e27\u7f13\u5b58\u4fdd\u7559\u9ed8\u8ba4\u76843\uff08\u5b9e\u9645\u672c\u4f8b\u7684LVGL\u53ea\u4f7f\u75282\u5e27\u7f13\u5b58\uff09\uff0c \u56e0\u4e3a\u6211\u4eec\u663e\u793a\u7684\u5185\u5bb9\u662fRGB565\uff0816\u4f4d\u8272\uff0c\u4e4b\u4e0a\u6587\u6709\u63d0\u5230\uff09\uff0c\u6240\u4ee5 stream Data Width \u6539\u4e3a16 <strong>\uff08\u8fd9\u91cc\u548c\u4e4b\u524d\u7684VDMA\u90e8\u5206\u7ae0\u8282\u4e0d\u540c\uff09<\/strong>\u3002 Line Buffer Depth\u9ed8\u8ba4512\uff08\u53ea\u8981AXI\u603b\u7ebf\u7684\u901f\u7387\u5927\u4e8e\u663e\u793a\u7684\u6570\u636e\u6d41\u7684\u901f\u7387\uff0c\u7f13\u5b58\u53ef\u4ee5\u6539\u66f4\u5c0f\uff09\uff0cRead Burst Size \u4fee\u6539\u621064<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"770\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-60-1024x770.png\" alt=\"\" class=\"wp-image-9108\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-60-1024x770.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-60-300x226.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-60-768x578.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-60-1536x1156.png 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-60.png 1555w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5728\u7cfb\u7edf\u91cc\u589e\u52a0video out \u6a21\u5757\uff0c\u8fd9\u4e2a\u6a21\u5757\u7684\u4f5c\u7528\u662f\u5c06AXI4-Stream \u7684\u6570\u636e\u6d41\u8f6c\u6362\u6210\u6807\u51c6\u7684\u89c6\u9891\u683c\u5f0f\u8f93\u51fa\uff0c\u4e0e\u6211\u4eec\u7684RGB LCD\u5c4f\u5e55\u5bf9\u5e94<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"389\" height=\"234\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-4.png\" alt=\"\" class=\"wp-image-708\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-4.png 389w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-4-300x180.png 300w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><\/figure>\n\n\n\n<p>clock mode\u6539\u6210independent \uff0c\u53e6\u5916Video Format \u6539\u6210Mona\/Sensor\uff08\u56e0\u4e3a\u6ca1\u6709\u7b26\u5408\u7684RGB565\u683c\u5f0f\uff0c\u53ea\u80fd\u7528\u8fd9\u4e2a\u4e34\u65f6\u66ff\u4ee3\uff09 input \u548coutput Width \u90fd\u4fee\u6539\u621016\u4f4d<strong>\uff08\u8fd9\u91cc\u548c\u4e4b\u524d\u7ae0\u8282\u7684VDMA\u5b9e\u9a8c\u5de5\u7a0b\u4e0d\u540c\uff09<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"808\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-61-1024x808.png\" alt=\"\" class=\"wp-image-9110\" style=\"width:621px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-61-1024x808.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-61-300x237.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-61-768x606.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-61.png 1297w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>Clock Mode\u4ee3\u8868aclk\u4e0evid_io_out_clk\u4e24\u4e2a\u65f6\u949f\u662f\u5426\u540c\u6e90\u3002\u56e0\u4e3aHDMI \u7684\u663e\u793a\u548caclk\u7684\u8f93\u5165\u8fd9\u91cc\u7684\u65f6\u949f\u57df\u5e76\u4e0d\u540c\uff08HDMI\u663e\u793a\u7684\u50cf\u7d20\u65f6\u949f\u548cACLK\u7684\u6570\u636e\u6d41\u65f6\u949f\u4e0d\u540c\uff09\uff0c\u6240\u4ee5\u8fd9\u91cc\u9009\u62e9independent\u3002\u8ba9\u4e24\u4e2a\u65f6\u949f\u76f8\u4e92\u72ec\u7acb\u3002<\/p>\n\n\n\n<p>Timing Mode\uff1a\u56e0\u4e3a\u540e\u9762\u6211\u4eec\u8981\u7528video timing controller \u6a21\u5757\u6765\u63d0\u4f9b\u89c6\u9891\u65f6\u5e8f\uff0c\u6240\u4ee5\u8fd9\u91cc\u9009\u62e9slave\u6a21\u5f0f<\/p>\n\n\n\n<p>15\uff09<strong>\u589e\u52a0Video Timing Controller \u6a21\u5757<\/strong><\/p>\n\n\n\n<p>video Timing Controller\u662f\u89c6\u9891\u65f6\u5e8f\u63a7\u5236\u5668\uff0c\u652f\u6301AXI-Lite\u63a5\u53e3\u534f\u8bae\uff08\u53ef\u901a\u8fc7\u8be5\u63a5\u53e3\u5728PS\u7aef\u52a8\u6001\u8c03\u6574\u5206\u8fa8\u7387\uff0c\u5982\u679c\u662f\u56fa\u5b9a\u5206\u8fa8\u7387\u5219\u4e0d\u9700\u8981\u8be5\u63a5\u53e3\uff0c\u8fd9\u91cc\u6f14\u793a\u6211\u4eec\u4e0d\u9700\u8981\u52a8\u6001\u8c03\u6574\uff09<\/p>\n\n\n\n<p>\u5728block design\u56fe\u5f62\u7f16\u8f91\u5668\u91cc\u641c\u7d22\u5e76\u6dfb\u52a0 video timing controller\u6a21\u5757\uff0c\u5e76\u53cc\u51fb\u6253\u5f00\u914d\u7f6e\u9875<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"237\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-9.png\" alt=\"\" class=\"wp-image-718\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-9.png 350w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-9-300x203.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/figure>\n\n\n\n<p>\u56e0\u4e3a\u6211\u4eec\u4e0d\u9700\u8981\u52a8\u6001\u914d\u7f6e \u5206\u8fa8\u7387\uff0c\u6240\u4ee5\u8fd9\u91cc\u628aLITE\u7aef\u53e3\u5173\u95ed\uff0c\u4ee5\u53ca\u53d6\u6d88\u6570\u636e\u76d1\u89c6\u529f\u80fd<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"746\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-26-1024x746.png\" alt=\"\" class=\"wp-image-738\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-26-1024x746.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-26-300x218.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-26-768x559.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-26.png 1089w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5728\u7b2c\u4e8c\u9875\u6211\u4eec\u8bbe\u7f6e\u5206\u8fa8\u7387\uff0c\u8fd9\u91cc\u6211\u4eec\u8bbe\u7f6e800X480\u6d4b\u8bd5\u7528\uff0c\u56e0\u4e3a\u6211\u4eec\u7684LCD\u5c4f\u5e55\u7684800\u00d7480\u5206\u8fa8\u7387\u4e0d\u5728\u9884\u8bbe\u5206\u8fa8\u7387\u4e4b\u4e2d\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u624b\u52a8\u8bbe\u7f6e\u53c2\u6570\u3002 \u9009\u62e9CUSTOM,\u5176\u4ed6\u7684\u53c2\u6570\u6309\u4e0b\u56fe\u6240\u793a\u586b\u5199\u5373\u53ef\uff08\u4e0b\u5217\u53c2\u6570\u662f\u6211\u6839\u636eLCD\u5c4f\u5e55\u624b\u518c\u63a8\u8350\u7684\u53c2\u6570\u4fee\u6539\u5f97\u5230\uff0c<strong>DCLK\u65f6\u949f25M\u60c5\u51b5\u4e0b\u53ef\u4ee5\u8f93\u51fa\u7ea6\u6bcf\u79d260\u5e27<\/strong>\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"860\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-5-1024x860.png\" alt=\"\" class=\"wp-image-8889\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-5-1024x860.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-5-300x252.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-5-768x645.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-5.png 1296w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u6211\u7684LCD\u624b\u518c\u4e0a800\u00d7480\u5bf9\u5e94\u7684\u65f6\u5e8f\u8868\uff0c\u5982\u679c\u662f\u7b2c\u4e09\u65b9\u7684\u5c4f\u5e55\u5927\u5bb6\u6839\u636e\u5b9e\u9645\u624b\u4e2d\u7684\u5c4f\u5e55\u4fee\u6539<strong>\uff08\u8bc4\u8bba\u533a\u4e2d\u6709\u4eba\u8bf4\u91ce\u706b\u7684\u5c4f\u5e55\u8fd9\u4e2a\u53c2\u6570\u4e0d\u9002\u7528\uff0c\u9700\u8981\u6839\u636e\u624b\u518c\u5fae\u8c03\uff09<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"509\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-6-1024x509.png\" alt=\"\" class=\"wp-image-8867\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-6-1024x509.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-6-300x149.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-6-768x382.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-6.png 1281w\" 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>\u4e94\u3001\u5728Block Design \u4e2d\u5bf9\u4e4b\u524d\u6dfb\u52a0\u7684\u6a21\u5757\u8fdb\u884c\u8fde\u63a5<\/strong><\/h2>\n\n\n\n<p>\u8fd9\u65f6\u6211\u4eec\u5df2\u7ecf\u5f97\u5230\u4e86\u6240\u9700\u8981\u7684\u5404\u4e2a\u6a21\u5757\uff08\u8fd8\u6709\u4e9b\u590d\u4f4d\u6a21\u5757\u540e\u9762\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6dfb\u52a0 \u5148\u5ffd\u7565\uff09\uff0c<strong>\u63a5\u4e0b\u6765\u7684\u5de5\u4f5c\u5c31\u662f\u8fde\u63a5\u5404\u4e2a\u6a21\u5757<\/strong><\/p>\n\n\n\n<p>1) \u9996\u5148\u50cf\u4e0b\u56fe\uff08\u9ec4\u8272\u90e8\u5206\uff09\u8fd9\u6837\u5b8c\u6210 \u56fe\u50cf\u6570\u636e\u6d41\u90e8\u5206\u7684\u8fde\u63a5<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"487\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-9-1024x487.png\" alt=\"\" class=\"wp-image-8896\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-9-1024x487.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-9-300x143.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-9-768x365.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-9.png 1182w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>2\uff09\u5de6\u952e video out \u6a21\u5757\u7684vid_io_out \u7aef\u53e3\u7684\u201c\u52a0\u53f7\u201d\uff0c\u5c55\u5f00\u7aef\u53e3\u7684\u5185\u5bb9\uff0c\u5e76\u9009\u4e2dvid_active_video,vid_data,vid_hsync,vid_vsync\u8fd9\u51e0\u4e2a\u4fe1\u53f7\uff0c\u5e76\u53f3\u952emake external \u5c06\u4fe1\u53f7\u5f15\u51fa<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"888\" height=\"639\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-62.png\" alt=\"\" class=\"wp-image-9115\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-62.png 888w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-62-300x216.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-62-768x553.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5206\u522b\u5c06\u8fd9\u4e9b\u4fe1\u53f7\u91cd\u547d\u540d\u4e3alcd_de,lcd_data,lcd_hsync,lcd_vsync\u3002 (\u9009\u4e2d\u4fe1\u53f7\uff0c\u5728\u5de6\u4fa7\u7a97\u683c\u7684name \u4e2d\u4fee\u6539)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-63-1024x469.png\" alt=\"\" class=\"wp-image-9116\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-63-1024x469.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-63-300x138.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-63-768x352.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-63.png 1191w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09\u5f15\u51fa\u6211\u4eec\u7684FCLK_CLK0\u4fe1\u53f7\u4f5c\u4e3alcd\u7684lcd_clk\u4fe1\u53f7\uff1a \u53f3\u952eZYNQ\u6a21\u5757\u7684 FCLK_CLK0\uff0c\u5e76\u9009\u4e2dMake External \u5f15\u51fa\u8fd9\u4e2a\u4fe1\u53f7<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"292\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-25.png\" alt=\"\" class=\"wp-image-8926\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-25.png 761w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-25-300x115.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>\u5e76\u9009\u4e2d\u8f93\u51fa\u7684port\uff0c\u5c06\u540d\u5b57\u4fee\u6539\u6210lcd_clk<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"349\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-26-1024x349.png\" alt=\"\" class=\"wp-image-8927\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-26-1024x349.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-26-300x102.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-26-768x262.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-26-1536x524.png 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-26-2000x684.png 2000w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-26.png 2006w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>4) \u5c06VTC\uff08Video Timing Controller\uff09\u6a21\u5757\u7684clk\u4e0e25M\u7684DCLK\u50cf\u7d20\u65f6\u949f\uff08\u901a\u8fc7ZYNQ\u7684FCLK_CLK0\u4ea7\u751f)\u94fe\u63a5\uff0c\u56e0\u4e3a\u8fd9\u4e2aclk\u548c\u50cf\u7d20\u65f6\u949f\u9700\u8981\u9ad8\u5ea6\u540c\u6b65\uff0c\u540c\u7406Axi4-Stream to video_out\u6a21\u5757\u7684clk\u4e5f\u5e94\u8be5\u548c\u8fd9\u4e2a\u50cf\u7d20\u65f6\u949f\u8fde\u63a5\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"566\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-27-1024x566.png\" alt=\"\" class=\"wp-image-8928\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-27-1024x566.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-27-300x166.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-27-768x425.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-27.png 1080w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>5) \u5c06AXI4 LITE\u4f4e\u901f\u901a\u4fe1\u7684\u65f6\u949f\u8fde\u63a5\u5230FCLK_CLK1\u768450M\u65f6\u949f\u4e0a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"456\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-12-1024x456.png\" alt=\"\" class=\"wp-image-8903\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-12-1024x456.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-12-300x134.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-12-768x342.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-12.png 1212w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>6\uff09\u5c06\u548c\u6570\u636e\u6d41\u6709\u5173\u90e8\u5206\u7684\u65f6\u949f\u4e0eFCLK_CLK2\uff08150M\uff09\u8fde\u63a5\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"413\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-13-1024x413.png\" alt=\"\" class=\"wp-image-8906\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-13-1024x413.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-13-300x121.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-13-768x310.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-13.png 1138w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>7) \u589e\u52a0video timing \u6a21\u5757\u7684GEN_CLKEN\u8fde\u7ebf\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"544\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-14-1024x544.png\" alt=\"\" class=\"wp-image-8909\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-14-1024x544.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-14-300x159.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-14-768x408.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-14.png 1350w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>8) \u70b9 Run connection automation \u6765\u81ea\u52a8\u8fde\u63a5\u5269\u4e0b\u7684\u8d70\u7ebf<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"460\" height=\"89\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-27.png\" alt=\"\" class=\"wp-image-764\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-27.png 460w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-27-300x58.png 300w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/figure>\n\n\n\n<p>\u5728\u5f39\u51fa\u7684\u8bbe\u7f6e\u5bf9\u8bdd\u6846\u91cc\u52fe\u9009\u5185\u5bb9\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"319\" height=\"332\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-16.png\" alt=\"\" class=\"wp-image-1974\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-16.png 319w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-16-288x300.png 288w\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u7cfb\u7edf\u5c06\u81ea\u52a8\u5e2e\u6211\u4eec\u8fde\u63a5\u597d\u5269\u4e0b\u7684\u4fe1\u53f7\u7ebf\u4ee5\u53ca\u6dfb\u52a0\u9700\u8981\u7684\u6a21\u5757<\/p>\n\n\n\n<p><strong>9) \u8fde\u63a5\u5404\u4e2a\u6a21\u5757\u7684\u4f7f\u80fd\u548c\u590d\u4f4d\u529f\u80fd<\/strong><\/p>\n\n\n\n<p>a ) \u65b0\u6dfb\u52a0\u4e00\u4e2a Processor System Reset \u6a21\u5757\uff08\u7cfb\u7edf\u4e4b\u524d\u5df2\u7ecf\u5e2e\u6211\u4eec\u6dfb\u52a0\u4e86\u4e24\u4e2a\u65f6\u949f\u7684\u590d\u4f4d\u6a21\u5757\uff08150M\u7684\u548c50M\u7684\uff09\uff0c\u4f46\u662f\u6211\u4eec\u7684VTC \u548c Video out \u7b49\u6a21\u5757\u90fd\u662f\u57fa\u4e8eCLK_0\u4e5f\u5c31\u662f25M\u7684\uff0c\u5982\u679c\u8fd9\u65f6\u5019\u628a\u590d\u4f4d\u4fe1\u53f7\u63a5\u5230 150M\u6216\u800550M\u7684\u590d\u4f4d\u6a21\u5757\u4e0a\uff0c\u7cfb\u7edf\u4e5f\u80fd\u4f7f\u7528\uff0c\u4f46\u662f\u4f1a\u5f39\u51fa\u8b66\u544a\u4ee5\u53catiming \u8b66\u544a\uff09\uff0c\u6240\u4ee5\u8fd9\u91cc\u624d\u9700\u8981\u989d\u5916\u6dfb\u52a0\u4e00\u4e2a\u57fa\u4e8eCLK_0\u7684 \u590d\u4f4d\u6a21\u5757\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"752\" height=\"329\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/a15fedbf249d950409eadfee8f70df6b.png\" alt=\"\" class=\"wp-image-9031\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/a15fedbf249d950409eadfee8f70df6b.png 752w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/a15fedbf249d950409eadfee8f70df6b-300x131.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u91cc\u5c06Processor System Reset\u7684 slowest_sync_clk\u8fde\u63a5\u5230 ZYNQ\u7684 FCLK_CLK0\u4e0a\u4e5f\u5c31\u662f\u6211\u4eec\u7684DCLK\u76f8\u5173\u768425M\u4e0a\uff0c ext_reset_in\u63a5\u5230ZYNQ\u7684\u590d\u4f4d\u8f93\u51fa\u4e0a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"272\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-43-1024x272.png\" alt=\"\" class=\"wp-image-9036\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-43-1024x272.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-43-300x80.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-43-768x204.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-43.png 1522w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>b \uff09\u5c06VTC \uff0cVideo out\u6a21\u5757\u7684 rst_n\u590d\u4f4d\u4fe1\u53f7\u63a5\u5230\u6211\u4eec\u521a\u521a\u6dfb\u52a0\u7684process system reset\u7684peripheral_aresetn\u4fe1\u53f7\u4e0a\uff08\u4f4e\u7535\u5e73\u590d\u4f4d\uff09<\/p>\n\n\n\n<p>\u7531\u4e8evideo out\u6a21\u5757\u7684vid_io_out_reset\u662f\u9ad8\u7535\u5e73\u590d\u4f4d\uff0c\u6211\u4eec\u5c06\u8fd9\u4e2a\u4fe1\u53f7\u63a5\u5230\u521a\u521a\u6dfb\u52a0\u7684process system reset\u7684peripheral_reset\u4fe1\u53f7\u4e0a\uff08\u9ad8\u7535\u5e73\u590d\u4f4d\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"566\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-44.png\" alt=\"\" class=\"wp-image-9038\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-44.png 900w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-44-300x189.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-44-768x483.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>c \uff09\u6211\u4eec\u6dfb\u52a0\u4e00\u4e2aconstant\u6a21\u5757\u6765\u6dfb\u52a0\u4e00\u4e2a\u5e38\u91cf1\uff0c\u7528\u4e8e\u8fde\u63a5\u6211\u4eec\u5404\u4e2a\u6a21\u5757\u7684ce\u4ee5\u53caaclken \u4f7f\u80fd\u4fe1\u53f7<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"552\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-17-1024x552.png\" alt=\"\" class=\"wp-image-8912\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-17-1024x552.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-17-300x162.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-17-768x414.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-17.png 1248w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u5c06\u8fd9\u4e2aconstant \u50cf\u4e0b\u56fe\u4e00\u6837\uff0c\u8fde\u63a5video out \u7684aclken\u4fe1\u53f7\uff0cvid_io_out_ce\u4fe1\u53f7\uff0c\u4ee5\u53caVTC\u7684clken\u4fe1\u53f7<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"468\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-18-1024x468.png\" alt=\"\" class=\"wp-image-8913\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-18-1024x468.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-18-300x137.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-18-768x351.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-18.png 1338w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u6700\u7ec8\u7684\u8fde\u63a5\u56fe\u5982\u4e0b\uff08\u770b\u4f3c\u5f88\u590d\u6742\uff0c\u5176\u5b9e\u8fde\u7ebf\u7684\u65f6\u5019 \u53ea\u9700\u8981\u5206\u6e05\u695a\u5404\u4e2a\u6a21\u5757\u662f\u4ece\u9ad8\u901f\u63a5\u53e3\u62c9\u51fa \u8fd8\u662f\u4f4e\u901f\u7684\u63a5\u53e3\uff0c\u4f20\u8f93\u7684\u662f\u6307\u4ee4AXI LITE \u8fd8\u662f\u6570\u636e\u6d41 AXI4 STREAM \u8fd8\u662f \u50cf\u7d20PIX\uff0c\u719f\u6089\u540e\u518d\u8fde\u5c31\u4e0d\u4f1a\u6709\u95ee\u9898\u4e86\uff09 \u5176\u4e2d\u5f88\u591a\u6a21\u5757\u90fd\u662f\u81ea\u52a8\u751f\u6210\u7684 \u56fe\u7247\u53ef\u80fd\u4f1a\u770b\u4e0d\u6e05\u695a\uff0c\u53ef\u4ee5\u5728\u793a\u4f8b\u5de5\u7a0b\u91cc\u67e5\u770b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"415\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-48-1024x415.png\" alt=\"\" class=\"wp-image-9060\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-48-1024x415.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-48-300x122.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-48-768x311.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-48-1536x622.png 1536w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-48.png 1760w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>10 ) \u4fdd\u5b58\u5de5\u7a0b\uff0c\u7136\u540e\u70b9\u51fbsource\u2192Design Source \uff0c\u53f3\u952e\u6211\u4eec\u521b\u5efa\u7684BLOCK\u5de5\u7a0b\uff0c\u70b9\u51fbcreate HDL wrapper\uff0c\u6253\u5305BLOCK\u6587\u4ef6\u5e76\u751f\u6210.v\u4ee3\u7801<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"465\" height=\"321\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-35.png\" alt=\"\" class=\"wp-image-775\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-35.png 465w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/05\/image-35-300x207.png 300w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/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>\u81f3\u6b64\uff0cBlock Design \u90e8\u5206\u5df2\u7ecf\u8bbe\u7f6e\u5b8c\u6210\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u516d\u3001\u6dfb\u52a0\u6211\u4eec\u7684FPGA\u90e8\u5206\u9876\u5c42TOP_module\u4ee3\u7801\uff0c\u5e76\u4f8b\u5316ZYNQ\u6a21\u5757<\/strong><\/h2>\n\n\n\n<p>\u5176\u5b9e\u8fd9\u91cc\u6211\u4eec\u4e0d\u589e\u52a0\u9876\u5c42\u6a21\u5757\uff0c\u76f4\u63a5\u7f16\u8bd1\u7efc\u5408\u4e5f\u662f\u53ef\u4ee5\uff0c\u4f46\u662f\u8003\u8651\u5230\u6211\u4eec\u7684\u5de5\u7a0b\u540e\u7eed\u53ef\u80fd\u4f1a\u6dfb\u52a0PL\u90e8\u5206\uff08\u5373FPGA\uff09\u7684\u4ee3\u7801\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u8fd8\u662f\u589e\u52a0\u4e86\u9876\u5c42\u6a21\u5757\u3002<\/p>\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\u7528TopModule\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\u3002<\/p>\n\n\n\n<p id=\"block-a1b54f22-724a-46ed-be16-aab8d649724f\">4\uff09\u53cc\u51fb\u6253\u5f00\u521a\u624d\u521b\u5efa\u7684Top_Module\u6587\u4ef6 \uff0c\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u6dfb\u52a0\u6211\u4eec\u7684FPGA\u4ee3\u7801\uff0c\u8fd9\u91cc\u6211\u4eec\u6682\u65f6\u4e0d\u5728\u5de5\u7a0b\u4e2d\u6dfb\u52a0\u4efb\u4f55\u5176\u4ed6\u529f\u80fd\uff0c\u6240\u4ee5\u6211\u4eec\u53ea\u9700\u8981\u5bf9\u521a\u521a\u5b9a\u4e49\u7684Block design\u4e2d\u521b\u5efa\u7684ZYNQ\u6a21\u5757\u8fdb\u884c\u4f8b\u5316\u5373\u53ef\u3002<\/p>\n\n\n\n<p id=\"block-a1b54f22-724a-46ed-be16-aab8d649724f\">5\uff09&nbsp;<strong>\u5728TopModule\u7a0b\u5e8f\u4e2d\u4f8b\u5316ZYNQ\u6a21\u5757<\/strong><\/p>\n\n\n\n<p>\u6253\u5f00\u521a\u624d\u7684Top_Module.v\uff0c\u5e76\u6dfb\u52a0\u4e0b\u5217\u4ee3\u7801\uff0c\u91cc\u9762\u5305\u62ecZYNQ\u6a21\u5757\u7684\u4f8b\u5316\u90e8\u5206\u3002\uff08\u5907\u6ce8  UART MIO \u548c UART EMIO\u7684 Top_Module\u662f\u6709\u70b9\u533a\u522b\u7684\uff0c\u5927\u5bb6\u6309\u5b9e\u9645\u7684\u6765\u9009,\u4e24\u7aef\u90fd\u653e\u4e0a\u4e86\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\/\/EMIO UART<\/strong><br>\/\/www.hellofpga.com<br>`timescale 1ns \/ 1ps<br>module Top_Module(<br>    output [7:0] LCD_R,<br>    output [7:0] LCD_G,<br>    output [7:0] LCD_B,<br>    output LCD_HS,<br>    output LCD_VS,<br>    output LCD_DE,<br>    output LCD_CLK,<br>    inout  LCD_BL,<br>    inout  TOUCH_RESET,<br>    inout  TOUCH_INT,<br>    inout  TOUCH_SDA,<br>    inout  TOUCH_SCL,<br><strong>    input  UART_RX,<br>    output UART_TX<\/strong><br>    <br>);<br>    <br> wire [15:0] LCD_DATA_RGB565;<br>    <br>ZYNQ_CORE_wrapper u1(<br>    .lcd_clk(LCD_CLK),<br>    .lcd_data(LCD_DATA_RGB565),<br>    .lcd_de(LCD_DE),<br>    .lcd_hsync(LCD_HS),<br>    .lcd_vsync(LCD_VS),<br>    .GPIO_0_0_tri_io({LCD_BL,TOUCH_RESET,TOUCH_INT}),<br>    .IIC_0_0_scl_io(TOUCH_SCL),<br>    .IIC_0_0_sda_io(TOUCH_SDA),<br><strong>    .UART_0_0_rxd(UART_RX),<br>    .UART_0_0_txd(UART_TX)<\/strong><br>    );<br>    <br>    assign LCD_R={LCD_DATA_RGB565[15:11], 3'b000};<br>    assign LCD_G={LCD_DATA_RGB565[10:5],  2'b00};<br>    assign LCD_B={LCD_DATA_RGB565[4 :0], 3'b000};<br>    <br>    <br>endmodule<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\/\/MIO UART<\/strong><br>\/\/www.hellofpga.com<br>`timescale 1ns \/ 1ps<br>module Top_Module(<br>    output [7:0] LCD_R,<br>    output [7:0] LCD_G,<br>    output [7:0] LCD_B,<br>    output LCD_HS,<br>    output LCD_VS,<br>    output LCD_DE,<br>    output LCD_CLK,<br>    inout  LCD_BL,<br>    inout  TOUCH_RESET,<br>    inout  TOUCH_INT,<br>    inout  TOUCH_SDA,<br>    inout  TOUCH_SCL<br>);<br>    <br> wire [15:0] LCD_DATA_RGB565;<br>    <br>ZYNQ_CORE_wrapper u1(<br>    .lcd_clk(LCD_CLK),<br>    .lcd_data(LCD_DATA_RGB565),<br>    .lcd_de(LCD_DE),<br>    .lcd_hsync(LCD_HS),<br>    .lcd_vsync(LCD_VS),<br>    .GPIO_0_0_tri_io({LCD_BL,TOUCH_RESET,TOUCH_INT}),<br>    .IIC_0_0_scl_io(TOUCH_SCL),<br>    .IIC_0_0_sda_io(TOUCH_SDA)<br>    );<br>    <br>    assign LCD_R={LCD_DATA_RGB565[15:11], 3'b000};<br>    assign LCD_G={LCD_DATA_RGB565[10:5],  2'b00};<br>    assign LCD_B={LCD_DATA_RGB565[4 :0], 3'b000};<br>    <br>    <br>endmodule<\/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\u53ea\u4fdd\u7559\u4e86LCD\u63a7\u5236\u76f8\u5173\u4fe1\u53f7\uff0c\u5176\u5b9e\u8fd9\u91cc\u6211\u4e5f\u5077\u61d2\u4e86<\/strong>\uff0c\u56e0\u4e3a\u672c\u7ae0\u4e2dZYNQ\u53ea\u989d\u5916\u6dfb\u52a0\u4e86LCD\u90e8\u5206\u7684\u63a5\u53e3\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\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u5c06\u6240\u6709\u7684\u4fe1\u53f7\u6dfb\u52a0\u5168\u3002<strong>\uff08\u5907\u6ce8 \u5982\u679c\u6709\u5176\u4ed6\u7684EMIO \u6216\u8005AXI \u7b49\u6d89\u53ca\u5230\u548cFPGA\u901a\u8baf\u6216\u8005\u6620\u5c04\u7684\u4fe1\u53f7\uff0c\u5219\u8fd9\u91cc\u4f8b\u5316\u7684\u65f6\u5019\u5fc5\u987b\u6dfb\u52a0\u4fe1\u53f7\u4e0a\u53bb\uff09<\/strong><\/p>\n\n\n\n<p>\u8fd9\u6837\u6211\u4eec\u5c31\u5728<strong>Top_Module<\/strong>.v\u4e2d\u589e\u52a0\u4e86ZYNQ\u90e8\u5206\u4e86\u3002 \uff08\u8fd9\u91cc\u5bb9\u6613\u4ea7\u751f\u8bef\u533a\uff0cZYNQ\u6a21\u5757\u662f\u786c\u4ef6\u5b58\u5728\u7684\uff0c\u5e76\u4e0d\u662f\u5b9e\u4f8b\u5316\u51ed\u7a7a\u51fa\u73b0\u7684\uff0c\u53ea\u662f\u901a\u8fc7\u4f8b\u5316\u8fd9\u79cd\u65b9\u5f0f\u5c06PS\u548c\u9876\u5c42\u6a21\u5757PL\u4e24\u90e8\u5206\u7ed3\u5408\u5728\u4e00\u8d77\u4e86\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e03\u3001\u6dfb\u52a0\u7ba1\u811a\u7ea6\u675f<\/strong><\/h2>\n\n\n\n<p>1) \u65b0\u589e\u7ea6\u675f\u6587\u4ef6 \u7528\u7ea6\u675f\u6587\u4ef6\u65b9\u5f0f\u6dfb\u52a0\u7ba1\u811a\u5b9a\u4e49 (\u56e0\u4e3a\u6d89\u53ca\u5230\u591a\u4e2a\u4e3b\u677f\uff0c\u5927\u5bb6\u6839\u636e\u81ea\u5df1\u7684\u4e3b\u677f\u578b\u53f7\u9009\u62e9)  \u8fd9\u91cc\u6682\u65f6\u5148\u653eSmart ZYNQ(SP\/SP2\/SL)\u5f15\u811a\u7ea6\u675f,\u5176\u4ed6\u4e3b\u677f\u53ef\u81ea\u884c\u4fee\u6539\u5185\u5bb9\uff08\u5982\u679c\u662fMIO UART\u7684\u4e3b\u677f\uff0c\u8bf7\u628aUART\u76f8\u5173\u5f15\u811a\u90e8\u5206\u5220\u9664\uff09<\/p>\n\n\n\n<p>Smart ZYNQ(SP\/SP2\/SL)\u5f15\u811a\u7ea6\u675f\uff08\u975eSmart ZYNQ \u6807\u51c6\u7248\uff09\uff1a  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>Smart ZYNQ (SP\/SP2\/SL) Pin Constraints (Non-Smart ZYNQ Standard Version)<\/strong><br>set_property PACKAGE_PIN U22 [get_ports LCD_VS]<br>set_property PACKAGE_PIN T22 [get_ports LCD_DE]<br>set_property PACKAGE_PIN W22 [get_ports LCD_CLK]<br>set_property PACKAGE_PIN V22 [get_ports LCD_HS]<br>set_property PACKAGE_PIN Y16 [get_ports LCD_BL]<br>set_property PACKAGE_PIN Y20 [get_ports {LCD_B[7]}]<br>set_property PACKAGE_PIN Y21 [get_ports {LCD_B[6]}]<br>set_property PACKAGE_PIN AA22 [get_ports {LCD_B[5]}]<br>set_property PACKAGE_PIN AB22 [get_ports {LCD_B[4]}]<br>set_property PACKAGE_PIN AA21 [get_ports {LCD_B[3]}]<br>set_property PACKAGE_PIN AB21 [get_ports {LCD_B[2]}]<br>set_property PACKAGE_PIN AB20 [get_ports {LCD_B[1]}]<br>set_property PACKAGE_PIN AB19 [get_ports {LCD_B[0]}]<br>set_property PACKAGE_PIN Y19 [get_ports {LCD_G[7]}]<br>set_property PACKAGE_PIN AA19 [get_ports {LCD_G[6]}]<br>set_property PACKAGE_PIN AA16 [get_ports {LCD_G[5]}]<br>set_property PACKAGE_PIN AB16 [get_ports {LCD_G[4]}]<br>set_property PACKAGE_PIN AA18 [get_ports {LCD_G[3]}]<br>set_property PACKAGE_PIN Y18 [get_ports {LCD_G[2]}]<br>set_property PACKAGE_PIN AB15 [get_ports {LCD_G[1]}]<br>set_property PACKAGE_PIN AB14 [get_ports {LCD_G[0]}]<br>set_property PACKAGE_PIN AA13 [get_ports {LCD_R[7]}]<br>set_property PACKAGE_PIN Y13 [get_ports {LCD_R[6]}]<br>set_property PACKAGE_PIN W13 [get_ports {LCD_R[5]}]<br>set_property PACKAGE_PIN V13 [get_ports {LCD_R[4]}]<br>set_property PACKAGE_PIN W17 [get_ports {LCD_R[3]}]<br>set_property PACKAGE_PIN W18 [get_ports {LCD_R[2]}]<br>set_property PACKAGE_PIN AB17 [get_ports {LCD_R[1]}]<br>set_property PACKAGE_PIN AA17 [get_ports {LCD_R[0]}]<br><br>set_property IOSTANDARD LVCMOS33 [get_ports LCD_VS]<br>set_property IOSTANDARD LVCMOS33 [get_ports LCD_HS]<br>set_property IOSTANDARD LVCMOS33 [get_ports LCD_DE]<br>set_property IOSTANDARD LVCMOS33 [get_ports LCD_CLK]<br>set_property IOSTANDARD LVCMOS33 [get_ports LCD_BL]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_R[7]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_R[6]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_R[5]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_R[4]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_R[3]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_R[1]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_R[2]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_R[0]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_G[7]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_G[6]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_G[5]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_G[4]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_G[3]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_G[2]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_G[1]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_G[0]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_B[7]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_B[6]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_B[5]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_B[4]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_B[3]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_B[2]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_B[1]}]<br>set_property IOSTANDARD LVCMOS33 [get_ports {LCD_B[0]}]<br><br>set_property IOSTANDARD LVCMOS33 [get_ports TOUCH_RESET]<br>set_property IOSTANDARD LVCMOS33 [get_ports TOUCH_SDA]<br>set_property IOSTANDARD LVCMOS33 [get_ports TOUCH_SCL]<br>set_property IOSTANDARD LVCMOS33 [get_ports TOUCH_INT]<br>set_property PACKAGE_PIN W16 [get_ports TOUCH_RESET]<br>set_property PACKAGE_PIN AA14 [get_ports TOUCH_SDA]<br>set_property PACKAGE_PIN Y14 [get_ports TOUCH_SCL]<br>set_property PACKAGE_PIN V14 [get_ports TOUCH_INT]<br><br>set_property IOSTANDARD LVCMOS33 [get_ports UART_RX]<br>set_property IOSTANDARD LVCMOS33 [get_ports UART_TX]<br>set_property PACKAGE_PIN M17 [get_ports UART_RX]<br>set_property PACKAGE_PIN L17 [get_ports UART_TX]<br><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u516b\u3001\u5bf9\u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1\u548c\u7efc\u5408<\/strong><\/h2>\n\n\n\n<p>1) \u70b9\u51fb\u7eff\u8272\u7bad\u5934RUN \u5bf9\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"162\" height=\"71\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-180.png\" alt=\"\" class=\"wp-image-1843\"\/><\/figure>\n\n\n\n<p>2) \u751f\u6210bit\u6587\u4ef6 :\u6309\u4e0bGenerate Bitstream \u5b8c\u6210\u7efc\u5408\u4ee5\u53ca\u751f\u6210bit\u6587\u4ef6\uff0c\u7b49\u5f85\u5f39\u51fa\u7efc\u5408\u5b8c\u6210\u7684\u7a97\u53e3<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"303\" height=\"203\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-18.png\" alt=\"\" class=\"wp-image-204\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-18.png 303w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-18-300x201.png 300w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/figure>\n\n\n\n<p>3\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><\/p>\n\n\n\n<p><strong> \u5230\u6b64\uff0c\u6211\u4eec\u7684ZYNQ \u786c\u4ef6\u5de5\u7a0b\u5c31\u7b97\u521b\u5efa\u5b8c\u6210\u4e86\uff0c\u63a5\u4e0b\u6765\u662f\u8f6f\u4ef6\u79fb\u690d\u90e8\u5206<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u8f6f\u4ef6\u90e8\u5206<\/strong><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u4e0b\u8f7dLVGL\u7684\u6e90\u4ee3\u7801<\/strong><\/h2>\n\n\n\n<p>1\uff09\u8003\u8651\u5230\u73b0\u5728\uff082024\u5e7412\u670820\u65e5\uff09\u6700\u65b0\u7248\u7684 GUI GUIDER\uff08V1.8.1GA\uff09 \uff08\u684c\u9762\u56fe\u5f62LVGL\u7f16\u8f91\u5668\uff09\u652f\u6301\u7684\u7248\u672c\u662f8.3.10\uff0c\u6240\u4ee5\u672c\u6587\u4e2d\u7684\u79fb\u690d\u5c06\u4ee58.3.10\u7248\u6765\u5c55\u5f00\u4ecb\u7ecd\uff0c\u8be6\u7ec6\u7684LVGL\u4e0b\u8f7d\u5730\u5740\u5982\u4e0b <a href=\"https:\/\/github.com\/lvgl\/lvgl\/releases\">https:\/\/github.com\/lvgl\/lvgl\/releases<\/a> \uff08\u5176\u4f59\u7248\u672c\u7684\u79fb\u690d\u8fc7\u7a0b\u5927\u540c\u5c0f\u5f02\uff0c\u53e6\u5916\u540e\u7eedGUI GUIDER\u4e5f\u80af\u5b9a\u4f1a\u652f\u6301\u66f4\u65b0\u7248\u672c\u7684 LVGL\uff0c\u6240\u4ee5\u4e0b\u8f7d\u524d\u6700\u597d\u4e5f\u53bbGUI GUIDER\u5b98\u7f51\u786e\u8ba4\u4e0b\u652f\u6301\u7684LVGL\u6700\u65b0\u7248\u672c\uff09<\/p>\n\n\n\n<p>2\uff09\u627e\u5230\u5bf9\u5e94\u76848.3.10\u7248\u672c <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"972\" height=\"291\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-49.png\" alt=\"\" class=\"wp-image-9076\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-49.png 972w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-49-300x90.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-49-768x230.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\u51fb\u8981\u4e0b\u8f7d\u7684\u538b\u7f29\u5305\u5373\u53ef \uff08\u9009ZIP\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"936\" height=\"546\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-50.png\" alt=\"\" class=\"wp-image-9077\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-50.png 936w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-50-300x175.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-50-768x448.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\u4e0b\u8f7d\u5b8c\u6210\u540e\u5bf9\u538b\u7f29\u5305\u8fdb\u884c\u89e3\u538b<\/p>\n\n\n\n<p>\u5907\u6ce8\uff1a\u8bbf\u95eegithub \u9700\u8981\u4e00\u70b9\u70b9\u9b54\u6cd5\uff0c\u8fd9\u91cc\u4e0d\u505a\u4ecb\u7ecd\u4e86\uff0c\u5982\u679c\u8fdb\u4e0d\u53bbgithub\u7684\uff0c\u8fd9\u91cc\u4e5f\u53ef\u4ee5\u5728\u8bc4\u8bba\u533a\u91cc\u627e8.3.10\u7684\u4e0b\u8f7d\u5730\u5740\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u6253\u5f00SDK\u8f6f\u4ef6<\/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\uff08Export \u8fd9\u4e00\u6b65\u4e4b\u524d\u5df2\u7ecf\u505a\u8fc7\uff09<\/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<p>3\uff09\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7a7a\u5de5\u7a0b,\u53ef\u4ee5\u53d6\u540d\u53ebLVGL_DEMO<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"457\" height=\"405\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-18.png\" alt=\"\" class=\"wp-image-463\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-18.png 457w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-18-300x266.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/figure>\n\n\n\n<p>4\uff09\u53f3\u952e\u5de5\u7a0b \u7684SRC\u76ee\u5f55\uff0c\u7136\u540e\u65b0\u5efa\u4e00\u4e2aSOURCE FILE\uff0c\u5e76\u53d6\u540dmain.c \u5e76\u70b9finish \u786e\u8ba4<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"909\" height=\"378\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-51.png\" alt=\"\" class=\"wp-image-9086\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-51.png 909w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-51-300x125.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-51-768x319.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u91cc\u7684main.c \u6211\u4eec\u6682\u65f6\u4fdd\u7559 \uff0c\u540e\u7eed\u518d\u505a\u4fee\u6539\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001\u6dfb\u52a0\u6211\u4eec\u7684\u89e6\u6478\u5c4f\u90e8\u5206\u4ee3\u7801<\/strong><\/h2>\n\n\n\n<p>1 \uff09\u5728\u6211\u4eec\u5de5\u7a0bDEMO\u7684 src\u8def\u5f84\u4e0b\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939 \u5e76\u547d\u540d\u4e3a(gt911)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"926\" height=\"263\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-72.png\" alt=\"\" class=\"wp-image-9141\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-72.png 926w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-72-300x85.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-72-768x218.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>2 ) \u5728\u521a\u624d\u521b\u5efa\u7684gt911\u76ee\u5f55\u4e0b\u6dfb\u52a0 gt911.c \u548cgt911.h\u5185\u5bb9\u5206\u522b\u5982\u4e0b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1016\" height=\"383\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-73.png\" alt=\"\" class=\"wp-image-9142\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-73.png 1016w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-73-300x113.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-73-768x290.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>gt911.c: (\u5305\u542b\u89e6\u6478\u5c4f\u521d\u59cb\u5316\uff0c\u4ee5\u53ca\u89e6\u6478\u5c4f\u5bc4\u5b58\u5668\u7684\u8bfb\u5199\u7b49\u64cd\u4f5c\uff0c\u8fd9\u51e0\u52a0\u4e2a\u7269\u7406\u6c34\u5370\uff1a\u5185\u5bb9\u662f\u672c\u7ad9hellofpga.com \u7f16\u5199)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/www.hellofpga.com<br>#include \"xgpiops.h\"<br>#include \"xiicps.h\"<br>#include \"sleep.h\"<br><br>#define RESET_PIN 55<br>#define INT_PIN   54<br><br>#define Slave_Address (0xBA&gt;&gt;1)<br><br>static XIicPs i2c;<br>XGpioPs  Gpio;<br><br>int gt911_read_reg(uint16_t addr, uint8_t *buf, int len) {<br>    uint8_t send_buf[2];<br>    int status;<br><br>    \/\/ Set the high and low bytes of the register address<br>    send_buf[0] = (uint8_t)(addr &gt;&gt; 8);<br>    send_buf[1] = (uint8_t)(addr &amp; 0xFF);<br><br>    \/\/ Send the read command<br>    status = XIicPs_MasterSendPolled(&amp;i2c, send_buf, 2, Slave_Address);<br>    if (status != XST_SUCCESS) {<br>        return status;<br>    }<br><br>    \/\/ Wait for the I2C bus to be idle<br>    while (XIicPs_BusIsBusy(&amp;i2c));<br><br>    \/\/ Receive data from the I2C bus<br>    status = XIicPs_MasterRecvPolled(&amp;i2c, buf, len, Slave_Address);<br>    if (status != XST_SUCCESS) {<br>        return status;<br>    }<br><br>    \/\/ Wait for the I2C bus to be idle again<br>    while (XIicPs_BusIsBusy(&amp;i2c));<br><br>    return XST_SUCCESS;<br>}<br><br>int gt911_write_reg(uint16_t addr, uint8_t *buf, int len) {<br>    uint8_t send_buf[256] = {0};<br>    int status;<br><br>    \/\/ Set the high and low bytes of the register address<br>    send_buf[0] = (uint8_t)(addr &gt;&gt; 8);<br>    send_buf[1] = (uint8_t)(addr &amp; 0xFF);<br><br>    \/\/ Copy the data from the buffer into send_buf starting at index 2<br>    memcpy(&amp;send_buf[2], buf, len);<br><br>    \/\/ Send the write command<br>    status = XIicPs_MasterSendPolled(&amp;i2c, send_buf, len + 2, Slave_Address);<br>    if (status != XST_SUCCESS) {<br>        return status;<br>    }<br><br>    \/\/ Wait for the I2C bus to be idle<br>    while (XIicPs_BusIsBusy(&amp;i2c));<br><br>    return XST_SUCCESS;<br>}<br><br>int gt911_init(void)<br>{<br>    XIicPs_Config *i2cConfig;<br>    uint8_t buffer[5] = {0};<br><br>    i2cConfig = XIicPs_LookupConfig(XPAR_XIICPS_0_DEVICE_ID);<br>    XIicPs_CfgInitialize(&amp;i2c, i2cConfig, i2cConfig-&gt;BaseAddress);<br>    XIicPs_SetSClk(&amp;i2c, 200000);<br><br>    XGpioPs_SetDirectionPin(&amp;Gpio, RESET_PIN, 1);<br>    XGpioPs_SetDirectionPin(&amp;Gpio, INT_PIN, 1);<br>    XGpioPs_SetOutputEnablePin(&amp;Gpio, RESET_PIN, 1);<br>    XGpioPs_SetOutputEnablePin(&amp;Gpio, INT_PIN, 1);<br><br>    \/\/SET 0XBA\/0XBB<br>    XGpioPs_WritePin(&amp;Gpio, RESET_PIN, 0);<br>    XGpioPs_WritePin(&amp;Gpio, INT_PIN, 0);<br>    usleep(200);    \/\/200us<br>    XGpioPs_WritePin(&amp;Gpio, RESET_PIN, 1);<br>    usleep(55000);  \/\/55ms<br>    XGpioPs_SetDirectionPin(&amp;Gpio, INT_PIN, 0);\/\/input_floating<br><br>    \/\/READ ID<br>    gt911_read_reg(0x8140, buffer, 4);<br>    buffer[3]='\\0';<br>\t\/\/xil_printf(\"CTP ID:%s\\r\\n\", buffer);<br><br>\tif(strcmp((char*)buffer,\"911\")==0){<br>\t\treturn 0;<br>\t}<br>\t\treturn 1;<br>}<br><br>\/\/ Define a global structure to store touch point data<br>typedef struct {<br>    int16_t x;<br>    int16_t y;<br>} TouchPoint;<br><br>\/\/ Global variable to store touch point data<br>static TouchPoint touchPoint = {0, 0};<br><br><br>int read_touch(void) {<br>    uint8_t buf[7] = {0};<br><br>    \/\/ Read touch register data<br>    gt911_read_reg(0x814E, buf, 6);<br><br>    \/\/ Clear touch status<br>    buf[6] = 0x0;<br>    gt911_write_reg(0x814E, &amp;buf[6], 1);<br><br>    \/\/ Check if a touch event is detected<br>    if ((buf[0] &amp; 0x80) &amp;&amp; (buf[0] &amp; 0x0F)) {<br>        \/\/ Extract and store coordinates<br>        touchPoint.x = (buf[3] &lt;&lt; 8) | buf[2];  \/\/ X coordinate<br>        touchPoint.y = (buf[5] &lt;&lt; 8) | buf[4];  \/\/ Y coordinate<br>        return 1;  \/\/ Return 1 if touch is valid<br>    }<br>    return 0;  \/\/ Return 0 if no touch is detected<br>}<br><br>void get_touch_coordinates(int16_t *x, int16_t *y) {<br>    \/\/ Return the stored coordinates directly<br>    *x = touchPoint.x;<br>    *y = touchPoint.y;<br>}<br>\/\/www.hellofpga.com<\/pre>\n\n\n\n<p>gt911.h<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/www.hellofpga.com<br>#ifndef __GT911_H<br>#define __GT911_H<br><br>int gt911_init();<br>int read_touch(void);<br>void get_touch_coordinates(int16_t *x, int16_t *y);<br><br>#endif<\/pre>\n\n\n\n<p>\u4e4b\u540e\u70b9\u4fdd\u5b58<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u5bfc\u5165\u6211\u4eec\u7684LVGL\u6e90\u7801\u5230\u6211\u4eec\u7684\u5de5\u7a0b\u4e2d<\/strong><\/h2>\n\n\n\n<p>1 ) \u89e3\u538b\u6211\u4eec\u521a\u521a\u4e0b\u8f7d\u7684\u538b\u7f29\u5305\uff0c\u5f97\u5230\u4e00\u4e2alvgl-8.3.10\u6587\u4ef6\u5939<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"372\" height=\"238\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-74.png\" alt=\"\" class=\"wp-image-9145\" style=\"width:225px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-74.png 372w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-74-300x192.png 300w\" sizes=\"auto, (max-width: 372px) 100vw, 372px\" \/><\/figure>\n\n\n\n<p>2 \uff09\u4fee\u6539\u8fd9\u4e2a\u6587\u4ef6\u5939\u540d\u79f0\uff0c\u5c06lvgl-8.3.10 \u6539\u540d\u4e3a lvgl<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"217\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-75.png\" alt=\"\" class=\"wp-image-9146\" style=\"width:232px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-75.png 384w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-75-300x170.png 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/figure>\n\n\n\n<p>3 \uff09 \u590d\u5236\u6211\u4eec\u7684lvgl\u6587\u4ef6\u5939<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"614\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-76.png\" alt=\"\" class=\"wp-image-9147\" style=\"width:403px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-76.png 715w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-76-300x258.png 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<p>2\uff09 \u56de\u5230\u6211\u4eec\u7684SDK\u754c\u9762  \uff0c\u5728\u6211\u4eec\u5de5\u7a0b\uff08LVGL_DEMO\uff09\u7684src\u6587\u4ef6\u5939 \u53f3\u952e\u9009\u4e2d Paste \u5c06\u521a\u624d\u8d4b\u503c\u7684LVGL\u6e90\u7801\u7c98\u8d34\u5230\u6211\u4eec\u7684\u76ee\u6807\u5de5\u7a0bsrc\u8def\u5f84\u4e0b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"522\" height=\"351\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-55.png\" alt=\"\" class=\"wp-image-9091\" style=\"width:391px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-55.png 522w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-55-300x202.png 300w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/figure>\n\n\n\n<p>\u6b64\u65f6SDK\u8def\u5f84\u4f1a\u663e\u793a\u7ea2\u8272\u7684\u8b66\u544a\uff0c\u8fd9\u91cc\u6211\u4eec\u6682\u65f6\u5148\u5ffd\u7565\u8fd9\u4e9b\u7ea2\u8272\u7684\u8b66\u544a<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u4fee\u6539LVGL\u6e90\u7801<\/strong><\/h2>\n\n\n\n<p><strong>1 \uff09\u4fee\u6539\u914d\u7f6e\u6587\u4ef6 lv_conf(\u6539\u540d\u524d lv_conf_template)<\/strong><\/p>\n\n\n\n<p>a ) \u4fee\u6539lv_conf_template.h\u6587\u4ef6\u540d\u4e3a lv_conf.h \uff08\u53ef\u4ee5\u4e0d\u4fee\u6539\uff0c\u4f46\u662f\u4fee\u6539\u540e\u66f4\u4e13\u4e1a\u4e00\u4e9b\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"354\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-56.png\" alt=\"\" class=\"wp-image-9092\" style=\"width:446px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-56.png 639w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-56-300x166.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/figure>\n\n\n\n<p>b )\u5c06lv_conf.h\u6587\u4ef6\u62d6\u51fa\u62d6\u51falvgl\u6587\u4ef6\u5939,\u653e\u5230\u5de5\u7a0b\u7684src\u76ee\u5f55\u4e0b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"494\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-77.png\" alt=\"\" class=\"wp-image-9149\" style=\"width:494px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-77.png 606w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-77-300x245.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/figure>\n\n\n\n<p>c ) \u6253\u5f00lv_conf.h \u5c06\u6587\u4ef6\u7684\u6761\u4ef6\u7f16\u8bd1\u6307\u4ee4 #if 0 \u4fee\u6539\u6210 #if 1<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"546\" height=\"247\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-57.png\" alt=\"\" class=\"wp-image-9093\" style=\"width:378px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-57.png 546w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-57-300x136.png 300w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/figure>\n\n\n\n<p>d )\u4fee\u6539\u5806\u6808\u5927\u5c0f    \u8fd9\u91cc\u6211\u4eec\u4fee\u6539\u621010M\uff08\u5927\u5bb6\u6839\u636e\u5b9e\u9645\u9879\u76ee\u8fdb\u884c\u4fee\u6539\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#define LV_MEM_SIZE (10 * 1024U * 1024U)          \/*[bytes]*\/<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"262\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-1-1024x262.png\" alt=\"\" class=\"wp-image-9198\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-1-1024x262.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-1-300x77.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-1-768x196.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-1.png 1087w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>e \uff09\u5982\u679c\u8981\u67e5\u770b\u5e27\u7387 \u53ef\u4ee5\u6253\u5f00\uff08\u5173\u4e8e\u5e27\u7387\uff0c\u4ee3\u7801\u9ed8\u8ba4\u9650\u5236\u572833\u5e27\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539LV_DISP_DEF_REFR_PERIOD\u6765\u89e3\u9501\u6700\u9ad8\u5e27\u7387\uff0c\u4f46\u662f\u5b9e\u6d4b\uff0c\u89e3\u9501\u4e4b\u540e\u90e8\u5206\u7a7a\u95f2\u65f6\u95f4\u5e27\u7387\u4f1a\u589e\u9ad8\uff0c\u4f46\u662f\u52a8\u6001\u7684\u573a\u666f\u5e27\u7387\u53cd\u800c\u4f1a\u56e0\u4e3aCPU\u7684\u4f7f\u7528\u91cf\u53d8\u9ad8\u800c\u964d\u4f4e\uff0c\u6240\u4ee5\u4fdd\u7559\u9ed8\u8ba4\u5e27\u738733\u5c31\u633a\u597d\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">define LV_USE_PERF_MONITOR 1<\/pre>\n\n\n\n<p>f \uff09\u8fd9\u91cc\u6211\u4eec\u4f7f\u80fddemo LV_USE_DEMO_WIDGETS \uff08\u8fd9\u91cc\u4ee5WIDGETS DEMO \u4f5c\u4e3aLVGL\u7684\u6f14\u793a\u7528\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#define LV_USE_DEMO_WIDGETS 1<\/pre>\n\n\n\n<p><strong>2\uff09 \u4fee\u6539lv_port_disp\u6587\u4ef6<\/strong> \uff08\u6539\u540d\u524d <code>lv_port_disp_template<\/code>\uff09\uff08\u5728lvgl \u6e90\u7801\u7684 examps\/poring \u76ee\u5f55\u4e0b\uff09<\/p>\n\n\n\n<p>a\uff09\u4fee\u6539<code>lv_port_disp_template<\/code>\u6587\u4ef6\u540d  \uff08\u5728lvgl \u6e90\u7801\u7684 examps\/poring \u76ee\u5f55\u4e0b\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c06 <code>lv_port_disp_template.c<\/code>&nbsp;\u6587\u4ef6\u540d\u6539\u6210&nbsp;<code>lv_port_disp.c<\/code><\/li>\n\n\n\n<li>\u5c06&nbsp;<code>lv_port_disp_template.h<\/code>&nbsp;\u6539\u6210&nbsp;<code>lv_port_disp.h<\/code><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"858\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-78.png\" alt=\"\" class=\"wp-image-9150\" style=\"width:483px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-78.png 821w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-78-287x300.png 287w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-78-768x803.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>b) &nbsp;\u6253\u5f00<code>lv_port_disp.h<\/code> \u5c06\u6587\u4ef6\u7684\u6761\u4ef6\u7f16\u8bd1\u6307\u4ee4 #if 0 \u4fee\u6539\u6210 #if 1<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"275\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-64.png\" alt=\"\" class=\"wp-image-9118\" style=\"width:478px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-64.png 812w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-64-300x102.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-64-768x260.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>c \uff09 \u6253\u5f00 <code>lv_port_disp.c \u5c06<\/code> include &#8220;lv_port_disp_template.h&#8221; \u4fee\u6539\u6210 include &#8220;lv_port_disp.h&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"372\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-65.png\" alt=\"\" class=\"wp-image-9119\" style=\"width:493px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-65.png 874w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-65-300x128.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-65-768x327.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>d ) \u540c\u6837\u7684\u4e5f\u5c06  <code>lv_port_disp.c<\/code> \u7684\u6587\u4ef6\u7684\u6761\u4ef6\u7f16\u8bd1\u6307\u4ee4 #if 0 \u4fee\u6539\u6210 #if 1<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"997\" height=\"307\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-66.png\" alt=\"\" class=\"wp-image-9122\" style=\"width:497px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-66.png 997w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-66-300x92.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-66-768x236.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>e \uff09\u5728lv_port_disp.c\u6587\u4ef6\u4e2dinculde VDMA \u4ee5\u53caDMA\u76f8\u5173\u7684\u5934\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#include \"xparameters.h\"<br>#include \"xaxivdma.h\"<br>#include \"xaxivdma_i.h\"<br>#include \"xdmaps.h\"<br>#include \"xscugic.h\"<\/pre>\n\n\n\n<p>\u5e76\u6dfb\u52a0 VDMA_BASEADDR\u7684\u5b9a\u4e49<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#define VDMA_BASEADDR\tXPAR_AXI_VDMA_0_BASEADDR<\/pre>\n\n\n\n<p>f ) \u4fee\u6539\u5c4f\u5e55\u5206\u8fa8\u7387\uff0c\u5c06MY_DISP_HOR_RES \u7684\u503c\u6539\u6210800 \u5c06MY_DISP_VER_RES\u7684\u503c\u6539\u6210480\uff08\u8fd9\u91cc\u4e5f\u53ef\u4ee5\u8003\u8651\u628awarning \u8b66\u544a\u7684\u90a3\u884c\u5220\u9664\uff0c\u4e0d\u7136SDK\u4f1a\u59cb\u7ec8\u5f39\u51fa\u8b66\u544a\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"246\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-67.png\" alt=\"\" class=\"wp-image-9125\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-67.png 728w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-67-300x101.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"613\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-84.png\" alt=\"\" class=\"wp-image-9162\" style=\"width:593px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-84.png 751w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-84-300x245.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p><strong>g ) \u4fee\u6539 lv_port_disp_init \u51fd\u6570<\/strong><\/p>\n\n\n\n<p>\u6ce8\u91ca\u6389\u524d\u4e24\u4e2a\u591a\u884c\u7f13\u5b58\u7684\u65b9\u6848\uff0c \u672c\u6b21\u4f7f\u7528\u6574\u5e27\u7f13\u5b58\u7684\u65b9\u6848\u6765\u8fdb\u884c\u56fe\u50cf\u7684\u7f13\u5b58\uff08buffer x 2\u5e27\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"392\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-68-1024x392.png\" alt=\"\" class=\"wp-image-9126\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-68-1024x392.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-68-300x115.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-68-768x294.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-68.png 1409w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5e76\u5c06LV_VER_RES_MAX \u4fee\u6539\u6210MY_DISP_HOR_RES<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"162\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-79-1024x162.png\" alt=\"\" class=\"wp-image-9152\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-79-1024x162.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-79-300x47.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-79-768x121.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-79.png 1234w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5c06disp_drv.draw_buf \u7684\u7f13\u5b58\u5730\u5740\u5b9a\u4e49\u4e3a &amp;draw_buf_dsc_3;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">disp_drv.draw_buf = &amp;draw_buf_dsc_3;<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"826\" height=\"592\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-83.png\" alt=\"\" class=\"wp-image-9159\" style=\"width:480px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-83.png 826w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-83-300x215.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-83-768x550.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u53d6\u6d88 disp_drv.full_refresh = 1; \u8fd9\u53e5\u4ee3\u7801\u524d\u9762\u7684\u6ce8\u91ca\uff08\u8fd9\u53e5\u8bdd\u662f\u7528\u5728\u7b2c\u4e09\u79cd\u626b\u63cf\u6a21\u5f0f\u4e0b\uff0c\u4e5f\u5c31\u662f\u6211\u4eec\u7528\u7684\u53cc\u7f13\u5b58\u5168\u5c40\u626b\u63cf\u6a21\u5f0f\uff0c\u4e0d\u4f7f\u80fd\u8fd9\u53e5\u8bdd\u5219\u56fe\u50cf\u53ea\u4f1a\u5bf9\u4fee\u6539\u7684\u90e8\u5206\u8fdb\u884c\u5237\u65b0\uff0c\u4f7f\u80fd\u540e\u662f\u5bf9\u5168\u56fe\u8fdb\u884c\u5237\u65b0\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"612\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image.png\" alt=\"\" class=\"wp-image-9193\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image.png 828w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-300x222.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-768x568.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>h ) \u518d\u5728\u6211\u4eec\u6253\u5f00\u7684lv_port_disp.c\u4e2d\u589e\u52a0\u4e0b\u5217 DMA\uff0c\u4ee5\u53caVDMA\u76f8\u5173\u7684\u521d\u59cb\u5316\u53ca\u63a7\u5236\u547d\u4ee4\u3002\uff08\u53ef\u4ee5\u52a0\u5728\u521a\u624d\u6211\u4eec\u6dfb\u52a0\u7684define VDMA_BASEADDR XPAR_AXI_VDMA_0_BASEADDR \u8fd9\u53e5\u4ee3\u7801\u4e4b\u540e\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#define DMA_DEVICE_ID \t\t\tXPAR_XDMAPS_1_DEVICE_ID<br>#define INTC_DEVICE_ID\t\t\tXPAR_SCUGIC_SINGLE_DEVICE_ID<br>#define DMA_DONE_INTR_0\t\t\tXPAR_XDMAPS_0_DONE_INTR_0<br><br>#define DMA_LENGTH\tMY_DISP_HOR_RES * (MY_DISP_VER_RES) \/2<br><br>static int Frame_Buffer1[DMA_LENGTH] __attribute__ ((aligned (32)));<br>static int Frame_Buffer2[DMA_LENGTH] __attribute__ ((aligned (32)));<br><br>static uint8_t frame_flag=0;<br>void DmaDoneHandler(unsigned int Channel, XDmaPs_Cmd *DmaCmd, void *CallbackRef)<br>{<br>\tif(frame_flag==0)\tXil_Out32((VDMA_BASEADDR + 0x028), 0x00000000);<br>\telse Xil_Out32((VDMA_BASEADDR + 0x028), 0x00000001);<br>\tframe_flag=!frame_flag;<br>}<br><br>XDmaPs DmaInstance;<br>extern XScuGic GicInstance;<br><br>void SetupInterruptSystem(XScuGic *GicPtr, XDmaPs *DmaPtr)<br>{<br>\tXScuGic_Config *GicConfig;<br>\tXil_ExceptionInit();<br>\tGicConfig = XScuGic_LookupConfig(INTC_DEVICE_ID);<br>\tXScuGic_CfgInitialize(GicPtr, GicConfig, GicConfig-&gt;CpuBaseAddress);<br>\tXil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_IRQ_INT, (Xil_ExceptionHandler)XScuGic_InterruptHandler, GicPtr);<br>\tXScuGic_Connect(GicPtr, DMA_DONE_INTR_0, (Xil_InterruptHandler)XDmaPs_DoneISR_0, (void *)DmaPtr);<br>\tXScuGic_Enable(GicPtr, DMA_DONE_INTR_0);<br>\tXil_ExceptionEnable();<br>}<br><br>XDmaPs_Config *DmaCfg;<br>XDmaPs *DmaInst = &amp;DmaInstance;<br>XDmaPs_Cmd DmaCmd;<br><br>void XDmaPs_init(XScuGic *GicPtr, u16 DeviceId)<br>{<br>\tDmaCfg = XDmaPs_LookupConfig(DeviceId);<br>\tXDmaPs_CfgInitialize(DmaInst, DmaCfg, DmaCfg-&gt;BaseAddress);<br>\tSetupInterruptSystem(GicPtr, DmaInst);<br>\tXDmaPs_SetDoneHandler(DmaInst, 0, DmaDoneHandler, NULL);\/\/CHANNEL 0<br>\tmemset(&amp;DmaCmd, 0, sizeof(XDmaPs_Cmd));<br><br>\tDmaCmd.ChanCtrl.SrcBurstSize = 4;<br>\tDmaCmd.ChanCtrl.SrcBurstLen = 4;<br>\tDmaCmd.ChanCtrl.SrcInc = 1;<br>\tDmaCmd.ChanCtrl.DstBurstSize = 4;<br>\tDmaCmd.ChanCtrl.DstBurstLen = 4;<br>\tDmaCmd.ChanCtrl.DstInc = 1;<br><br>\tDmaCmd.BD.SrcAddr = (u32) NULL;<br>\tDmaCmd.BD.DstAddr = (u32) NULL;<br>\tDmaCmd.BD.Length = DMA_LENGTH * sizeof(int);<br>}<br><br><br>void Vdma_init()<br>{<br>\tXil_Out32((VDMA_BASEADDR + 0x000), 0x00000001);<br>\tXil_Out32((VDMA_BASEADDR + 0x05c), (uint32_t)Frame_Buffer1);<br>\tXil_Out32((VDMA_BASEADDR + 0x060), (uint32_t)Frame_Buffer2);<br>\tXil_Out32((VDMA_BASEADDR + 0x058), (MY_DISP_HOR_RES * 2));<br>\tXil_Out32((VDMA_BASEADDR + 0x054), (MY_DISP_HOR_RES * 2));<br>\tXil_Out32((VDMA_BASEADDR + 0x050), MY_DISP_VER_RES);<br>        Xil_Out32((VDMA_BASEADDR + 0x028), 0x00000000);<br>}<\/pre>\n\n\n\n<p>\u8fd9\u6bb5\u547d\u4ee4\u4e2d\uff0c\u6211\u4eec\u5f00\u8f9f\u4e86\u4e24\u6bb5\u7f13\u5b58\uff08Frame_Buffer1\uff0cFrame_Buffer2\uff09\u7528\u6765\u4f5c\u4e3aVDMA\u7684\u5e27\u7f13\u5b58\u7528\uff0c\u6211\u4eec\u4e5f\u6dfb\u52a0\u4e86DMA\u76f8\u5173\u7684\u521d\u59cb\u5316\u547d\u4ee4\uff0c\u4ee5\u53caDMA\u7684\u4e2d\u65ad\u54cd\u5e94\u51fd\u6570\uff08\u5728\u4e2d\u65ad\u54cd\u5e94\u51fd\u6570\u4e2d\u8fdb\u884c\u4e86\u5e27\u5207\u6362\u7684\u6307\u4ee4\uff09<\/p>\n\n\n\n<p>i )\u4fee\u6539disp_init \u663e\u793a\u521d\u59cb\u5316\u51fd\u6570\uff0c\u5728\u8fd9\u4e2a\u91cc\u9762\u6211\u4eec\u8c03\u7528VDMA\u548cDMA\u7684\u521d\u59cb\u5316\u51fd\u6570<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">static void disp_init(void)<br>{<br>\tVdma_init();<br>\tXDmaPs_init(&amp;GicInstance,DMA_DEVICE_ID);<br>}<\/pre>\n\n\n\n<p>j \uff09\u4fee\u6539 void disp_flush\uff08\uff09\uff0c\u5728\u8fd9\u91cc\u6211\u4eec\u6839\u636eframe_flag\u7684\u503c\u6765\u8bbe\u5b9a\u5f53\u524dDMA \u7684Dst\u76ee\u6807\u5730\u5740\u5bf9\u5e94\u7684\u662f\u54ea\u4e2aVDMA\u5e27\u7f13\u5b58\u533a\u57df\uff0c\u5e76\u8bbe\u5b9aDMA \u7684SrcAddr\u5730\u5740\uff0c\u6700\u540e\u7528XDmaPs_Start \u5f00\u542fDMA\u64cd\u4f5c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p)<br>{<br>    if (disp_flush_enabled) {<br>    \tif(frame_flag==0)DmaCmd.BD.DstAddr = (u32) Frame_Buffer1;<br>    \telse DmaCmd.BD.DstAddr = (u32) Frame_Buffer2;<br>\t\tDmaCmd.BD.SrcAddr = (u32) color_p;<br>\t\tXDmaPs_Start(DmaInst, 0, &amp;DmaCmd, 0);<br>    }<br>    lv_disp_flush_ready(disp_drv);<br>}<\/pre>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u7528\u7684\u4e00\u4e2a\u5168\u5c40\u53d8\u91cfframe_flag\u662f\u6765\u4f5c\u4e3a\u53cc\u7f13\u51b2\u4ea4\u66ff\u7684\u6807\u8bb0\u4f4d\uff08\u9632\u6b62LVGL \u5199\u5165 \u548cVDMA \u8bfb\u53d6\u5728\u540c\u4e00\u4e2a\u7f13\u51b2\u533a\u5bfc\u81f4\u56fe\u50cf\u6495\u88c2\uff09\uff0c\u4e4b\u540e\u6211\u4eec\u5220\u9664\u539f\u5148\u7684\u70b9\u5bf9\u70b9\u8f6c\u6362\u7684\u4ee3\u7801\uff0c \u589e\u52a0\u4e86\u6211\u4eecDMA\u642c\u8fd0\u6570\u636e\u7684\u4ee3\u7801\uff0c\u8fd9\u79cd\u65b9\u5f0f\u662f\u6548\u7387\u6700\u9ad8\u7684\uff0c\u76f8\u5f53\u4e8eLVGL\u76f4\u63a5\u5c06\u8ba1\u7b97\u540e\u7684\u56fe\u5f62\u7528DMA\u5199\u5165\u5230VDMA\u7684\u7f13\u5b58\u5206\u533a\u4e2d\uff0c\u6700\u7ec8\u5728DMA\u4e2d\u65ad\u51fd\u6570\u4e2d\u5b9e\u73b0VDMA\u663e\u793a\u5e27\u7684\u4ea4\u66ff\uff09<\/p>\n\n\n\n<p>k ) \u6253\u5f00<strong>lv_port_disp<\/strong>.h\u628ainclude &#8220;lvgl\/lvgl.h&#8221; \u4fee\u6539\u6210  include &#8220;..\/..\/lvgl.h&#8221;  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"291\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-85.png\" alt=\"\" class=\"wp-image-9164\" style=\"width:450px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-85.png 615w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-85-300x142.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<p><strong>3 \uff09\u4fee\u6539lv_port_fs\u6587\u4ef6(\u6539\u540d\u524d lv_port_fs_template)<\/strong>\uff08\u5728lvgl \u6e90\u7801\u7684 examps\/poring \u76ee\u5f55\u4e0b\uff09<\/p>\n\n\n\n<p>a\uff09\u4fee\u6539<code><strong>lv_port_fs_template<\/strong><\/code>\u6587\u4ef6\u540d \uff08\u5728lvgl \u6e90\u7801\u7684 examps\/poring \u76ee\u5f55\u4e0b\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c06 <code><strong>lv_port_fs_template<\/strong>.c<\/code>&nbsp;\u6587\u4ef6\u540d\u6539\u6210&nbsp;<code><strong>lv_port_fs<\/strong>.c<\/code><\/li>\n\n\n\n<li>\u5c06&nbsp;<code><strong>lv_port_fs_template<\/strong>.h<\/code>&nbsp;\u6539\u6210&nbsp;<code><code><strong>lv_port_fs<\/strong><\/code>.h<\/code><\/li>\n<\/ul>\n\n\n\n<p>b ) \u6253\u5f00 <code><strong>lv_port_fs<\/strong><\/code>.c \u5c06include &#8220;lv_port_fs_template.h&#8221;\u4fee\u6539\u6210include &#8220;lv_port_fs.h&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"404\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-70-1024x404.png\" alt=\"\" class=\"wp-image-9136\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-70-1024x404.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-70-300x118.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-70-768x303.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-70.png 1032w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>c )\u56e0\u4e3a\u672c\u5de5\u7a0b\u6ca1\u6709\u7528\u5230\u6587\u4ef6\u7cfb\u7edf\uff0c\u6240\u4ee5\u9884\u7f16\u8bd1\u7684<strong> #if 0 \u4e0d\u53d8\u52a8<\/strong><\/p>\n\n\n\n<p><strong>4 \uff09\u4fee\u6539lv_port_indev\u6587\u4ef6(\u6539\u540d\u524d lv_port_indev_template)<\/strong> \uff08\u5728lvgl \u6e90\u7801\u7684 examps\/poring \u76ee\u5f55\u4e0b\uff09<\/p>\n\n\n\n<p> lv_port_indev\u8d1f\u8d23lvgl\u8f93\u5165\u7684\u5916\u8bbe\u90e8\u5206<\/p>\n\n\n\n<p>a\uff09\u4fee\u6539<code><strong>lv_port_indev_template<\/strong><\/code>\u6587\u4ef6\u540d \uff08\u5728lvgl \u6e90\u7801\u7684 examps\/poring \u76ee\u5f55\u4e0b\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c06 <code><strong>lv_port_indev_template<\/strong>.c<\/code>&nbsp;\u6587\u4ef6\u540d\u6539\u6210&nbsp;<code><strong><strong>lv_port_indev<\/strong><\/strong>.c<\/code><\/li>\n\n\n\n<li>\u5c06&nbsp;<code><strong>lv_port_indev_template<\/strong>.h<\/code>&nbsp;\u6539\u6210&nbsp;<code><code><strong><strong>lv_port_indev<\/strong><\/strong><\/code>.h<\/code><\/li>\n<\/ul>\n\n\n\n<p>b ) \u6253\u5f00 <code><code><strong><strong>lv_port_indev<\/strong><\/strong><\/code>.<\/code>h \u7684\u6587\u4ef6\u7684\u6761\u4ef6\u7f16\u8bd1\u6307\u4ee4 #if 0 \u4fee\u6539\u6210 #if 1\uff0c \u5e76\u628ainclude &#8220;lvgl\/lvgl.h&#8221;\u4fee\u6539\u6210 include &#8220;..\/..\/lvgl.h&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"513\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-86.png\" alt=\"\" class=\"wp-image-9166\" style=\"width:380px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-86.png 637w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-86-300x242.png 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/figure>\n\n\n\n<p>c ) \u6253\u5f00 <code><code><strong><strong>lv_port_indev<\/strong><\/strong><\/code>.<\/code>c \u7684\u6587\u4ef6\u7684\u6761\u4ef6\u7f16\u8bd1\u6307\u4ee4 #if 0 \u4fee\u6539\u6210 #if 1<\/p>\n\n\n\n<p>d )\u5728<code><code><strong><strong>lv_port_indev<\/strong><\/strong><\/code>.<\/code>c\u52a0\u5165\u89e6\u6478\u5c4f\u90e8\u5206\u7684\u5934\u6587\u4ef6 include &#8220;..\/..\/..\/gt911\/gt911.h&#8221; <\/p>\n\n\n\n<p>e \uff09\u4fee\u6539touchpad_init \u51fd\u6570\uff0c\u5728\u91cc\u9762\u6dfb\u52a0\u6211\u4eec\u89e6\u6478\u5c4f\u7684gt911_init()\u51fd\u6570<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">static void touchpad_init(void)<br>{<br>\tgt911_init();<br>}<\/pre>\n\n\n\n<p>f \uff09\u4fee\u6539\u6211\u4eectouchpad_is_pressed \u4e0etouchpad_get_xy\u51fd\u6570\uff0c\u5728\u91cc\u9762\u52a0\u5165\u6211\u4eec\u89e6\u6478\u5c4f\u7684\u51fd\u6570\u63a5\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/*Return true is the touchpad is pressed*\/<br>static bool touchpad_is_pressed(void)<br>{<br>\t return read_touch();<br>}<br><br>\/*Get the x and y coordinates if the touchpad is pressed*\/<br>static void touchpad_get_xy(lv_coord_t * x, lv_coord_t * y)<br>{<br>\tget_touch_coordinates(x, y);<br>}<\/pre>\n\n\n\n<p>g )\u518d\u8fdb\u5165void lv_port_indev_init(void) \u51fd\u6570\uff0c \u8fd9\u91cc\u6211\u4eec\u6682\u65f6\u53ea\u7528\u5230\u4e86\u89e6\u6478\u5c4f\u7684\u5185\u5bb9\uff0c\u5176\u4ed6\u5185\u5bb9\u8bf8\u5982Mouse\uff0cKeypad\u7b49\u4f60\u53ef\u4ee5\u6309\u7167\u9700\u6c42\u6ce8\u91ca\u6389\uff0c\u4ee5\u8282\u7701\u8d44\u6e90\u3002(\u5f53\u7136\u4e0d\u6ce8\u91ca\u95ee\u9898\u4e5f\u4e0d\u5927\uff0c\u8fd9\u91cc\u6211\u4eec\u53ea\u6ce8\u91ca\uff0c\u4f46\u662f\u4e0d\u5220\u9664\u6e90\u7801\uff0c\u4ee5\u65b9\u4fbf\u540e\u7eed\u6211\u4eec\u5bf9\u5de5\u7a0b\u589e\u52a0\u5bf9\u5e94\u7684\u5185\u5bb9)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"867\" height=\"831\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-87.png\" alt=\"\" class=\"wp-image-9173\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-87.png 867w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-87-300x288.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/12\/image-87-768x736.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>\u4e94 \u3001\u7f16\u5199main.c \u4e3b\u7a0b\u5e8f<\/strong><\/h2>\n\n\n\n<p>1\uff09 \u6253\u5f00\u6211\u4eec\u524d\u6587\u4e2d\u521b\u5efa\u7684main.c \u6587\u4ef6<\/p>\n\n\n\n<p>2\uff09 \u4e3b\u7a0b\u5e8f \u4e3b\u8981\u5305\u62ec\u4e0b\u9762\u5185\u5bb9  \uff0c\u4e0b\u9762\u662fmain.c\u7684\u4e3b\u8981\u79fb\u690d\u8981\u70b9\uff0c \u4e0b\u9762\u662f\u6574\u4e2a\u7a0b\u5e8f\u7684\u7b80\u5355\u6846\u67b6\uff0c\u5176\u4e2d\u5305\u62ecGPIO\u521d\u59cb\u5316\uff08\u7528\u6765\u70b9\u4eae\u80cc\u5149\uff09\uff0c1ms\u5b9a\u65f6\u5668\u7684\u521d\u59cb\u5316\uff0c\u4ee5\u53ca1ms\u5b9a\u65f6\u5668\u7684\u4e2d\u65ad\u54cd\u5e94\u51fd\u6570\u3002 <\/p>\n\n\n\n<p>a )  \u5728\u4e3b\u7a0b\u5e8f\u4e2d\uff0c\u6211\u4eec\u8c03\u7528 gpio\u3001\u4ee5\u53catimer\u7684\u521d\u59cb\u5316\uff0c \u4e5f\u8c03\u7528<strong>lv_init();lv_port_disp_init();lv_port_indev_init();lv_demo_widgets();<\/strong> \u5bf9LVGL \uff0cLVGL\u7684\u663e\u793a\uff0cLVGL\u7684\u8f93\u5165\uff0c\u4ee5\u53caLVGL\u7684DEMO\u8fdb\u884c\u521d\u59cb\u5316<\/p>\n\n\n\n<p>b) \u5728\u4e3b\u5faa\u73af\u4e2d\u6211\u4eec\u52a0\u5165<strong>lv_task_handler();<\/strong>   LVGL \u7684\u4e3b\u5faa\u73af\u51fd\u6570\uff0c\u8d1f\u8d23\u8fd0\u884c\u56fe\u5f62\u754c\u9762\u7684\u66f4\u65b0\u548c\u4e8b\u4ef6\u5904\u7406\uff0c\u662f\u786e\u4fdd GUI \u6b63\u5e38\u5de5\u4f5c\u7684\u6838\u5fc3\u90e8\u5206\u3002<\/p>\n\n\n\n<p>c\uff09 \u57281ms \u4e2d\u65ad\u51fd\u6570\u4e2d\uff0c\u6211\u4eec\u589e\u52a0<strong> lv_tick_inc(1);<\/strong>\u65f6\u95f4\u57fa\u51c6\u51fd\u6570\uff0c\u7528\u4e8e\u5411\u56fe\u5f62\u5e93\u7684\u65f6\u95f4\u7cfb\u7edf\u589e\u52a0\u65f6\u95f4\uff0c\u8fd9\u4e5f\u662flvgl\u5de5\u4f5c\u7684\u5fc3\u8df3\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>void Gpio_Init(void) {<br>    \/\/ Configure GPIO for LCD backlight control.<br>}<br><br>void SetupInterruptSystem(XScuGic *GicInstancePtr, XScuTimer *TimerInstancePtr, u16 TimerIntrId) {<br>    \/\/ Set up the interrupt system for the timer.<br>}<br><br>static void TimerIntrHandler(void *CallBackRef) {<br>    <strong> lv_tick_inc(1);<\/strong><br>    \/\/ Handle timer interrupts.<br>}<br><br>void Timer_Init() {<br>    \/\/ Initialize and start the timer.<br>}<br><br>int main(void) {<br>    \/\/ Main function to initialize hardware and run the GUI.<br>    Gpio_Init();<br>    Timer_Init();<br><strong>    lv_init();<br>    lv_port_disp_init();<br>    lv_port_indev_init();<\/strong><br>    <strong>lv_demo_widgets();<\/strong><br>    while (1) {<br>       <strong> lv_task_handler();<\/strong><br>    }<br>    return 0;<br>}<\/pre>\n\n\n\n<p> \u4ee5\u4e0b\u662fmain.c\u7684\u5b8c\u6574\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/*<br> * main.c<br> *<br> *  Created on: 2024\u5e7412\u670825\u65e5<br> *      Author: Administrator<br> *\/<br>\/\/www.hellofpga.com<br>#include \"xparameters.h\"<br>#include \"xgpiops.h\"<br>#include \"xstatus.h\"<br>#include \"xplatform_info.h\"<br>#include \"xscutimer.h\"<br>#include \"Xscugic.h\"<br>#include \"lvgl\/lvgl.h\"<br>#include \"lvgl\/examples\/porting\/lv_port_disp.h\"<br>#include \"lvgl\/examples\/porting\/lv_port_indev.h\"<br>#include \"lvgl\/demos\/lv_demos.h\"<br>#include &lt;sleep.h&gt;<br><br><br>#define  LCD_BLK    56<br><br>#define GPIO_DEVICE_ID  \tXPAR_XGPIOPS_0_DEVICE_ID<br>XGpioPs Gpio;<br><br>void Gpio_Init(void){<br>\tXGpioPs_Config *ConfigPtr;<br><br>\tConfigPtr = XGpioPs_LookupConfig(GPIO_DEVICE_ID);<br>\tXGpioPs_CfgInitialize(&amp;Gpio, ConfigPtr,ConfigPtr-&gt;BaseAddr);<br><br>\tXGpioPs_SetDirectionPin(&amp;Gpio, LCD_BLK, 1);<br>\tXGpioPs_SetOutputEnablePin(&amp;Gpio, LCD_BLK, 1);<br>\tXGpioPs_WritePin(&amp;Gpio, LCD_BLK, 1);<br>}<br><br><br>#define TIMER_DEVICE_ID XPAR_XSCUTIMER_0_DEVICE_ID<br>#define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID<br>#define TIMER_IRPT_INTR XPAR_SCUTIMER_INTR<br>#define TIMER_LOAD_VALUE 0x514c7 \/\/666*1000*1\/2 666mhz<br>XScuGic GicInstance; \/\/GIC<br>static XScuTimer Timer;\/\/timer<br><br>static void SetupInterruptSystem(XScuGic *GicInstancePtr,<br>XScuTimer *TimerInstancePtr, u16 TimerIntrId);<br>static void TimerIntrHandler(void *CallBackRef);<br><br>void SetupInterruptSystem(XScuGic *GicInstancePtr,XScuTimer *TimerInstancePtr, u16 TimerIntrId){<br>\tXScuGic_Config *IntcConfig; \/\/GIC config<br>\tXil_ExceptionInit();<br>\t\/\/initialise the GIC<br>\tIntcConfig = XScuGic_LookupConfig(INTC_DEVICE_ID);<br>\tXScuGic_CfgInitialize(GicInstancePtr, IntcConfig,IntcConfig-&gt;CpuBaseAddress);<br>\t\/\/connect to the hardware<br>\tXil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_INT,<br>\t\t(Xil_ExceptionHandler)XScuGic_InterruptHandler,<br>\t\tGicInstancePtr);<br>\t\/\/set up the timer interrupt<br>\tXScuGic_Connect(GicInstancePtr, TimerIntrId,<br>\t\t(Xil_ExceptionHandler)TimerIntrHandler,<br>\t\t(void *)TimerInstancePtr);<br>\t\/\/enable the interrupt for the Timer at GIC<br>\tXScuGic_Enable(GicInstancePtr, TimerIntrId);<br>\t\/\/enable interrupt on the timer<br>\tXScuTimer_EnableInterrupt(TimerInstancePtr);<br>\t\/\/ Enable interrupts in the Processor.<br>\tXil_ExceptionEnableMask(XIL_EXCEPTION_IRQ);<br>}<br><br>static void TimerIntrHandler(void *CallBackRef){<br>\tXScuTimer *TimerInstancePtr = (XScuTimer *) CallBackRef;<br>\tlv_tick_inc(1);<br>\tXScuTimer_ClearInterruptStatus(TimerInstancePtr);<br>}<br><br>\/\/www.hellofpga.com<br><br>void Timer_Init(){<br>\tXScuTimer_Config *TMRConfigPtr;<br>\tTMRConfigPtr = XScuTimer_LookupConfig(TIMER_DEVICE_ID);<br>\tXScuTimer_CfgInitialize(&amp;Timer, TMRConfigPtr,TMRConfigPtr-&gt;BaseAddr);<br>\tXScuTimer_SelfTest(&amp;Timer);<br>\tXScuTimer_LoadTimer(&amp;Timer, TIMER_LOAD_VALUE);<br>\tXScuTimer_EnableAutoReload(&amp;Timer);<br>\tXScuTimer_Start(&amp;Timer);<br>\tSetupInterruptSystem(&amp;GicInstance,&amp;Timer,TIMER_IRPT_INTR);<br>}<br><br><br><br>int main(void)<br>{<br>\tGpio_Init();<br>\tTimer_Init();<br><br>\tlv_init();<br>\tlv_port_disp_init();<br>\tlv_port_indev_init();<br>\tlv_demo_widgets();<br>\twhile(1){<br>\t\tlv_task_handler();<br>\t}<br><br>\treturn 0;<br>}<br>\/\/www.hellofpga.com<br><\/pre>\n\n\n\n<p>\u81f3\u6b64\uff0c\u6211\u4eec\u7684\u79fb\u690d\u7b97\u662f\u5b8c\u6210\u4e86\uff0c\u4e4b\u540e\u8fdb\u884c\u6211\u4eec\u677f\u5b50\u7684\u7a0b\u5e8f\u4e0b\u8f7d\u548c\u9a8c\u8bc1\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u516d\u3001\u4e0b\u8f7d\u5230\u677f\u5b50\u4e0a\u8fdb\u884c\u9a8c\u8bc1<\/strong><\/h2>\n\n\n\n<p>\u9009\u4e2d\u5de5\u7a0b\u4e2d\u7684\u786c\u4ef6\u5e73\u53f0\uff0c\u5e76\u70b9\u51fb\u53f3\u952e\u2192Program FPGA\uff0c\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\u9009\u62e9\u9ed8\u8ba4\uff0c\u70b9\u51fb\u201cprogram\u201d\uff0c\u5b8c\u6210FPGA PL\u90e8\u5206\u7684Program\u5de5\u4f5c<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"519\" height=\"598\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-42.png\" alt=\"\" class=\"wp-image-237\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-42.png 519w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-42-260x300.png 260w\" sizes=\"auto, (max-width: 519px) 100vw, 519px\" \/><\/figure>\n\n\n\n<p>2\uff09\u9009\u4e2d\u6211\u4eec\u7684\u5de5\u7a0b \u5c55\u5f00\u7eff\u8272\u7bad\u5934\uff08RUN\uff09\u53f3\u8fb9\u7684\u56fe\u6807\uff0c\u9009\u62e9Run As\u21921 Launch on Hardware\uff08System Debugger\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"520\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-40.png\" alt=\"\" class=\"wp-image-2023\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-40.png 748w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-40-300x209.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>\u6b63\u5e38\u60c5\u51b5\u53ef\u4ee5\u770b\u5230LCD\u4e0a\u663e\u793a\u7740LVGL\u7684lv_demo_widgets \u8fd9\u4e2ademo\u4e86\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"572\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-2-1024x572.png\" alt=\"\" class=\"wp-image-9209\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-2-1024x572.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-2-300x167.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-2-768x429.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/image-2.png 1281w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5907\u6ce8 \uff1a\u4e3a\u4e86\u65b9\u4fbf\u8c03\u8bd5\u53ef\u4ee5\u6309\u7167\u4e0b\u5217\u63cf\u8ff0\u8fdb\u884c\u52fe\u9009\uff0c\u8fd9\u6837\u6bcf\u6b21debug\u7684\u65f6\u5019\u5c31\u81ea\u52a8\u91cd\u65b0\u5bf9PL\u90e8\u5206\u8fdb\u884c\u914d\u7f6e\u4e86\uff08\u5f3a\u70c8\u63a8\u8350\u628a\u6bcf\u4e2a\u5de5\u7a0b\u90fd\u8fd9\u6837\u8bbe\u7f6e\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"644\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-51.png\" alt=\"\" class=\"wp-image-1072\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-51.png 781w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-51-300x247.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-51-768x633.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\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"432\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-39.png\" alt=\"\" class=\"wp-image-1052\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-39.png 604w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/10\/image-39-300x215.png 300w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u70b9 APPLY \u7136\u540e \u518d\u9009\u62e9Run As\u21921 Launch on Hardware\uff08System Debugger\uff09\u5c31\u53ef<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5199\u5728\u540e\u5934\uff1a<\/strong><\/h2>\n\n\n\n<p> \u5728\u5f88\u4ee5\u524d\u7684\u65f6\u5019\u66fe\u7ecf\u5728STM32H7\u7cfb\u5217\u4e0a\u79fb\u690d\u8fc7LVGL\uff0c \u5f53\u65f6\u76f4\u63a5LTDC\u5efa\u7acb\u4e86\u53cc\u7f13\u5b58\uff0c\u4e4b\u540e\u5c06\u53cc\u7f13\u5b58\u7684\u5730\u5740\u76f4\u63a5\u4ea4\u7ed9LVGL\u8fdb\u884cUI\u7684\u4ea4\u66ff\u7ed8\u5236\uff0c\u518d\u5728\u6bcf\u4e00\u9875\u7ed8\u5236\u5b8cdisp_flush\u51fd\u6570\u4e2d\u624b\u52a8\u6307\u5b9a\u66f4\u6539LTDC\u7684\u5730\u5740\uff0c\u5b9e\u73b0\u53ccBUFFER\u7684\u65e0\u7f1d\u5207\u6362\u3002 <\/p>\n\n\n\n<p>\u4f46\u662f\u5728\u5199\u672c\u6b21ZYNQ\u79fb\u690dLVGL\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4e5f\u5c1d\u8bd5\u4e86\u7c7b\u4f3c\u7684\u64cd\u4f5c\uff0c\u7ed9VDMA\u521d\u59cb\u5316\u4e86\u4e24\u4e2a\u7f13\u5b58\u5730\u5740\uff0c\u5e76\u5c06\u4e24\u4e2a\u5730\u5740\u90fd\u4ea4\u7531LVGL\u8fdb\u884cUI\u7684\u4ea4\u66ff\u7ed8\u5236\uff0c\u5e76\u5728disp_flush\u51fd\u6570\u4e2d\uff08\uff09\u901a\u8fc7\u4fee\u6539VDMA\u768428H\u5730\u5740\u7684\u540e5\u4f4d\u6765\u6307\u5b9a\u5207\u6362\u5bf9\u5e94\u7684\u5e27\uff0c\u5b9e\u73b0BUFFER\u7684\u65e0\u7f1d\u5207\u6362\uff0c \u53ef\u662f\u7ecf\u8fc7\u53cd\u590d\u5c1d\u8bd5\u53d1\u73b0\uff0cVDMA\u5728\u624b\u52a8\u6307\u5b9a\u5e27\u540e\uff0c\u5b83\u5e76\u4e0d\u4f1a\u7acb\u523b\u5207\u6362\u5230\u76ee\u6807\u5e27\uff0c\u800c\u662f\u4f1a\u7ee7\u7eed\u626b\u63cf\u5b8c\u4e4b\u524d\u7684\u5e27\u540e\uff0c\u624d\u4f1a\u5207\u5230\u4e0b\u4e00\u5e27\uff0c\u800c\u6b64\u8fc7\u7a0b\u4e2d\u4e0a\u4e00\u5e27\u7684\u5185\u5bb9\u5df2\u7ecf\u88abLVGL\u4fee\u6539\uff0c \u4f46\u662f\u53c8\u7531\u4e8e\u7ed8\u5236\u7684\u8fc7\u7a0b\u4e2dDDR\u548ccache\u4e2d\u7684\u6570\u636e\u662f\u4e0d\u4e00\u81f4\u7684\uff0c\u5bfc\u81f4\u6700\u7ec8\u663e\u793a\u7684\u7ed3\u679c\u51fa\u73b0\u5927\u91cf\u6a2a\u6761\u7eb9\uff08\u7ed8\u5236\u7684\u8fc7\u7a0b\u4e2d\u5173\u95edcache\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\uff0c\u4e0d\u8fc7\u56e0\u4e3avdma\u5207\u6362\u6ede\u540e\u7684\u539f\u56e0\u5176\u5b9e\u540c\u6837\u4f1a\u5bfc\u81f4\u56fe\u50cf\u6495\u88c2\uff0c\u800c\u5173\u95edcache\u7684\u540c\u65f6\u4e5f\u4f1a\u5bfc\u81f4\u6548\u7387\u5927\u5927\u964d\u4f4e\u56fe\u50cf\u51fa\u73b0\u4e25\u91cd\u5361\u987f\uff09\uff0c\u65e0\u5948\u6700\u540e\u624d\u5c1d\u8bd5\u5728\u4e2d\u95f4\u589e\u52a0DMA\u8fd9\u4e2a\u642c\u8fd0\u73af\u8282\u3002 <\/p>\n\n\n\n<p>\u7f51\u4e0a\u7684demo\u6216\u8005\u6559\u7a0b\u5927\u90e8\u5206\u662f\u590d\u5236\u50cf\u7d20\u70b9\u7684\uff0c \u4f46\u662f\u8fd9\u4e2a\u6548\u7387\u592a\u4f4e\u4e86 \u3002\u7528\u4e86\u6211\u4eec\u7684DMA+VDMA\u7684\u65b9\u5f0f\u5904\u7406\u6548\u7387\u5c06\u5927\u5927\u589e\u52a0\u3002<\/p>\n\n\n\n<p>\u53e6\u5916DMA\u4e5f\u6709\u957f\u5ea6\u9650\u5236\uff0c\u8fd9\u4e2a\u662f\u5728DMA\u624b\u518c\u4e0a\u770b\u4e0d\u5230\u7684\uff0c\u5f53DMA_LENGTH\u8d85\u8fc7263167\u4e4b\u540e\uff08\u4e0d\u542b263167\uff0c\u8fd9\u4e2a\u6570\u636e\u662f\u6211\u67e5\u95ee\u9898\u65f6\u5355\u6b65\u8bd5\u51fa\u6765\u7684\uff09\uff0c \u4f1a\u5bfc\u81f4DMA\u6267\u884c\u51fd\u6570\u4e2d\u7684LoopCount1\u5927\u4e8e256\uff0c\u5bfc\u81f4DMA\u5e95\u5c42\u8fdb\u5165\u4e8c\u5c42\u5d4c\u5957\u5faa\u73af\uff0c\u9020\u6210DMA\u5e95\u5c42\u62d2\u7edd\u5de5\u4f5c\u7684\u60c5\u51b5\uff08\u4f1a\u62a5\u9519DMA operation cannot fit in a 2-level loop for channel 0, please reduce the DMA length or increase the burst size or length\uff09\u3002 \u4f46\u662f\u56e0\u4e3aDMA\u6bcf\u4e2a\u70b9\u5bf9\u5e94\u7684\u662f32\u4f4d\u7684\uff0c\u800c\u6211\u4eec\u7684LVGL\u4ee5\u53caVDMA\u7684\u70b9\u662f16\u4f4d\u7684\uff0c\u6240\u4ee5DMA_LENGTH \u5b9e\u9645\u53ea\u9700\u8981\u6574\u4e2a\u5206\u8fa8\u7387\u50cf\u7d20\u70b9\u7684\u4e00\u534a\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n\n\n\n<p>\u5907\u6ce8\uff0c\u5173\u4e8eVDMA\u5207\u6362\uff0c\u8fd9\u91cc\u76f4\u63a5\u7528\u4e86Xil_Out32((VDMA_BASEADDR + 0x028), 0x00000000);\u6216\u8005Xil_Out32((VDMA_BASEADDR + 0x028), 0x00000001);\u6765\u8fdb\u884c\u5207\u6362\uff0c\u5b9e\u9645VDMA 28h\u8fd9\u4e2a\u5bc4\u5b58\u5668\u8fd8\u5305\u542b\u5f88\u591a\u5185\u5bb9\uff0c\u56e0\u4e3a\u6211\u4eec\u6574\u4e2a\u786c\u4ef6\u6784\u67b6\u53ea\u7528\u4e86VDMA\u8bfb\u53d6\u529f\u80fd\uff0c\u6240\u4ee5\u8fd9\u91cc\u53ef\u4ee5\u5077\u61d2\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u6765\u8fdb\u884c\u5e27\u7684\u5207\u6362\uff0c\u8be6\u7ec6\u5185\u5bb9\u53ef\u4ee5\u770bVDMA\u7684\u5b98\u65b9\u624b\u518c\uff08\u5982\u679c\u6709VDMA\u5199\u7684\u90e8\u5206\uff0c\u8fd9\u91cc\u5c31\u4e0d\u80fd\u76f4\u63a5\u8fd9\u4e48\u64cd\u4f5c\uff0c\u800c\u662f\u9700\u8981\u5148\u5c06\u5f53\u524d28h\u7684\u5bc4\u5b58\u5668\u5185\u5bb9\u8bfb\u51fa\uff0c\u518d\u628a5-0\u4f4d\u4fee\u6539\u6210\u76ee\u6807\u5e27\u53f7\uff0c\u518d\u5c06\u4fee\u6539\u540e\u7684\u6570\u636e\u5199\u5165\u56de\u53bb\uff09\u3002<\/p>\n\n\n\n<p><strong><em>\u672c\u8d34\u524d\u540e\u82b1\u4e86\u5f88\u5927\u7cbe\u529b\u53bb\u5199\u4e86\uff0c\u5982\u9700\u642c\u8fd0\u8bf7\u6ce8\u660e\u51fa\u5904 \u201c hellofpga.com \u201d\u3002<\/em><\/strong>\uff08\u672c\u8d34\u4e5f\u53ef\u80fd\u662f\u5168\u7f51\u7b2c\u4e00\u4efd\u516c\u5f00\u7684LVGL \u901a\u8fc7DMA\u642c\u8fd0\u70b9\u5230VDMA\u7684\u6559\u7a0b\uff0c\u5927\u5bb6\u5982\u679c\u6709\u9047\u5230\u95ee\u9898\u53ef\u5728\u672c\u8d34\u4e0b\u65b9\u8fdb\u884c\u7559\u8a00\uff09<\/p>\n\n\n\n<p>\u521b\u4f5c\u4e0d\u6613\uff0c\u5982\u679c\u4f60\u4e5f\u559c\u6b22\u8fd9\u7bc7\u6587\u7ae0 \uff0c\u53ef\u4ee5\u5728\u672c\u8d34\u8bc4\u8bba\u533a\u4e2d\u4e3a\u6211\u7559\u8a00\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5728\u4e0b\u65b9\u8ba8\u8bba\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u672c\u6587\u7684\u5b8c\u6574\u5de5\u7a0b\u4e0b\u8f7d\uff1a<\/strong><\/h2>\n\n\n\n<p><strong>\u672c\u6587\u63d0\u4f9bSmart ZYNQ SP\/SP2\/SL\u4e3b\u677f\u7684LVGL\u5de5\u7a0b\u548c Lemon ZYNQ\u4e3b\u677f\u7684LVGL\u5de5\u7a0b\uff08\u5982\u679c\u662f\u5176\u4ed6ZYNQ\u4e3b\u677f\u6216\u8005\u7b2c\u4e09\u65b9\u7684\u4e3b\u677f\uff0c\u63a8\u8350\u4e0b\u8f7dSmart ZYNQ SP\/SP2\/SL\u4e3b\u677f\u7684LVGL\u5de5\u7a0b\u8fdb\u884c\u79fb\u690d\uff0c\u5bf9\u5e94PS\u65f6\u949f\u662f\u5e38\u7528\u768433.33M\uff09<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u672c\u6587\u7684\u5b8c\u6574\u5de5\u7a0b\u4e0b\u8f7d\uff1a<\/strong><\/li>\n\n\n\n<li>VIVADO\u7684\u7248\u672c\uff1a2018.3<\/li>\n\n\n\n<li><strong>Smart ZYNQ SP\/SP2\/SL\u4e3b\u677f\uff1a<\/strong>\uff08\u5176\u4ed6\u4e3b\u677f\u63a8\u8350\u4e0b\u8f7d\u8fd9\u4e2a\u7248\u672c\u8fdb\u884c\u79fb\u690d\uff09\n<ul class=\"wp-block-list\">\n<li>\u5de5\u7a0b\uff1a<a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/ZYNQ_LVGL_DEMO_01.zip\">ZYNQ_LVGL_DEMO_01<\/a> \uff08\u5176\u4ed6ZYNQ\u4e3b\u677f\u63a8\u8350\u4e0b\u8f7d\uff09<\/li>\n\n\n\n<li>\u5de5\u7a0b\u76ee\u5f55\uff1aE:\\Smart_ZYNQ_SP_SL\\LVGL\\ZYNQ_LVGL_DEMO_01<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Lemon ZYNQ \u4e3b\u677f\uff1a<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u5de5\u7a0b\uff1a<a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2025\/01\/ZYNQ_LVGL_DEMO_01-1.zip\">ZYNQ_LVGL_DEMO_01<\/a> (\u6ce8\u610f\u4e3b\u677f\u7684PS\u65f6\u949f\u5bf9\u5e9450M)<\/li>\n\n\n\n<li>\u5de5\u7a0b\u76ee\u5f55\uff1aE:\\Lemon_ZYNQ\\LVGL\\ZYNQ_LVGL_DEMO_01<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u5176\u4ed6ZYNQ\u4e3b\u677f\uff0c\u63a8\u8350\u4e0b\u8f7dSmart ZYNQ SP\/SP2\/SL\u4e3b\u677f\u7684LVGL\u5de5\u7a0b<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u5728\u672c\u7ad9 ZYNQ \u4e3b\u677f\u4e0a\u79fb\u690dLVGL UI\u7cfb\u7edf \uff08\u672c\u6587\u5305\u542bVIVADO\u786c\u4ef6\u90e8\u5206\uff0c\u4e0eSDK\u8f6f\u4ef6\u90e8\u5206\u5185\u5bb9\uff09<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,19,10,7,13],"tags":[],"class_list":["post-9012","post","type-post","status-publish","format-standard","hentry","category-lemon-zynq","category-smart-zynq-spsl","category-smart-zynq-board","category-tiny-zynq","category-tiny-zynq-2"],"views":7650,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/9012","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=9012"}],"version-history":[{"count":148,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/9012\/revisions"}],"predecessor-version":[{"id":9335,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/9012\/revisions\/9335"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=9012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=9012"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=9012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}