{"id":124651,"date":"2026-11-19T08:40:45","date_gmt":"2026-11-19T00:40:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/124651.html"},"modified":"2026-11-19T08:40:45","modified_gmt":"2026-11-19T00:40:45","slug":"%e5%b5%8c%e5%85%a5%e5%bc%8f-soc-%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/124651.html","title":{"rendered":"\u5d4c\u5165\u5f0f SoC \u7cfb\u7edf"},"content":{"rendered":"<p>SoC&#xff08;System on Chip&#xff0c;\u7247\u4e0a\u7cfb\u7edf&#xff09;\u662f\u73b0\u4ee3\u5d4c\u5165\u5f0f\u8ba1\u7b97\u5e73\u53f0\u7684\u6838\u5fc3\u3002\u4ece\u65e0\u4eba\u673a\u3001\u673a\u5668\u4eba\u3001\u667a\u80fd\u76f8\u673a&#xff0c;\u5230\u6c7d\u8f66\u57df\u63a7\u5236\u5668\u548c\u5de5\u4e1a\u89c6\u89c9\u8bbe\u5907&#xff0c;\u90fd\u5927\u91cf\u4f7f\u7528 SoC\u3002<\/p>\n<p>\u5bf9\u4e8e\u5d4c\u5165\u5f0f\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u5b66\u4e60 SoC&#xff0c;\u4e0d\u4ec5\u662f CPU \u578b\u53f7\u3001\u6838\u5fc3\u6570\u548c\u4e3b\u9891&#xff0c;\u66f4\u91cd\u8981\u7684\u662f\u7406\u89e3&#xff1a;<\/p>\n<ul>\n<li>\u786c\u4ef6\u67b6\u6784&#xff1a;CPU\u3001MCU\u3001GPU\u3001NPU\u3001ISP\u3001\u5185\u5b58\u63a7\u5236\u5668\u548c\u5916\u8bbe\u5982\u4f55\u96c6\u6210\u3002<\/li>\n<li>\u6570\u636e\u901a\u8def&#xff1a;CPU \u5982\u4f55\u8bbf\u95ee\u5185\u5b58&#xff0c;\u6444\u50cf\u5934\u91c7\u96c6\u7684\u6570\u636e\u5982\u4f55\u901a\u8fc7 DMA \u8fdb\u5165 DRAM\u3002<\/li>\n<li>\u8f6f\u4ef6\u67b6\u6784&#xff1a;Bootloader\u3001Linux \u5185\u6838\u3001\u8bbe\u5907\u6811\u3001\u9a71\u52a8\u548c\u5e94\u7528\u7a0b\u5e8f\u5982\u4f55\u534f\u4f5c\u3002<\/li>\n<li>\u7cfb\u7edf\u8bbe\u8ba1&#xff1a;\u5982\u4f55\u5728\u6027\u80fd\u3001\u5b9e\u65f6\u6027\u3001\u529f\u8017\u3001\u5e26\u5bbd\u548c\u53ef\u9760\u6027\u4e4b\u95f4\u6743\u8861\u3002<\/li>\n<\/ul>\n<h3>\u4e00\u3001SoC<\/h3>\n<h4>1.1 SoC \u5b9a\u4e49<\/h4>\n<p>SoC &#xff1a;\u5c06\u539f\u672c\u9700\u8981\u591a\u4e2a\u72ec\u7acb\u82af\u7247\u5b8c\u6210\u7684\u8ba1\u7b97\u3001\u63a7\u5236\u3001\u901a\u4fe1\u548c\u6570\u636e\u5904\u7406\u529f\u80fd&#xff0c;\u96c6\u6210\u5230\u4e00\u9897\u82af\u7247\u4e2d\u3002<\/p>\n<p>\u4e00\u4e2a\u5178\u578b\u7684\u5d4c\u5165\u5f0f SoC \u53ef\u80fd\u96c6\u6210\u4ee5\u4e0b\u6a21\u5757&#xff1a;<\/p>\n<table>\n<tr>\u6a21\u5757\u5206\u7c7b\u5305\u542b\u7ec4\u4ef6\u529f\u80fd<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">CPU \u96c6\u7fa4<\/td>\n<td align=\"left\">Cortex-A \u7cfb\u5217\u6838\u5fc3<\/td>\n<td align=\"left\">\u8fd0\u884c Linux \/ \u590d\u6742\u5e94\u7528\u8ba1\u7b97<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5b9e\u65f6\u6838\u5fc3<\/td>\n<td align=\"left\">Cortex-R\/M \u7cfb\u5217\u6838\u5fc3<\/td>\n<td align=\"left\">\u5b9e\u65f6\u63a7\u5236\u4e0e\u4f4e\u529f\u8017\u4efb\u52a1<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u786c\u4ef6\u52a0\u901f\u5668<\/td>\n<td align=\"left\">GPU\u3001NPU\u3001ISP\u3001VPU<\/td>\n<td align=\"left\">\u56fe\u5f62\u6e32\u67d3\u3001AI\u63a8\u7406\u3001\u56fe\u50cf\u5904\u7406\u3001\u89c6\u9891\u7f16\u89e3\u7801<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5185\u5b58\u5b50\u7cfb\u7edf<\/td>\n<td align=\"left\">Cache\u3001SRAM\u3001DDR \u63a7\u5236\u5668<\/td>\n<td align=\"left\">\u591a\u7ea7\u5b58\u50a8\u4e0e\u5916\u90e8\u5185\u5b58\u8bbf\u95ee<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u7247\u5185\u4e92\u8fde<\/td>\n<td align=\"left\">AXI\u3001NoC\u3001\u7f13\u5b58\u4e00\u81f4\u6027\u4e92\u8fde<\/td>\n<td align=\"left\">\u6a21\u5757\u95f4\u6570\u636e\u4f20\u8f93\u4e0e\u4ef2\u88c1<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5916\u8bbe\u63a7\u5236\u5668<\/td>\n<td align=\"left\">USB\u3001PCIe\u3001SPI\u3001I\u00b2C\u3001UART\u3001CAN<\/td>\n<td align=\"left\">\u5916\u90e8\u8bbe\u5907\u63a5\u53e3\u4e0e\u901a\u4fe1<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u7cfb\u7edf\u63a7\u5236<\/td>\n<td align=\"left\">\u65f6\u949f\u3001\u590d\u4f4d\u3001\u7535\u6e90\u7ba1\u7406\u3001\u4e2d\u65ad\u63a7\u5236\u3001\u5b89\u5168\u6a21\u5757<\/td>\n<td align=\"left\">\u82af\u7247\u5168\u5c40\u7ba1\u63a7\u4e0e\u5b89\u5168\u673a\u5236<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee5\u4e0a\u4e3a\u901a\u7528\u6982\u5ff5\u67b6\u6784&#xff0c;\u4e0d\u4ee3\u8868\u6bcf\u9897 SoC \u90fd\u5177\u5907\u5168\u90e8\u6a21\u5757\u3002<\/p>\n<p>\u8fd9\u91cc\u6709\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u6982\u5ff5\u533a\u5206&#xff1a;SoC \u662f\u82af\u7247&#xff0c;\u5f00\u53d1\u677f\u662f\u642d\u8f7d SoC \u53ca\u5916\u56f4\u7535\u8def\u7684\u5b8c\u6574\u786c\u4ef6\u5e73\u53f0\u3002<\/p>\n<p>\u4f8b\u5982&#xff0c;\u4e00\u5757\u65e0\u4eba\u673a\u8fd0\u7b97\u677f\u53ef\u80fd\u5305\u542b&#xff1a;<\/p>\n<ul>\n<li>\u4e00\u9897 SoC&#xff0c;\u8d1f\u8d23\u89c6\u89c9\u3001\u611f\u77e5\u3001\u5e94\u7528\u8ba1\u7b97\u3002<\/li>\n<li>LPDDR4\/LPDDR5 \u5b58\u50a8\u5668\u3002<\/li>\n<li>eMMC \u6216\u5176\u4ed6\u975e\u6613\u5931\u5b58\u50a8\u3002<\/li>\n<li>PMIC \u7535\u6e90\u7ba1\u7406\u82af\u7247\u3002<\/li>\n<li>\u72ec\u7acb MCU\u3001\u65e0\u7ebf\u901a\u4fe1\u82af\u7247\u548c\u5916\u8bbe\u63a5\u53e3\u3002<\/li>\n<\/ul>\n<p>\u56e0\u6b64&#xff0c;SoC \u672c\u8eab\u4e0d\u7b49\u4e8e\u6574\u5757\u8fd0\u7b97\u677f&#xff0c;\u4e5f\u4e0d\u610f\u5473\u7740 DDR\u3001\u5b58\u50a8\u5668\u3001\u65e0\u7ebf\u5c04\u9891\u7b49\u5168\u90e8\u96c6\u6210\u5230\u540c\u4e00\u7845\u7247\u4e0a\u3002<\/p>\n<h4>1.2 SoC\u3001CPU\u3001MCU\u3001MPU \u7684\u533a\u522b<\/h4>\n<table>\n<tr>\u6982\u5ff5\u542b\u4e49\u533a\u522b<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">CPU<\/td>\n<td align=\"left\">\u4e2d\u592e\u5904\u7406\u5668<\/td>\n<td align=\"left\">\u8d1f\u8d23\u6267\u884c\u6307\u4ee4\u7684\u8ba1\u7b97\u6838\u5fc3<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">MCU<\/td>\n<td align=\"left\">\u5fae\u63a7\u5236\u5668<\/td>\n<td align=\"left\">\u901a\u5e38\u96c6\u6210 CPU\u3001\u7247\u4e0a\u5b58\u50a8\u548c\u63a7\u5236\u5916\u8bbe<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">MPU<\/td>\n<td align=\"left\">\u5fae\u5904\u7406\u5668<\/td>\n<td align=\"left\">\u901a\u5e38\u504f\u5411\u9ad8\u6027\u80fd\u8ba1\u7b97\u53ca\u590d\u6742\u64cd\u4f5c\u7cfb\u7edf<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">SoC<\/td>\n<td align=\"left\">\u7247\u4e0a\u7cfb\u7edf<\/td>\n<td align=\"left\">\u96c6\u6210\u5904\u7406\u5668\u3001\u4e92\u8fde\u3001\u63a7\u5236\u5668\u53ca\u5404\u7c7b\u529f\u80fd IP<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">SoM<\/td>\n<td align=\"left\">\u7cfb\u7edf\u7ea7\u6a21\u5757<\/td>\n<td align=\"left\">\u5c06 SoC\u3001\u5185\u5b58\u3001\u7535\u6e90\u7b49\u5c01\u88c5\u6210\u53ef\u590d\u7528\u786c\u4ef6\u6a21\u5757<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f&#xff0c;MCU \u4e0e SoC \u4e0d\u662f\u4e25\u683c\u4e92\u65a5\u7684\u6982\u5ff5\u3002\u73b0\u4ee3 MCU \u672c\u8eab\u4e5f\u5c5e\u4e8e\u5e7f\u4e49\u7684 SoC\u3002MPU \u5728\u4e0d\u540c\u8d44\u6599\u4e2d\u4e5f\u53ef\u80fd\u6307 Memory Protection Unit&#xff08;\u5185\u5b58\u4fdd\u62a4\u5355\u5143&#xff09;\u3002<\/p>\n<h3>\u4e8c\u3001SoC \u7684 CPU \u67b6\u6784&#xff1a;Cortex-A\u3001Cortex-R\u3001Cortex-M<\/h3>\n<p>Arm \u5b98\u65b9\u5c06\u5176\u5904\u7406\u5668\u67b6\u6784\u5206\u4e3a\u4e09\u5927\u7c7b&#xff1a;A-profile\u3001R-profile \u548c M-profile&#xff0c;\u5206\u522b\u9762\u5411\u5e94\u7528\u8ba1\u7b97\u3001\u5b9e\u65f6\u5904\u7406\u548c\u5fae\u63a7\u5236\u5668\u3002<\/p>\n<h4>2.1 \u4e09\u79cd\u67b6\u6784<\/h4>\n<table>\n<tr>\u7279\u6027Cortex-ACortex-RCortex-M<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u8bbe\u8ba1\u76ee\u6807<\/td>\n<td align=\"left\">\u9ad8\u6027\u80fd\u5e94\u7528\u8ba1\u7b97<\/td>\n<td align=\"left\">\u5b9e\u65f6\u3001\u786e\u5b9a\u6027\u54cd\u5e94<\/td>\n<td align=\"left\">\u4f4e\u529f\u8017\u4e0e\u4f4e\u6210\u672c\u63a7\u5236<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u7cfb\u7edf<\/td>\n<td align=\"left\">Linux\u3001Android<\/td>\n<td align=\"left\">RTOS\u3001\u88f8\u673a<\/td>\n<td align=\"left\">RTOS\u3001\u88f8\u673a<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5185\u5b58\u7ba1\u7406<\/td>\n<td align=\"left\">\u901a\u5e38\u5177\u5907 MMU<\/td>\n<td align=\"left\">\u4f9d\u578b\u53f7\u652f\u6301 MPU\/MMU<\/td>\n<td align=\"left\">\u901a\u5e38\u65e0 MMU&#xff0c;\u90e8\u5206\u6709 MPU<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">Cache \u914d\u7f6e<\/td>\n<td align=\"left\">\u901a\u5e38\u5177\u5907\u591a\u7ea7 Cache<\/td>\n<td align=\"left\">\u53ef\u914d Cache\u3001TCM<\/td>\n<td align=\"left\">\u90e8\u5206\u578b\u53f7\u6709 Cache<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u4efb\u52a1<\/td>\n<td align=\"left\">AI\u3001\u56fe\u50cf\u3001\u7f51\u7edc\u3001UI<\/td>\n<td align=\"left\">\u7535\u673a\u4e0e\u5b89\u5168\u63a7\u5236<\/td>\n<td align=\"left\">\u4f20\u611f\u5668\u3001\u901a\u4fe1\u3001\u7b80\u5355\u63a7\u5236<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u4ee3\u8868\u6838\u5fc3<\/td>\n<td align=\"left\">A53\u3001A55\u3001A78<\/td>\n<td align=\"left\">R5\u3001R52\u3001R82<\/td>\n<td align=\"left\">M4\u3001M7\u3001M33<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee5\u4e0a\u4e3a\u5927\u4f53\u901a\u7528\u7279\u5f81&#xff0c;\u4e0d\u662f\u5bf9\u6240\u6709\u578b\u53f7\u7684\u7edd\u5bf9\u9650\u5236\u3002\u5c24\u5176 Cortex-R \u5e76\u975e\u5b8c\u5168\u6ca1\u6709 MMU&#xff0c;\u5177\u4f53\u80fd\u529b\u5fc5\u987b\u770b\u5904\u7406\u5668\u4ee3\u9645\u548c\u6280\u672f\u53c2\u8003\u624b\u518c\u3002<\/p>\n<h4>2.2 Cortex-A&#xff1a;\u8fd0\u884c\u590d\u6742\u5e94\u7528\u7684\u8ba1\u7b97\u6838\u5fc3<\/h4>\n<p>Cortex-A \u662f\u5d4c\u5165\u5f0f Linux SoC \u7684\u4e3b\u8981\u8ba1\u7b97\u6838\u5fc3\u4e4b\u4e00<\/p>\n<p>Cortex-A \u6838\u5fc3\u7684\u6267\u884c\u6d41\u6c34\u7ebf\u6982\u5ff5\u6a21\u578b&#xff1a;<\/p>\n<p>#mermaid-svg-6ZaUBJREcMRkGGPn{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-6ZaUBJREcMRkGGPn .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-6ZaUBJREcMRkGGPn .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-6ZaUBJREcMRkGGPn .error-icon{fill:#552222;}#mermaid-svg-6ZaUBJREcMRkGGPn .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-6ZaUBJREcMRkGGPn .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-6ZaUBJREcMRkGGPn .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-6ZaUBJREcMRkGGPn .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-6ZaUBJREcMRkGGPn .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-6ZaUBJREcMRkGGPn .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-6ZaUBJREcMRkGGPn .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-6ZaUBJREcMRkGGPn .marker{fill:#333333;stroke:#333333;}#mermaid-svg-6ZaUBJREcMRkGGPn .marker.cross{stroke:#333333;}#mermaid-svg-6ZaUBJREcMRkGGPn svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-6ZaUBJREcMRkGGPn p{margin:0;}#mermaid-svg-6ZaUBJREcMRkGGPn .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-6ZaUBJREcMRkGGPn .cluster-label text{fill:#333;}#mermaid-svg-6ZaUBJREcMRkGGPn .cluster-label span{color:#333;}#mermaid-svg-6ZaUBJREcMRkGGPn .cluster-label span p{background-color:transparent;}#mermaid-svg-6ZaUBJREcMRkGGPn .label text,#mermaid-svg-6ZaUBJREcMRkGGPn span{fill:#333;color:#333;}#mermaid-svg-6ZaUBJREcMRkGGPn .node rect,#mermaid-svg-6ZaUBJREcMRkGGPn .node circle,#mermaid-svg-6ZaUBJREcMRkGGPn .node ellipse,#mermaid-svg-6ZaUBJREcMRkGGPn .node polygon,#mermaid-svg-6ZaUBJREcMRkGGPn .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-6ZaUBJREcMRkGGPn .rough-node .label text,#mermaid-svg-6ZaUBJREcMRkGGPn .node .label text,#mermaid-svg-6ZaUBJREcMRkGGPn .image-shape .label,#mermaid-svg-6ZaUBJREcMRkGGPn .icon-shape .label{text-anchor:middle;}#mermaid-svg-6ZaUBJREcMRkGGPn .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-6ZaUBJREcMRkGGPn .rough-node .label,#mermaid-svg-6ZaUBJREcMRkGGPn .node .label,#mermaid-svg-6ZaUBJREcMRkGGPn .image-shape .label,#mermaid-svg-6ZaUBJREcMRkGGPn .icon-shape .label{text-align:center;}#mermaid-svg-6ZaUBJREcMRkGGPn .node.clickable{cursor:pointer;}#mermaid-svg-6ZaUBJREcMRkGGPn .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-6ZaUBJREcMRkGGPn .arrowheadPath{fill:#333333;}#mermaid-svg-6ZaUBJREcMRkGGPn .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-6ZaUBJREcMRkGGPn .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-6ZaUBJREcMRkGGPn .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-6ZaUBJREcMRkGGPn .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-6ZaUBJREcMRkGGPn .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-6ZaUBJREcMRkGGPn .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-6ZaUBJREcMRkGGPn .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-6ZaUBJREcMRkGGPn .cluster text{fill:#333;}#mermaid-svg-6ZaUBJREcMRkGGPn .cluster span{color:#333;}#mermaid-svg-6ZaUBJREcMRkGGPn div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-6ZaUBJREcMRkGGPn .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-6ZaUBJREcMRkGGPn rect.text{fill:none;stroke-width:0;}#mermaid-svg-6ZaUBJREcMRkGGPn .icon-shape,#mermaid-svg-6ZaUBJREcMRkGGPn .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-6ZaUBJREcMRkGGPn .icon-shape p,#mermaid-svg-6ZaUBJREcMRkGGPn .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-6ZaUBJREcMRkGGPn .icon-shape .label rect,#mermaid-svg-6ZaUBJREcMRkGGPn .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-6ZaUBJREcMRkGGPn .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-6ZaUBJREcMRkGGPn .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-6ZaUBJREcMRkGGPn :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}#mermaid-svg-6ZaUBJREcMRkGGPn .stage&gt;*{fill:#eef6ff!important;stroke:#4a90e2!important;stroke-width:1.5px!important;color:#1f3b5c!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .stage span{fill:#eef6ff!important;stroke:#4a90e2!important;stroke-width:1.5px!important;color:#1f3b5c!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .stage tspan{fill:#1f3b5c!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .exec&gt;*{fill:#fff7e6!important;stroke:#f5a623!important;stroke-width:1.5px!important;color:#6b4a00!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .exec span{fill:#fff7e6!important;stroke:#f5a623!important;stroke-width:1.5px!important;color:#6b4a00!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .exec tspan{fill:#6b4a00!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .mem&gt;*{fill:#eefbf3!important;stroke:#34c759!important;stroke-width:1.5px!important;color:#145a2e!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .mem span{fill:#eefbf3!important;stroke:#34c759!important;stroke-width:1.5px!important;color:#145a2e!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .mem tspan{fill:#145a2e!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .done&gt;*{fill:#f3eefe!important;stroke:#8e6bd8!important;stroke-width:1.5px!important;color:#3d2a6b!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .done span{fill:#f3eefe!important;stroke:#8e6bd8!important;stroke-width:1.5px!important;color:#3d2a6b!important;}#mermaid-svg-6ZaUBJREcMRkGGPn .done tspan{fill:#3d2a6b!important;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span style=\"color:#1f3b5c !important\" class=\"nodeLabel\"><\/p>\n<p>\u53d6\u6307 Fetch<\/p>\n<p><\/span><span style=\"color:#1f3b5c !important\" class=\"nodeLabel\"><\/p>\n<p>\u8bd1\u7801 Decode<\/p>\n<p><\/span><span style=\"color:#6b4a00 !important\" class=\"nodeLabel\"><\/p>\n<p>\u6267\u884c Execute<\/p>\n<p><\/span><span style=\"color:#145a2e !important\" class=\"nodeLabel\"><\/p>\n<p>ALU<\/p>\n<p><\/span><span style=\"color:#145a2e !important\" class=\"nodeLabel\"><\/p>\n<p>Load\/Store<\/p>\n<p><\/span><span style=\"color:#145a2e !important\" class=\"nodeLabel\"><\/p>\n<p>MMU \/ TLB<\/p>\n<p><\/span><span style=\"color:#145a2e !important\" class=\"nodeLabel\"><\/p>\n<p>Cache<\/p>\n<p><\/span><span style=\"color:#3d2a6b !important\" class=\"nodeLabel\"><\/p>\n<p>\u6267\u884c\u7ed3\u679c \/ \u63d0\u4ea4<\/p>\n<p><\/span><\/p>\n<p>\u8fd9\u53ea\u662f\u6982\u5ff5\u6a21\u578b\u3002\u5b9e\u9645\u5fae\u67b6\u6784\u53ef\u80fd\u5305\u542b\u5206\u652f\u9884\u6d4b\u3001\u4e71\u5e8f\u6267\u884c\u3001\u5bc4\u5b58\u5668\u91cd\u547d\u540d\u3001\u91cd\u6392\u5e8f\u7f13\u51b2\u533a\u7b49&#xff0c;\u5177\u4f53\u80fd\u529b\u4f9d\u8d56 Cortex \u578b\u53f7\u3002<\/p>\n<p>\u5176\u4e2d\u6700\u91cd\u8981\u7684\u51e0\u9879\u673a\u5236\u662f&#xff1a;<\/p>\n<ul>\n<li>MMU&#xff08;Memory Management Unit&#xff09;&#xff1a;\u628a\u865a\u62df\u5730\u5740\u8f6c\u6362\u6210\u7269\u7406\u5730\u5740&#xff0c;\u5b9e\u73b0\u8fdb\u7a0b\u5730\u5740\u7a7a\u95f4\u9694\u79bb\u3001\u9875\u7ea7\u8bbf\u95ee\u6743\u9650\u63a7\u5236\u4ee5\u53ca Linux \u865a\u62df\u5185\u5b58\u7ba1\u7406\u3002<\/li>\n<li>Cache&#xff1a;\u51cf\u5c11 CPU \u8bbf\u95ee\u5916\u90e8 DRAM \u7684\u6b21\u6570&#xff0c;\u63d0\u5347\u6267\u884c\u6548\u7387\u3002\u4f46 Cache \u540c\u65f6\u5f15\u5165\u7f13\u5b58\u4e00\u81f4\u6027\u3001\u6570\u636e\u540c\u6b65\u548c\u5ef6\u8fdf\u6ce2\u52a8\u7b49\u95ee\u9898\u3002<\/li>\n<li>SIMD \/ Vector&#xff1a;\u901a\u8fc7 NEON \u7b49\u5411\u91cf\u6269\u5c55\u5e76\u884c\u5904\u7406\u591a\u4e2a\u6570\u636e\u5143\u7d20&#xff0c;\u9002\u5408\u56fe\u50cf\u9884\u5904\u7406\u3001\u77e9\u9635\u8fd0\u7b97\u3001DSP \u8fd0\u7b97\u3002<\/li>\n<li>SMP&#xff08;Symmetric Multiprocessing&#xff09;&#xff1a;\u591a\u4e2a\u5904\u7406\u5668\u6838\u5fc3\u7531\u540c\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u7ba1\u7406&#xff0c;\u5171\u4eab\u5185\u5b58&#xff0c;Linux \u8c03\u5ea6\u5668\u53ef\u4ee5\u628a\u4e0d\u540c\u7ebf\u7a0b\u5b89\u6392\u5230\u4e0d\u540c CPU \u4e0a\u8fd0\u884c\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982&#xff0c;\u4e00\u4e2a\u56db\u6838 Cortex-A53 SoC \u8fd0\u884c Linux \u65f6&#xff0c;\u53ef\u4ee5\u8ba9\u611f\u77e5\u3001\u901a\u4fe1\u3001\u65e5\u5fd7\u4e0e\u5e94\u7528\u7ebf\u7a0b\u5206\u5e03\u5728\u591a\u4e2a CPU \u6838\u5fc3\u4e0a\u6267\u884c\u3002<\/p>\n<h4>2.3 Cortex-R&#xff1a;\u5b9e\u65f6\u63a7\u5236\u4e13\u7528\u6838\u5fc3<\/h4>\n<p>\u5047\u8bbe\u65e0\u4eba\u673a\u9700\u8981\u4ee5 1 kHz \u5468\u671f\u6267\u884c\u63a7\u5236\u4efb\u52a1&#xff0c;\u5373\u6bcf\u9694 1 ms \u5b8c\u6210\u4e00\u6b21\u63a7\u5236\u66f4\u65b0\u3002<\/p>\n<p>Linux \u80fd\u5426\u6267\u884c&#xff1f;\u53ef\u4ee5\u3002\u4f46\u5e73\u5747\u6267\u884c\u901f\u5ea6\u5feb&#xff0c;\u4e0d\u4ee3\u8868\u6700\u574f\u60c5\u51b5\u4e0b\u7684\u54cd\u5e94\u65f6\u95f4\u53ef\u9884\u6d4b\u3002<\/p>\n<p>Linux \u7cfb\u7edf\u53ef\u80fd\u51fa\u73b0&#xff1a;<\/p>\n<ul>\n<li>\u4e2d\u65ad\u548c\u8c03\u5ea6\u7ade\u4e89\u3002<\/li>\n<li>\u9ad8\u4f18\u5148\u7ea7\u5185\u6838\u6267\u884c\u8def\u5f84\u3002<\/li>\n<li>Cache Miss \u548c DRAM \u8bbf\u95ee\u6ce2\u52a8\u3002<\/li>\n<li>\u5171\u4eab\u603b\u7ebf\u4e0a\u7684\u5176\u4ed6\u786c\u4ef6\u8bbf\u95ee\u3002<\/li>\n<li>\u7535\u6e90\u7ba1\u7406\u5f15\u8d77\u7684\u9891\u7387\u53d8\u5316\u3002<\/li>\n<\/ul>\n<p>Cortex-R \u9762\u5411\u5b9e\u65f6\u9700\u6c42&#xff0c;\u90e8\u5206\u578b\u53f7\u63d0\u4f9b\u7d27\u8026\u5408\u5185\u5b58&#xff08;TCM&#xff09;\u3001ECC\u3001Lockstep \u7b49\u80fd\u529b&#xff0c;\u6709\u5229\u4e8e\u6784\u5efa\u53ef\u9884\u6d4b\u548c\u9ad8\u53ef\u9760\u7684\u63a7\u5236\u7cfb\u7edf\u3002<\/p>\n<p>\u8fd9\u91cc\u9700\u8981\u533a\u5206\u4e24\u4e2a\u6982\u5ff5&#xff1a;<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">Tresponse\u2260Texecution T_{\\\\mathrm{response}} \\\\neq T_{\\\\mathrm{execution}} <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.9805em;vertical-align: -0.2861em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">T<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.1514em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.1389em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\"><span class=\"mord mathrm mtight\">response<\/span><\/span><\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.2861em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\"><span class=\"mrel\"><span class=\"mord vbox\"><span class=\"thinbox\"><span class=\"rlap\"><span class=\"strut\" style=\"height: 0.8889em;vertical-align: -0.1944em\"><\/span><span class=\"inner\"><span class=\"mord\"><span class=\"mrel\">\ue020<\/span><\/span><\/span><span class=\"fix\"><\/span><\/span><\/span><\/span><\/span><span class=\"mspace nobreak\"><\/span><span class=\"mrel\">&#061;<\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.8333em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">T<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3175em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.1389em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\"><span class=\"mord mathrm mtight\">execution<\/span><\/span><\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>\u4efb\u52a1\u7684\u54cd\u5e94\u65f6\u95f4\u4e0d\u4ec5\u5305\u62ec\u7a0b\u5e8f\u672c\u8eab\u6267\u884c\u7684\u65f6\u95f4&#xff0c;\u8fd8\u5305\u62ec\u4e2d\u65ad\u3001\u8c03\u5ea6\u7b49\u5f85\u3001\u8d44\u6e90\u963b\u585e\u7b49\u5ef6\u8fdf\u3002<\/p>\n<p>\u5bf9\u4e8e\u786c\u5b9e\u65f6\u7cfb\u7edf&#xff0c;\u771f\u6b63\u9700\u8981\u9a8c\u8bc1\u7684\u662f&#xff1a;<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">Tresponse,max\u2264Tdeadline T_{\\\\mathrm{response,max}} \\\\leq T_{\\\\mathrm{deadline}} <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.9694em;vertical-align: -0.2861em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">T<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.1514em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.1389em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\"><span class=\"mord mathrm mtight\">response<\/span><span class=\"mpunct mtight\">,<\/span><span class=\"mord mathrm mtight\">max<\/span><\/span><\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.2861em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u2264<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.8333em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">T<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3361em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.1389em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\"><span class=\"mord mathrm mtight\">deadline<\/span><\/span><\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>\u4e5f\u5c31\u662f\u5728\u89c4\u5b9a\u8fd0\u884c\u6761\u4ef6\u548c\u6545\u969c\u5047\u8bbe\u4e0b&#xff0c;\u6700\u574f\u54cd\u5e94\u65f6\u95f4\u80fd\u591f\u6ee1\u8db3\u622a\u6b62\u671f\u9650\u3002<\/p>\n<h4>2.4 Cortex-M&#xff1a;\u5904\u7406\u4f4e\u529f\u8017\u63a7\u5236\u4e0e\u5916\u56f4\u4efb\u52a1<\/h4>\n<p>Cortex-M \u901a\u5e38\u7528\u4e8e\u5fae\u63a7\u5236\u5668\u6216 SoC \u5185\u90e8\u7684\u8f85\u52a9\u63a7\u5236\u5355\u5143\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<ul>\n<li>\u5468\u671f\u6027\u91c7\u96c6 IMU\u3001\u6e29\u5ea6\u548c\u7535\u538b\u3002<\/li>\n<li>\u63a7\u5236\u98ce\u6247\u3001\u7ee7\u7535\u5668\u6216\u67d0\u4e9b\u6267\u884c\u5668\u3002<\/li>\n<li>\u6267\u884c\u4f4e\u529f\u8017\u5524\u9192\u903b\u8f91\u3002<\/li>\n<li>\u5728 Linux \u542f\u52a8\u524d\u6267\u884c\u90e8\u5206\u63a7\u5236\u4efb\u52a1\u3002<\/li>\n<li>\u5904\u7406\u72ec\u7acb\u7684\u901a\u4fe1\u548c\u8bbe\u5907\u7ba1\u7406\u5de5\u4f5c\u3002<\/li>\n<\/ul>\n<p>\u5bf9\u4e8e\u5f02\u6784 SoC&#xff0c;\u5e38\u89c1\u8bbe\u8ba1\u662f Cortex-A \u8fd0\u884c Linux&#xff0c;\u800c Cortex-M \u8fd0\u884c FreeRTOS \u6216\u88f8\u673a\u56fa\u4ef6\u3002<\/p>\n<p>Cortex-A \u8d1f\u8d23\u590d\u6742\u8ba1\u7b97&#xff0c;Cortex-R\/M \u8d1f\u8d23\u5177\u6709\u4e0d\u540c\u5b9e\u65f6\u6027\u3001\u529f\u8017\u6216\u9694\u79bb\u8981\u6c42\u7684\u4efb\u52a1\u3002 \u8fd9\u662f\u4e00\u79cd\u8bbe\u8ba1\u5206\u5de5&#xff0c;\u5e76\u975e\u7edd\u5bf9\u754c\u9650\u3002<\/p>\n<h3>\u4e09\u3001SoC \u6848\u4f8b&#xff1a;NXP i.MX 8M Plus<\/h3>\n<p>\u7814\u7a76\u4e00\u9897\u516c\u5f00\u8d44\u6599\u5b8c\u6574\u7684\u5546\u7528 SoC&#xff0c;\u6bd4\u53ea\u770b\u62bd\u8c61\u6982\u5ff5\u66f4\u5bb9\u6613\u7406\u89e3\u5b9e\u9645\u67b6\u6784\u3002<\/p>\n<h4>NXP i.MX 8M Plus \u6982\u8ff0<\/h4>\n<p>\u8fd9\u662f\u4e00\u9897\u9762\u5411\u673a\u5668\u89c6\u89c9\u3001\u8fb9\u7f18 AI \u4e0e\u5de5\u4e1a\u81ea\u52a8\u5316\u7684\u5f02\u6784\u8ba1\u7b97\u5e94\u7528\u5904\u7406\u5668&#xff0c;\u9002\u5408\u7528\u4e8e\u7406\u89e3 Linux\u3001\u5b9e\u65f6\u5904\u7406\u5668\u3001ISP \u4e0e NPU \u5982\u4f55\u5728\u540c\u4e00\u7cfb\u7edf\u4e2d\u534f\u4f5c\u3002<\/p>\n<p>\u6839\u636e NXP \u4ea7\u54c1\u8d44\u6599&#xff0c;i.MX 8M Plus \u5bb6\u65cf\u5177\u6709\u4ee5\u4e0b\u8ba1\u7b97\u6a21\u5757&#xff08;\u5177\u4f53\u914d\u7f6e\u4f9d\u578b\u53f7\u800c\u5f02&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u8ba1\u7b97\u6a21\u5757\u89c4\u683c\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">CPU<\/td>\n<td align=\"left\">2\/4 \u00d7 Cortex-A53&#xff0c;\u6700\u9ad8 1.8 GHz<\/td>\n<td align=\"left\">Linux \u548c\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">MCU \u6838<\/td>\n<td align=\"left\">Cortex-M7&#xff0c;\u6700\u9ad8 800 MHz<\/td>\n<td align=\"left\">\u5b9e\u65f6\u53ca\u8f85\u52a9\u63a7\u5236<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">NPU<\/td>\n<td align=\"left\">\u6700\u9ad8 2.3 TOPS<\/td>\n<td align=\"left\">AI \u6a21\u578b\u63a8\u7406\u52a0\u901f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">ISP<\/td>\n<td align=\"left\">\u53cc ISP&#xff0c;\u6700\u9ad8 375MPixels\/s \u8f93\u5165\u901f\u7387<\/td>\n<td align=\"left\">\u56fe\u50cf\u4fe1\u53f7\u5904\u7406<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">GPU<\/td>\n<td align=\"left\">GC7000UL 3D \u56fe\u5f62\u5355\u5143 &#043; GC520L 2D \u5355\u5143<\/td>\n<td align=\"left\">\u6e32\u67d3\u3001\u56fe\u5f62\u8ba1\u7b97<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">DSP<\/td>\n<td align=\"left\">Cadence Tensilica HiFi 4 DSP &#064; 800MHz<\/td>\n<td align=\"left\">\u97f3\u9891\u4e0e\u8bed\u97f3\u4fe1\u53f7\u5904\u7406<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u89c6\u9891\u5f15\u64ce<\/td>\n<td align=\"left\">H.264\/H.265 1080p60 \u7f16\u89e3\u7801<\/td>\n<td align=\"left\">\u89c6\u9891\u538b\u7f29\u3001\u89e3\u7801<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5185\u5b58\u63a5\u53e3<\/td>\n<td align=\"left\">DDR4 \/ LPDDR4 \u63a7\u5236\u5668&#xff0c;\u6700\u9ad8 4.0GT\/s<\/td>\n<td align=\"left\">\u5916\u90e8\u8fd0\u884c\u5185\u5b58\u8bbf\u95ee<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u610f\u5473\u7740&#xff0c;\u540c\u4e00\u9897\u82af\u7247\u4e2d\u53ef\u4ee5\u540c\u65f6\u8fd0\u884c&#xff1a;<\/p>\n<ul>\n<li>Linux \u4e0a\u7684 C&#043;&#043; \u89c6\u89c9\u5e94\u7528\u3002<\/li>\n<li>Cortex-M7 \u4e0a\u7684\u5b9e\u65f6\u63a7\u5236\u56fa\u4ef6\u3002<\/li>\n<li>NPU \u4e0a\u7684\u795e\u7ecf\u7f51\u7edc\u63a8\u7406\u4efb\u52a1\u3002<\/li>\n<li>ISP \u4e2d\u7684\u786c\u4ef6\u56fe\u50cf\u5904\u7406\u3002<\/li>\n<li>\u786c\u4ef6\u89c6\u9891\u7f16\u7801\u5355\u5143\u4e0a\u7684 H.265 \u7f16\u7801\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u6a21\u5757\u901a\u8fc7\u7247\u5185\u4e92\u8fde\u3001\u5171\u4eab\u5185\u5b58\u548c\u4e13\u7528\u786c\u4ef6\u63a5\u53e3\u534f\u4f5c\u3002<\/p>\n<h4>3.1 \u4ece\u8f6f\u4ef6\u89d2\u5ea6\u770b\u8fd9\u9897 SoC<\/h4>\n<p>\u4ece\u8f6f\u4ef6\u90e8\u7f72\u89c6\u89d2&#xff0c;\u8be5 SoC \u7684\u5206\u5c42\u534f\u4f5c\u6a21\u578b\u5982\u4e0b&#xff1a;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261119004042-6afe458a4cea6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"460\" \/><\/p>\n<p>\u8fd9\u79cd\u7cfb\u7edf\u5177\u6709\u4e24\u4e2a\u660e\u663e\u4f18\u52bf&#xff1a;<br \/>\n\u7b2c\u4e00&#xff0c;\u4efb\u52a1\u5206\u5de5&#xff1a;\u901a\u7528 CPU \u4e0d\u5fc5\u8d1f\u8d23\u6240\u6709\u5de5\u4f5c&#xff0c;\u53ef\u4ee5\u5c06\u7279\u5b9a\u8ba1\u7b97\u4ea4\u7ed9\u6548\u7387\u66f4\u9ad8\u7684\u786c\u4ef6\u6a21\u5757\u3002<br \/>\n\u7b2c\u4e8c&#xff0c;\u9ad8\u96c6\u6210\u5ea6&#xff1a; \u5c06\u591a\u4e2a\u529f\u80fd\u6a21\u5757\u96c6\u6210\u5230\u540c\u4e00 SoC&#xff0c;\u80fd\u591f\u964d\u4f4e\u90e8\u5206\u8bbe\u8ba1\u7684\u677f\u7ea7\u590d\u6742\u5ea6\u548c\u901a\u4fe1\u5f00\u9500&#xff0c;\u4f46\u4e5f\u5e26\u6765\u5171\u4eab\u5e26\u5bbd\u3001\u529f\u8017\u4e0e\u6563\u70ed\u65b9\u9762\u7684\u7ea6\u675f\u3002<\/p>\n<p>NXP \u5b98\u65b9\u8fd8\u63d0\u4f9b\u8be6\u7ec6\u7684 i.MX 8M Plus Applications Processor Reference Manual&#xff08;IMX8MPRM&#xff09;&#xff0c;\u5305\u542b\u5916\u8bbe\u3001\u5bc4\u5b58\u5668\u3001\u65f6\u949f\u3001\u4e2d\u65ad\u548c\u7cfb\u7edf\u63a7\u5236\u7b49\u8d44\u6599\u3002<\/p>\n<h3>\u56db\u3001SoC \u5185\u90e8\u7684\u603b\u7ebf\u4e0e\u4e92\u8fde\u67b6\u6784<\/h3>\n<p>SoC \u5185\u90e8\u5404\u6a21\u5757\u5e76\u4e0d\u662f\u968f\u610f\u8fde\u63a5\u7684&#xff0c;\u800c\u662f\u901a\u8fc7\u603b\u7ebf\u3001\u4e92\u8fde\u7f51\u7edc\u548c\u534f\u8bae\u8fdb\u884c\u8bbf\u95ee\u3002<\/p>\n<p>\u4f8b\u5982&#xff0c;CPU \u9700\u8981\u8bbf\u95ee DDR&#xff0c;ISP \u9700\u8981\u5199\u5165\u56fe\u50cf\u6570\u636e&#xff0c;NPU \u9700\u8981\u8bfb\u53d6\u8f93\u5165\u5f20\u91cf&#xff0c;DMA \u63a7\u5236\u5668\u9700\u8981\u642c\u8fd0\u5185\u5b58\u6570\u636e\u3002\u8fd9\u4e9b\u64cd\u4f5c\u90fd\u4f1a\u6d89\u53ca\u7247\u5185\u4e92\u8fde\u3002<\/p>\n<h4>4.1 AMBA \u603b\u7ebf\u67b6\u6784<\/h4>\n<p>Arm \u63d0\u4f9b\u7684 AMBA&#xff08;Advanced Microcontroller Bus Architecture&#xff09;\u662f\u4e00\u5957\u7247\u5185\u4e92\u8fde\u534f\u8bae\u89c4\u8303&#xff0c;\u7528\u4e8e\u8fde\u63a5 SoC \u4e2d\u7684\u5904\u7406\u5668\u3001\u5b58\u50a8\u548c\u5916\u8bbe IP\u3002<\/p>\n<p>\u5e38\u89c1\u534f\u8bae\u5bf9\u6bd4&#xff1a;<\/p>\n<table>\n<tr>\u534f\u8bae\u7279\u70b9\u4e3b\u8981\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">APB<\/td>\n<td align=\"left\">\u7ed3\u6784\u7b80\u5355\u3001\u5f00\u9500\u8f83\u4f4e<\/td>\n<td align=\"left\">UART\u3001GPIO\u3001Timer \u7b49\u4f4e\u901f\u5bc4\u5b58\u5668\u8bbf\u95ee<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">AHB<\/td>\n<td align=\"left\">\u652f\u6301\u8f83\u9ad8\u6027\u80fd\u7684\u6570\u636e\u4f20\u8f93<\/td>\n<td align=\"left\">\u8f83\u7b80\u5355\u7684\u7cfb\u7edf\u4e92\u8fde<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">AXI<\/td>\n<td align=\"left\">\u72ec\u7acb\u8bfb\u5199\u901a\u9053\u3001\u7a81\u53d1\u4f20\u8f93\u3001Outstanding\u4e8b\u52a1<\/td>\n<td align=\"left\">CPU\u3001DMA\u3001DDR\u3001\u9ad8\u901f\u5916\u8bbe<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">ACE<\/td>\n<td align=\"left\">\u5728AXI\u57fa\u7840\u4e0a\u589e\u52a0\u7f13\u5b58\u4e00\u81f4\u6027\u80fd\u529b<\/td>\n<td align=\"left\">\u4e00\u81f4\u6027\u5904\u7406\u5668\u53ca\u76f8\u5173\u7cfb\u7edf<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">CHI<\/td>\n<td align=\"left\">\u9762\u5411\u53ef\u6269\u5c55\u4e00\u81f4\u6027\u4e92\u8fde&#xff0c;\u652f\u6301\u590d\u6742NoC<\/td>\n<td align=\"left\">\u591a\u6838\u9ad8\u6027\u80fd SoC\u3001\u5927\u89c4\u6a21\u7247\u4e0a\u7f51\u7edc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f&#xff1a;AHB\u3001AXI\u3001CHI \u662f\u4e92\u8fde\u534f\u8bae&#xff0c;\u800c NoC&#xff08;Network on Chip&#xff09;\u63cf\u8ff0\u7684\u662f\u4e00\u79cd\u7247\u5185\u4e92\u8fde\u7ed3\u6784&#xff0c;\u4e24\u8005\u5c5e\u4e8e\u4e0d\u540c\u7684\u5206\u7c7b\u7ef4\u5ea6\u3002<\/p>\n<h4>4.2 AXI<\/h4>\n<p>AXI &#061; Advanced eXtensible Interface&#xff0c;\u9ad8\u7ea7\u53ef\u6269\u5c55\u63a5\u53e3&#xff0c;\u662f Arm AMBA \u7247\u4e0a\u603b\u7ebf\u6807\u51c6\u91cc\u7684\u9ad8\u6027\u80fd\u7247\u4e0a\u4e92\u8fde\u534f\u8bae&#xff0c;\u662f\u73b0\u4ee3 SoC \u91cc CPU\u3001GPU\u3001DMA\u3001DDR \u63a7\u5236\u5668\u4e4b\u95f4\u7684\u4e3b\u6d41\u9ad8\u901f\u63a5\u53e3\u3002<\/p>\n<p>\u7279\u6027<\/p>\n<li>\u8bfb\u5199\u5b8c\u5168\u5206\u79bb&#xff0c;\u8bfb\u5199\u901a\u9053\u72ec\u7acb&#xff0c;\u53ef\u5e76\u884c\u6d41\u6c34<\/li>\n<li>\u652f\u6301\u591a\u4e2a in-flight \u4e8b\u52a1&#xff1a;\u53d1\u5b8c\u8bf7\u6c42\u4e0d\u7b49\u56de\u590d\u5c31\u7ee7\u7eed\u53d1\u4e0b\u4e00\u7b14<\/li>\n<li>\u652f\u6301\u4e71\u5e8f\u8fd4\u56de&#xff1a;\u4f9d\u9760 AXID \u6807\u8bb0\u5f52\u5c5e&#xff0c;\u56de\u590d\u987a\u5e8f\u53ef\u4ee5\u548c\u53d1\u8bf7\u6c42\u987a\u5e8f\u4e0d\u4e00\u81f4<\/li>\n<li>Burst \u7a81\u53d1\u4f20\u8f93&#xff1a;AXI4 INCR \u6700\u957f 256 beat&#xff1b;FIXED\/WRAP \u6700\u591a 16 beat<\/li>\n<li>\u5b57\u8282\u9009\u901a WSTRB&#xff1a;\u652f\u6301\u975e\u5bf9\u9f50\u8bbf\u95ee\u3001\u90e8\u5206\u5b57\u8282\u5199<\/li>\n<li>\u53ef\u63d2\u5bc4\u5b58\u5668\u6253\u62cd&#xff0c;\u65f6\u5e8f\u6536\u655b\u53cb\u597d&#xff0c;\u9002\u5408\u9ad8\u9891\u8bbe\u8ba1<\/li>\n<p>AXI \u4e92\u8fde\u62d3\u6251\u53ef\u4ee5\u62bd\u8c61\u4e3a&#xff1a;<\/p>\n<p>#mermaid-svg-MIF9r90DlkOMRddf{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-MIF9r90DlkOMRddf .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-MIF9r90DlkOMRddf .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-MIF9r90DlkOMRddf .error-icon{fill:#552222;}#mermaid-svg-MIF9r90DlkOMRddf .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-MIF9r90DlkOMRddf .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-MIF9r90DlkOMRddf .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-MIF9r90DlkOMRddf .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-MIF9r90DlkOMRddf .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-MIF9r90DlkOMRddf .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-MIF9r90DlkOMRddf .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-MIF9r90DlkOMRddf .marker{fill:#333333;stroke:#333333;}#mermaid-svg-MIF9r90DlkOMRddf .marker.cross{stroke:#333333;}#mermaid-svg-MIF9r90DlkOMRddf svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-MIF9r90DlkOMRddf p{margin:0;}#mermaid-svg-MIF9r90DlkOMRddf .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-MIF9r90DlkOMRddf .cluster-label text{fill:#333;}#mermaid-svg-MIF9r90DlkOMRddf .cluster-label span{color:#333;}#mermaid-svg-MIF9r90DlkOMRddf .cluster-label span p{background-color:transparent;}#mermaid-svg-MIF9r90DlkOMRddf .label text,#mermaid-svg-MIF9r90DlkOMRddf span{fill:#333;color:#333;}#mermaid-svg-MIF9r90DlkOMRddf .node rect,#mermaid-svg-MIF9r90DlkOMRddf .node circle,#mermaid-svg-MIF9r90DlkOMRddf .node ellipse,#mermaid-svg-MIF9r90DlkOMRddf .node polygon,#mermaid-svg-MIF9r90DlkOMRddf .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-MIF9r90DlkOMRddf .rough-node .label text,#mermaid-svg-MIF9r90DlkOMRddf .node .label text,#mermaid-svg-MIF9r90DlkOMRddf .image-shape .label,#mermaid-svg-MIF9r90DlkOMRddf .icon-shape .label{text-anchor:middle;}#mermaid-svg-MIF9r90DlkOMRddf .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-MIF9r90DlkOMRddf .rough-node .label,#mermaid-svg-MIF9r90DlkOMRddf .node .label,#mermaid-svg-MIF9r90DlkOMRddf .image-shape .label,#mermaid-svg-MIF9r90DlkOMRddf .icon-shape .label{text-align:center;}#mermaid-svg-MIF9r90DlkOMRddf .node.clickable{cursor:pointer;}#mermaid-svg-MIF9r90DlkOMRddf .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-MIF9r90DlkOMRddf .arrowheadPath{fill:#333333;}#mermaid-svg-MIF9r90DlkOMRddf .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-MIF9r90DlkOMRddf .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-MIF9r90DlkOMRddf .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-MIF9r90DlkOMRddf .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-MIF9r90DlkOMRddf .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-MIF9r90DlkOMRddf .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-MIF9r90DlkOMRddf .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-MIF9r90DlkOMRddf .cluster text{fill:#333;}#mermaid-svg-MIF9r90DlkOMRddf .cluster span{color:#333;}#mermaid-svg-MIF9r90DlkOMRddf div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-MIF9r90DlkOMRddf .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-MIF9r90DlkOMRddf rect.text{fill:none;stroke-width:0;}#mermaid-svg-MIF9r90DlkOMRddf .icon-shape,#mermaid-svg-MIF9r90DlkOMRddf .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-MIF9r90DlkOMRddf .icon-shape p,#mermaid-svg-MIF9r90DlkOMRddf .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-MIF9r90DlkOMRddf .icon-shape .label rect,#mermaid-svg-MIF9r90DlkOMRddf .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-MIF9r90DlkOMRddf .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-MIF9r90DlkOMRddf .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-MIF9r90DlkOMRddf :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}#mermaid-svg-MIF9r90DlkOMRddf .master&gt;*{fill:#eef6ff!important;stroke:#4a90e2!important;stroke-width:1.5px!important;color:#1f3b5c!important;}#mermaid-svg-MIF9r90DlkOMRddf .master span{fill:#eef6ff!important;stroke:#4a90e2!important;stroke-width:1.5px!important;color:#1f3b5c!important;}#mermaid-svg-MIF9r90DlkOMRddf .master tspan{fill:#1f3b5c!important;}#mermaid-svg-MIF9r90DlkOMRddf .bus&gt;*{fill:#fff7e6!important;stroke:#f5a623!important;stroke-width:2px!important;color:#6b4a00!important;}#mermaid-svg-MIF9r90DlkOMRddf .bus span{fill:#fff7e6!important;stroke:#f5a623!important;stroke-width:2px!important;color:#6b4a00!important;}#mermaid-svg-MIF9r90DlkOMRddf .bus tspan{fill:#6b4a00!important;}#mermaid-svg-MIF9r90DlkOMRddf .slave&gt;*{fill:#eefbf3!important;stroke:#34c759!important;stroke-width:1.5px!important;color:#145a2e!important;}#mermaid-svg-MIF9r90DlkOMRddf .slave span{fill:#eefbf3!important;stroke:#34c759!important;stroke-width:1.5px!important;color:#145a2e!important;}#mermaid-svg-MIF9r90DlkOMRddf .slave tspan{fill:#145a2e!important;}#mermaid-svg-MIF9r90DlkOMRddf .mem&gt;*{fill:#f3eefe!important;stroke:#8e6bd8!important;stroke-width:1.5px!important;color:#3d2a6b!important;}#mermaid-svg-MIF9r90DlkOMRddf .mem span{fill:#f3eefe!important;stroke:#8e6bd8!important;stroke-width:1.5px!important;color:#3d2a6b!important;}#mermaid-svg-MIF9r90DlkOMRddf .mem tspan{fill:#3d2a6b!important;}#mermaid-svg-MIF9r90DlkOMRddf .periph&gt;*{fill:#fdf2f8!important;stroke:#d946ef!important;stroke-width:1.5px!important;color:#701a75!important;}#mermaid-svg-MIF9r90DlkOMRddf .periph span{fill:#fdf2f8!important;stroke:#d946ef!important;stroke-width:1.5px!important;color:#701a75!important;}#mermaid-svg-MIF9r90DlkOMRddf .periph tspan{fill:#701a75!important;}<span class=\"nodeLabel\"><\/p>\n<p>\u4ece\u8bbe\u5907 \/ \u5b58\u50a8\u4e0e\u5916\u8bbe<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u4e3b\u8bbe\u5907 Masters<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span style=\"color:#1f3b5c !important\" class=\"nodeLabel\"><\/p>\n<p>CPU<\/p>\n<p><\/span><span style=\"color:#1f3b5c !important\" class=\"nodeLabel\"><\/p>\n<p>ISP<\/p>\n<p><\/span><span style=\"color:#1f3b5c !important\" class=\"nodeLabel\"><\/p>\n<p>NPU<\/p>\n<p><\/span><span style=\"color:#1f3b5c !important\" class=\"nodeLabel\"><\/p>\n<p>DMA<\/p>\n<p><\/span><span style=\"color:#6b4a00 !important\" class=\"nodeLabel\"><\/p>\n<p>AXI \/ NoC \u4e92\u8fde\u7f51\u7edc<\/p>\n<p><\/span><span style=\"color:#145a2e !important\" class=\"nodeLabel\"><\/p>\n<p>DDR \u63a7\u5236\u5668<\/p>\n<p><\/span><span style=\"color:#145a2e !important\" class=\"nodeLabel\"><\/p>\n<p>SRAM<\/p>\n<p><\/span><span style=\"color:#145a2e !important\" class=\"nodeLabel\"><\/p>\n<p>\u5916\u8bbe\u6865\u63a5<\/p>\n<p><\/span><span style=\"color:#3d2a6b !important\" class=\"nodeLabel\"><\/p>\n<p>\u5916\u90e8 DRAM<\/p>\n<p><\/span><span style=\"color:#701a75 !important\" class=\"nodeLabel\"><\/p>\n<p>APB \u5916\u8bbe<\/p>\n<p><\/span><\/p>\n<p>\u5f53 CPU \u6267\u884c&#xff1a;<\/p>\n<p>value <span class=\"token operator\">&#061;<\/span> buffer<span class=\"token punctuation\">[<\/span><span class=\"token number\">100<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u5982\u679c\u8bbf\u95ee\u672a\u88ab Cache \u6ee1\u8db3&#xff0c;\u5c31\u53ef\u80fd\u9700\u8981\u7ecf\u7531\u7247\u5185\u4e92\u8fde&#xff0c;\u5230\u8fbe\u5185\u5b58\u63a7\u5236\u5668&#xff0c;\u518d\u8bbf\u95ee DRAM\u3002<br \/>\n\u4f46\u5982\u679c buffer[100] \u5df2\u7ecf\u5b58\u5728\u6709\u6548\u7684 Cache \u884c\u4e2d&#xff0c;CPU \u53ef\u4ee5\u76f4\u63a5\u4ece Cache \u83b7\u53d6&#xff0c;\u800c\u65e0\u9700\u6bcf\u6b21\u90fd\u8bbf\u95ee DRAM\u3002<\/p>\n<p>\u56e0\u6b64&#xff0c;CPU \u7684\u4e00\u6b21\u5185\u5b58\u8bfb\u53d6\u4e0d\u4e00\u5b9a\u5bf9\u5e94\u4e00\u6b21\u5916\u90e8\u5185\u5b58\u8bbf\u95ee\u3002<\/p>\n<h4>4.3 AXI \u7684\u4e94\u4e2a\u72ec\u7acb\u901a\u9053<\/h4>\n<p>Arm \u7684 AXI \u89c4\u8303\u5b9a\u4e49\u4e86\u4e94\u4e2a\u4e8b\u52a1\u901a\u9053&#xff1a;<\/p>\n<table>\n<tr>\u901a\u9053\u7f29\u5199\u540d\u79f0\u7528\u9014\u65b9\u5411&#xff08;Master \u2194 Slave&#xff09;\u5173\u952e\u4fe1\u53f7<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">AW<\/td>\n<td align=\"left\">Write Address<\/td>\n<td align=\"left\">\u5199\u5730\u5740\u901a\u9053&#xff0c;\u4e3b\u673a\u53d1\u9001\u5199\u4e8b\u52a1\u7684\u5730\u5740\u3001\u7a81\u53d1\u7c7b\u578b\u3001\u957f\u5ea6\u3001ID\u7b49\u914d\u7f6e\u4fe1\u606f<\/td>\n<td align=\"left\">Master \u2192 Slave<\/td>\n<td align=\"left\">AWADDR\u3001AWID\u3001AWLEN\u3001AWSIZE\u3001AWBURST\u3001AWVALID\u3001AWREADY<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">W<\/td>\n<td align=\"left\">Write Data<\/td>\n<td align=\"left\">\u5199\u6570\u636e\u901a\u9053&#xff0c;\u4e3b\u673a\u4f20\u8f93\u5199\u6570\u636e\u3001\u5b57\u8282\u63a9\u7801&#xff0c;WLAST\u6807\u8bb0\u7a81\u53d1\u6700\u540e\u4e00\u62cd<\/td>\n<td align=\"left\">Master \u2192 Slave<\/td>\n<td align=\"left\">WDATA\u3001WSTRB\u3001WLAST\u3001WVALID\u3001WREADY<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">B<\/td>\n<td align=\"left\">Write Response<\/td>\n<td align=\"left\">\u5199\u54cd\u5e94\u901a\u9053&#xff0c;\u4ece\u673a\u53cd\u9988\u672c\u6b21\u5199\u4e8b\u52a1\u662f\u5426\u6210\u529f&#xff0c;\u4e0d\u643a\u5e26\u6570\u636e<\/td>\n<td align=\"left\">Slave \u2192 Master<\/td>\n<td align=\"left\">BID\u3001BRESP\u3001BVALID\u3001BREADY<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">AR<\/td>\n<td align=\"left\">Read Address<\/td>\n<td align=\"left\">\u8bfb\u5730\u5740\u901a\u9053&#xff0c;\u4e3b\u673a\u53d1\u9001\u8bfb\u4e8b\u52a1\u5730\u5740\u3001\u7a81\u53d1\u53c2\u6570\u3001ID\u7b49\u914d\u7f6e\u4fe1\u606f<\/td>\n<td align=\"left\">Master \u2192 Slave<\/td>\n<td align=\"left\">ARADDR\u3001ARID\u3001ARLEN\u3001ARSIZE\u3001ARBURST\u3001ARVALID\u3001ARREADY<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">R<\/td>\n<td align=\"left\">Read Data<\/td>\n<td align=\"left\">\u8bfb\u6570\u636e\u548c\u54cd\u5e94\u901a\u9053&#xff0c;\u4ece\u673a\u8fd4\u56de\u8bfb\u6570\u636e\u3001\u54cd\u5e94\u72b6\u6001&#xff0c;RLAST\u6807\u8bb0\u8bfb\u7a81\u53d1\u6700\u540e\u4e00\u62cd<\/td>\n<td align=\"left\">Slave \u2192 Master<\/td>\n<td align=\"left\">RID\u3001RDATA\u3001RRESP\u3001RLAST\u3001RVALID\u3001RREADY<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>AXI \u7684\u4f18\u52bf\u5305\u62ec\u7a81\u53d1\u4f20\u8f93&#xff08;Burst&#xff09;\u3001\u591a\u4e2a\u672a\u5b8c\u6210\u4e8b\u52a1&#xff08;Outstanding Transactions&#xff09;&#xff0c;\u4ee5\u53ca\u5728\u534f\u8bae\u5141\u8bb8\u7684\u6761\u4ef6\u4e0b\u652f\u6301\u4e71\u5e8f\u5b8c\u6210\u3002<\/p>\n<p>\u4f46\u9700\u8981\u6ce8\u610f&#xff1a;AXI \u7684\u67d0\u4e9b\u7279\u6027\u662f\u534f\u8bae\u80fd\u529b&#xff0c;\u4e0d\u610f\u5473\u7740\u6240\u6709 AXI \u8bbe\u5907\u90fd\u4e00\u5b9a\u63d0\u4f9b\u6700\u5927\u7a0b\u5ea6\u7684\u5e76\u53d1\u6216\u4e71\u5e8f\u5904\u7406\u3002<\/p>\n<h4>4.4 \u603b\u7ebf\u4ef2\u88c1\u4e0e\u5e26\u5bbd\u7ade\u4e89<\/h4>\n<p>\u5728SoC\u5185\u90e8&#xff0c;CPU\u3001GPU\u3001NPU\u3001ISP\u3001DMA\u7b49\u6a21\u5757\u53ef\u540c\u65f6\u53d1\u8d77\u5185\u5b58\u8bbf\u95ee\u8bf7\u6c42&#xff0c;\u5b83\u4eec\u5171\u4eabAXI\/NoC\u4e92\u8fde\u3001DDR\u63a7\u5236\u5668\u4e0e\u5185\u5b58\u5e26\u5bbd\u3002<br \/>\n\u4ee5\u89c6\u89c9SoC\u5178\u578b\u5e76\u53d1\u573a\u666f\u4e3a\u4f8b&#xff0c;\u7cfb\u7edf\u4f1a\u5e76\u884c\u6267\u884c\u591a\u9879\u5185\u5b58\u5bc6\u96c6\u578b\u4efb\u52a1&#xff1a;<\/p>\n<ul>\n<li>\u6444\u50cf\u5934\u901a\u8fc7DMA\u5411DDR\u5199\u5165RAW\u56fe\u50cf<\/li>\n<li>ISP\u8bfb\u53d6RAW\u56fe\u50cf&#xff0c;\u5904\u7406\u5b8c\u6210\u540e\u5199\u56deDDR<\/li>\n<li>NPU\u8bfb\u53d6\u63a8\u7406\u8f93\u5165\u56fe\u50cf\u4e0e\u6a21\u578b\u6743\u91cd<\/li>\n<li>CPU\u8bfb\u53d6\u56fe\u50cf\u6570\u636e&#xff0c;\u8fd0\u884c\u4e1a\u52a1\u7b97\u6cd5<\/li>\n<li>\u89c6\u9891\u7f16\u7801\u5668\u8bfb\u53d6\u56fe\u50cf\u5e27\u505a\u7f16\u7801<\/li>\n<\/ul>\n<p>#mermaid-svg-2QC2Pf43LEzYyzRh{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-2QC2Pf43LEzYyzRh .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-2QC2Pf43LEzYyzRh .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-2QC2Pf43LEzYyzRh .error-icon{fill:#552222;}#mermaid-svg-2QC2Pf43LEzYyzRh .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-2QC2Pf43LEzYyzRh .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-2QC2Pf43LEzYyzRh .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-2QC2Pf43LEzYyzRh .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-2QC2Pf43LEzYyzRh .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-2QC2Pf43LEzYyzRh .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-2QC2Pf43LEzYyzRh .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-2QC2Pf43LEzYyzRh .marker{fill:#333333;stroke:#333333;}#mermaid-svg-2QC2Pf43LEzYyzRh .marker.cross{stroke:#333333;}#mermaid-svg-2QC2Pf43LEzYyzRh svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-2QC2Pf43LEzYyzRh p{margin:0;}#mermaid-svg-2QC2Pf43LEzYyzRh .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-2QC2Pf43LEzYyzRh .cluster-label text{fill:#333;}#mermaid-svg-2QC2Pf43LEzYyzRh .cluster-label span{color:#333;}#mermaid-svg-2QC2Pf43LEzYyzRh .cluster-label span p{background-color:transparent;}#mermaid-svg-2QC2Pf43LEzYyzRh .label text,#mermaid-svg-2QC2Pf43LEzYyzRh span{fill:#333;color:#333;}#mermaid-svg-2QC2Pf43LEzYyzRh .node rect,#mermaid-svg-2QC2Pf43LEzYyzRh .node circle,#mermaid-svg-2QC2Pf43LEzYyzRh .node ellipse,#mermaid-svg-2QC2Pf43LEzYyzRh .node polygon,#mermaid-svg-2QC2Pf43LEzYyzRh .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-2QC2Pf43LEzYyzRh .rough-node .label text,#mermaid-svg-2QC2Pf43LEzYyzRh .node .label text,#mermaid-svg-2QC2Pf43LEzYyzRh .image-shape .label,#mermaid-svg-2QC2Pf43LEzYyzRh .icon-shape .label{text-anchor:middle;}#mermaid-svg-2QC2Pf43LEzYyzRh .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-2QC2Pf43LEzYyzRh .rough-node .label,#mermaid-svg-2QC2Pf43LEzYyzRh .node .label,#mermaid-svg-2QC2Pf43LEzYyzRh .image-shape .label,#mermaid-svg-2QC2Pf43LEzYyzRh .icon-shape .label{text-align:center;}#mermaid-svg-2QC2Pf43LEzYyzRh .node.clickable{cursor:pointer;}#mermaid-svg-2QC2Pf43LEzYyzRh .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-2QC2Pf43LEzYyzRh .arrowheadPath{fill:#333333;}#mermaid-svg-2QC2Pf43LEzYyzRh .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-2QC2Pf43LEzYyzRh .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-2QC2Pf43LEzYyzRh .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-2QC2Pf43LEzYyzRh .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-2QC2Pf43LEzYyzRh .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-2QC2Pf43LEzYyzRh .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-2QC2Pf43LEzYyzRh .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-2QC2Pf43LEzYyzRh .cluster text{fill:#333;}#mermaid-svg-2QC2Pf43LEzYyzRh .cluster span{color:#333;}#mermaid-svg-2QC2Pf43LEzYyzRh div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-2QC2Pf43LEzYyzRh .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-2QC2Pf43LEzYyzRh rect.text{fill:none;stroke-width:0;}#mermaid-svg-2QC2Pf43LEzYyzRh .icon-shape,#mermaid-svg-2QC2Pf43LEzYyzRh .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-2QC2Pf43LEzYyzRh .icon-shape p,#mermaid-svg-2QC2Pf43LEzYyzRh .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-2QC2Pf43LEzYyzRh .icon-shape .label rect,#mermaid-svg-2QC2Pf43LEzYyzRh .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-2QC2Pf43LEzYyzRh .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-2QC2Pf43LEzYyzRh .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-2QC2Pf43LEzYyzRh :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}#mermaid-svg-2QC2Pf43LEzYyzRh .master&gt;*{fill:#ffffff!important;stroke:#90a4ae!important;stroke-width:1.5px!important;color:#37474f!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .master span{fill:#ffffff!important;stroke:#90a4ae!important;stroke-width:1.5px!important;color:#37474f!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .master tspan{fill:#37474f!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .bus&gt;*{fill:#eef6ff!important;stroke:#4a90e2!important;stroke-width:2px!important;color:#1f3b5c!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .bus span{fill:#eef6ff!important;stroke:#4a90e2!important;stroke-width:2px!important;color:#1f3b5c!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .bus tspan{fill:#1f3b5c!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .ctrl&gt;*{fill:#ffffff!important;stroke:#90a4ae!important;stroke-width:1.5px!important;color:#37474f!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .ctrl span{fill:#ffffff!important;stroke:#90a4ae!important;stroke-width:1.5px!important;color:#37474f!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .ctrl tspan{fill:#37474f!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .mem&gt;*{fill:#f8fafc!important;stroke:#b0bec5!important;stroke-width:1.5px!important;color:#37474f!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .mem span{fill:#f8fafc!important;stroke:#b0bec5!important;stroke-width:1.5px!important;color:#37474f!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .mem tspan{fill:#37474f!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .note&gt;*{fill:none!important;stroke:none!important;color:#78909c!important;font-style:italic!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .note span{fill:none!important;stroke:none!important;color:#78909c!important;font-style:italic!important;}#mermaid-svg-2QC2Pf43LEzYyzRh .note tspan{fill:#78909c!important;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span style=\"color:#37474f !important\" class=\"nodeLabel\"><\/p>\n<p>CPU\u6570\u636e\u8bfb\u5199<\/p>\n<p><\/span><span style=\"color:#37474f !important\" class=\"nodeLabel\"><\/p>\n<p>ISP\u56fe\u50cf\u5904\u7406<\/p>\n<p><\/span><span style=\"color:#37474f !important\" class=\"nodeLabel\"><\/p>\n<p>NPU\u6a21\u578b\u63a8\u7406<\/p>\n<p><\/span><span style=\"color:#37474f !important\" class=\"nodeLabel\"><\/p>\n<p>VPU\u89c6\u9891\u7f16\u89e3\u7801<\/p>\n<p><\/span><span style=\"color:#37474f !important\" class=\"nodeLabel\"><\/p>\n<p>DMA\u6570\u636e\u642c\u8fd0<\/p>\n<p><\/span><span style=\"color:#1f3b5c !important\" class=\"nodeLabel\"><\/p>\n<p>AXI \/ NoC \u4e92\u8fde\u8bf7\u6c42\u8def\u7531 \u00b7 \u4ef2\u88c1 \u00b7 QoS<\/p>\n<p><\/span><span style=\"color:#37474f !important\" class=\"nodeLabel\"><\/p>\n<p>DDR Controller\u8bf7\u6c42\u8c03\u5ea6 \/ \u8bfb\u5199\u5207\u6362 \/ DRAM \u65f6\u5e8f\u7ba1\u7406<\/p>\n<p><\/span><span style=\"color:#37474f !important\" class=\"nodeLabel\"><\/p>\n<p>External DRAM<\/p>\n<p><\/span><span style=\"color:#78909c !important;font-style:italic !important\" class=\"nodeLabel\"><\/p>\n<p>\u7b80\u5316\u7684\u5171\u4eab\u5185\u5b58\u8bbf\u95ee\u6a21\u578b&#xff0c;\u771f\u5b9e SoC \u53ef\u80fd\u5305\u542b\u591a\u4e2a\u4e92\u8fde\u5c42\u7ea7\u548c\u5b58\u50a8\u63a7\u5236\u5668\u3002<\/p>\n<p><\/span><\/p>\n<h5>4.4.1 \u603b\u7ebf\u4ef2\u88c1&#xff08;Bus Arbitration&#xff09;<\/h5>\n<p>\u591a\u4e2a\u4e3b\u8bbe\u5907\u540c\u65f6\u8bf7\u6c42\u5171\u4eab\u8d44\u6e90\u65f6&#xff0c;\u4f9d\u9760\u4ef2\u88c1\u673a\u5236\u786e\u5b9a\u4e8b\u52a1\u8bbf\u95ee\u987a\u5e8f&#xff0c;\u5e38\u89c1\u4ef2\u88c1\u7b56\u7565\u5982\u4e0b&#xff1a;<\/p>\n<table>\n<tr>\u4ef2\u88c1\u7b56\u7565\u539f\u7406\u7279\u70b9<\/tr>\n<tbody>\n<tr>\n<td>\u56fa\u5b9a\u4f18\u5148\u7ea7<\/td>\n<td>\u9ad8\u4f18\u5148\u7ea7\u8bf7\u6c42\u4f18\u5148\u88ab\u54cd\u5e94<\/td>\n<td>\u4f4e\u5ef6\u8fdf&#xff0c;\u4f46\u4f4e\u4f18\u5148\u7ea7\u8bbe\u5907\u5bb9\u6613\u9965\u997f<\/td>\n<\/tr>\n<tr>\n<td>\u8f6e\u8be2&#xff08;Round-Robin&#xff09;<\/td>\n<td>\u5404\u4e2a\u4e3b\u8bbe\u5907\u8f6e\u6d41\u83b7\u5f97\u8bbf\u95ee\u6743\u9650<\/td>\n<td>\u516c\u5e73\u6027\u597d<\/td>\n<\/tr>\n<tr>\n<td>\u52a0\u6743\u8f6e\u8be2<\/td>\n<td>\u6309\u9884\u8bbe\u6743\u91cd\u5206\u914d\u8bbf\u95ee\u673a\u4f1a<\/td>\n<td>\u53ef\u4ee5\u4eba\u4e3a\u63a7\u5236\u5404\u6a21\u5757\u5e26\u5bbd\u5360\u6bd4<\/td>\n<\/tr>\n<tr>\n<td>QoS\u4ef2\u88c1<\/td>\n<td>\u7ed3\u5408\u4f18\u5148\u7ea7\u3001\u5e26\u5bbd\u3001\u5ef6\u8fdf\u7ea6\u675f\u7efc\u5408\u8c03\u5ea6<\/td>\n<td>\u9002\u914d\u5f02\u6784\u590d\u6742SoC&#xff0c;\u4fdd\u969c\u5b9e\u65f6\u4e1a\u52a1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e3e\u4f8b&#xff1a;\u6444\u50cf\u5934DMA\u5c5e\u4e8e\u5b9e\u65f6\u6570\u636e\u6d41&#xff0c;\u4e00\u65e6\u957f\u65f6\u95f4\u62a2\u4e0d\u5230\u5e26\u5bbd&#xff0c;\u4f1a\u9020\u6210\u7f13\u5b58\u6ea2\u51fa\u3001\u4e22\u5e27\u3002\u56e0\u6b64\u89c6\u89c9SoC\u666e\u904d\u5f15\u5165QoS\u673a\u5236&#xff0c;\u4f18\u5148\u4fdd\u969c\u4f4e\u5ef6\u8fdf\u5b9e\u65f6\u901a\u8def\u3002<\/p>\n<h5>4.4.2 DDR\u5e26\u5bbd\u7ade\u4e89<\/h5>\n<p>DDR\u7406\u8bba\u5e26\u5bbd\u8ba1\u7b97\u516c\u5f0f&#xff1a;<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">B&#061;R\u00d7W8 B&#061;\\\\frac{R\\\\times W}{8} <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0502em\">B<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 2.0463em;vertical-align: -0.686em\"><\/span><span class=\"mord\"><span class=\"mopen nulldelimiter\"><\/span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 1.3603em\"><span class=\"\" style=\"top: -2.314em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">8<\/span><\/span><\/span><span class=\"\" style=\"top: -3.23em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"frac-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3.677em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.0077em\">R<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">W<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.686em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><span class=\"mclose nulldelimiter\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<ul>\n<li><span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">RR<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0077em\">R<\/span><\/span><\/span><\/span><\/span>&#xff1a;\u6570\u636e\u901f\u7387&#xff0c;\u5355\u4f4dMT\/s<\/li>\n<li><span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">WW<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">W<\/span><\/span><\/span><\/span><\/span>&#xff1a;DDR\u6570\u636e\u4f4d\u5bbd&#xff0c;bit<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;3200 MT\/s\u300132bit\u5355\u901a\u9053DDR<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">B&#061;3200\u00d7328&#061;12.8\u00a0GB\/s B&#061;\\\\frac{3200\\\\times32}{8}&#061;12.8\\\\ \\\\text{GB\/s} <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0502em\">B<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 2.0074em;vertical-align: -0.686em\"><\/span><span class=\"mord\"><span class=\"mopen nulldelimiter\"><\/span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 1.3214em\"><span class=\"\" style=\"top: -2.314em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">8<\/span><\/span><\/span><span class=\"\" style=\"top: -3.23em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"frac-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3.677em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">3200<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord\">32<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.686em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><span class=\"mclose nulldelimiter\"><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord\">12.8<\/span><span class=\"mspace\">\u00a0<\/span><span class=\"mord text\"><span class=\"mord\">GB\/s<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>\u5b9e\u9645\u6709\u6548\u5e26\u5bbd\u4f4e\u4e8e\u7406\u8bba\u503c&#xff0c;\u635f\u8017\u6765\u6e90&#xff1a;<\/p>\n<li>DRAM\u56fa\u6709\u65f6\u5e8f\u5f00\u9500&#xff1a;\u884c\u6fc0\u6d3b\u3001\u9884\u5145\u7535\u3001\u5237\u65b0<\/li>\n<li>\u8bfb\u5199\u65b9\u5411\u5207\u6362\u5f00\u9500<\/li>\n<li>\u968f\u673a\u5730\u5740\u8bbf\u95ee\u6548\u7387\u8fdc\u4f4e\u4e8e\u8fde\u7eedBurst\u8bbf\u95ee<\/li>\n<li>\u591a\u4e3b\u8bbe\u5907\u5728\u4e92\u8fde\u3001DDR\u63a7\u5236\u5668\u5904\u4e92\u76f8\u7ade\u4e89<\/li>\n<p>\u6ce8\u610f&#xff1a;DDR\u603b\u5e26\u5bbd\u5145\u8db3\u4e0d\u4ee3\u8868\u65e0\u74f6\u9888&#xff0c;AXI\u4ea4\u53c9\u5f00\u5173\u3001NoC\u94fe\u8def\u3001\u63a7\u5236\u5668\u5185\u90e8\u961f\u5217\u90fd\u53ef\u80fd\u6210\u4e3a\u5c40\u90e8\u74f6\u9888\u3002<\/p>\n<h5>4.4.3 \u5e38\u89c1\u95ee\u9898&#xff1a;CPU\u5360\u7528\u4e0d\u9ad8&#xff0c;\u4f46\u5e27\u7387\u4e0a\u4e0d\u53bb<\/h5>\n<p>CPU\u8d1f\u8f7d\u4f4e\u4e0d\u4ee3\u8868\u7cfb\u7edf\u7b97\u529b\u9971\u548c&#xff0c;\u74f6\u9888\u5f80\u5f80\u51fa\u73b0\u5728\u5b58\u50a8\u4e0e\u6570\u636e\u901a\u8def&#xff1a;<\/p>\n<table>\n<tr>\u74f6\u9888\u7c7b\u578b\u73b0\u8c61\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>DDR\u5e26\u5bbd\u4e0d\u8db3<\/td>\n<td>\u591a\u52a0\u901f\u5668\u5e76\u53d1\u65f6\u5e27\u7387\u660e\u663e\u4e0b\u8dcc<\/td>\n<\/tr>\n<tr>\n<td>AXI\/NoC\u62e5\u585e<\/td>\n<td>\u5185\u5b58\u8bbf\u95ee\u5e73\u5747\u5ef6\u8fdf\u62ac\u9ad8<\/td>\n<\/tr>\n<tr>\n<td>DMA\u540c\u6b65\u963b\u585e<\/td>\n<td>CPU\u7a7a\u95f2&#xff0c;\u7ebf\u7a0b\u963b\u585e\u7b49\u5f85DMA\u4f20\u8f93\u5b8c\u6210<\/td>\n<\/tr>\n<tr>\n<td>NPU\u786c\u4ef6\u6392\u961f<\/td>\n<td>\u63a8\u7406\u4efb\u52a1\u5806\u79ef&#xff0c;\u7b49\u5f85\u52a0\u901f\u5668\u8d44\u6e90<\/td>\n<\/tr>\n<tr>\n<td>Cache Miss\u9891\u7e41<\/td>\n<td>CPU\u9891\u7e41\u7ed5Cache\u8bbf\u95eeDDR<\/td>\n<\/tr>\n<tr>\n<td>\u591a\u6b21\u5185\u5b58\u62f7\u8d1d<\/td>\n<td>\u56fe\u50cf\u5728ISP\u3001NPU\u3001CPU\u4e4b\u95f4\u53cd\u590d\u642c\u8fd0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u793a\u4f8b\u6d41\u91cf\u4f30\u7b97&#xff1a;1920\u00d71080 RAW12\u56fe\u50cf&#xff0c;60FPS<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">B&#061;1920\u00d71080\u00d71.5\u00d760\u2248186.6\u00a0MB\/s B&#061;1920\\\\times1080\\\\times1.5\\\\times60 \\\\approx186.6\\\\ \\\\text{MB\/s} <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0502em\">B<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.7278em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">1920<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.7278em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">1080<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.7278em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">1.5<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6444em\"><\/span><span class=\"mord\">60<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u2248<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord\">186.6<\/span><span class=\"mspace\">\u00a0<\/span><span class=\"mord text\"><span class=\"mord\">MB\/s<\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/>\n\u56fe\u50cf\u6bcf\u591a\u4e00\u6b21DDR\u8bfb\u5199&#xff0c;\u6d41\u91cf\u5c31\u4f1a\u53e0\u52a0&#xff0c;\u591a\u6b21\u62f7\u8d1d\u4f1a\u6210\u500d\u6d88\u8017\u5e26\u5bbd\u3002<\/p>\n<p>\u4f18\u5316\u624b\u6bb5&#xff1a; DMA\u4f20\u8f93\u3001Zero-Copy\u3001DMA-BUF\u3001\u53cc\u7f13\u51b2\u3001\u5f02\u6b65\u6d41\u6c34\u7ebf&#xff0c;\u51cf\u5c11\u6570\u636e\u62f7\u8d1d\u4e0e\u540c\u6b65\u7b49\u5f85\u3002<\/p>\n<p>SoC\u6574\u4f53\u6027\u80fd\u662f\u591a\u7ef4\u5ea6\u5171\u540c\u51b3\u5b9a\u7684\u51fd\u6570&#xff1a;<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u7cfb\u7edf\u6027\u80fd&#061;f(\u7b97\u529b\u3001\u5e26\u5bbd\u3001\u5ef6\u8fdf\u3001\u5e76\u53d1\u3001\u7f13\u5b58\u6548\u7387) \\\\boldsymbol{\\\\text{\u7cfb\u7edf\u6027\u80fd}&#061;f(\\\\text{\u7b97\u529b\u3001\u5e26\u5bbd\u3001\u5ef6\u8fdf\u3001\u5e76\u53d1\u3001\u7f13\u5b58\u6548\u7387})} <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord\"><span class=\"mord\"><span class=\"mord text\"><span class=\"mord cjk_fallback\">\u7cfb\u7edf\u6027\u80fd<\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel mathbf\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mord boldsymbol\" style=\"margin-right: 0.1104em\">f<\/span><span class=\"mopen mathbf\">(<\/span><span class=\"mord text\"><span class=\"mord cjk_fallback\">\u7b97\u529b\u3001\u5e26\u5bbd\u3001\u5ef6\u8fdf\u3001\u5e76\u53d1\u3001\u7f13\u5b58\u6548\u7387<\/span><\/span><span class=\"mclose mathbf\">)<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/>\n\u5d4c\u5165\u5f0f\u89c6\u89c9\u7cfb\u7edf\u4e2d&#xff0c;\u6570\u636e\u6d41\u4e0e\u5185\u5b58\u8bbf\u95ee\u7684\u4f18\u5316&#xff0c;\u6536\u76ca\u7ecf\u5e38\u9ad8\u4e8e\u5355\u7eaf\u63d0\u5347CPU\u4e3b\u9891\u3002<\/p>\n<h3>\u4e94\u3001SoC \u5185\u5b58\u7cfb\u7edf&#xff1a;Cache\u3001MMU\u3001DDR\u3001DMA<\/h3>\n<h4>5.1 \u5185\u5b58\u5c42\u6b21\u7ed3\u6784<\/h4>\n<p>\u5904\u7406\u5668\u5185\u5b58\u5c42\u6b21&#xff08;\u4eceCPU\u89c6\u89d2\u7531\u8fd1\u53ca\u8fdc&#xff09;&#xff1a;<\/p>\n<li>CPU \u5bc4\u5b58\u5668&#xff1a;\u5bb9\u91cf\u6700\u5c0f&#xff0c;\u5ef6\u8fdf\u6700\u4f4e<\/li>\n<li>L1 Cache&#xff1a;\u901a\u5e38\u6bcf\u4e2a\u6838\u5fc3\u72ec\u7acb&#xff0c;\u5206\u4e3a\u6307\u4ee4\u7f13\u5b58\u4e0e\u6570\u636e\u7f13\u5b58<\/li>\n<li>L2 Cache&#xff1a;\u53ef\u80fd\u79c1\u6709\u6216\u591a\u4e2a\u6838\u5fc3\u5171\u4eab<\/li>\n<li>L3 \/ System Cache&#xff1a;\u53ef\u9009\u7684\u66f4\u5927\u5bb9\u91cf\u7cfb\u7edf\u7ea7\u7f13\u5b58<\/li>\n<li>DRAM&#xff1a;\u7247\u5916\u8fd0\u884c\u5185\u5b58&#xff0c;\u5bb9\u91cf\u6700\u5927&#xff0c;\u5ef6\u8fdf\u6700\u9ad8<\/li>\n<p>\u9700\u8981\u91cd\u70b9\u533a\u5206 SRAM\u3001DRAM \u548c TCM&#xff1a;<\/p>\n<table>\n<tr>\u7c7b\u578b\u7279\u70b9\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">SRAM<\/td>\n<td align=\"left\">\u4e0d\u9700\u8981\u52a8\u6001\u5237\u65b0&#xff0c;\u9002\u5408\u7247\u4e0a\u5b58\u50a8&#xff0c;\u901f\u5ea6\u5feb<\/td>\n<td align=\"left\">Cache\u3001\u7247\u4e0a\u5de5\u4f5c\u533a<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">DRAM<\/td>\n<td align=\"left\">\u9ad8\u5bc6\u5ea6\u3001\u4f4e\u6210\u672c&#xff0c;\u901a\u5e38\u4f5c\u4e3a\u5916\u90e8\u5185\u5b58<\/td>\n<td align=\"left\">Linux\u8fd0\u884c\u5185\u5b58\u3001\u5e94\u7528\u6570\u636e\u3001\u56fe\u50cf\u5e27<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">TCM<\/td>\n<td align=\"left\">\u7d27\u8026\u5408\u5185\u5b58&#xff0c;\u5f3a\u8c03\u53ef\u9884\u6d4b\u8bbf\u95ee\u4e0e\u4f4e\u5ef6\u8fdf<\/td>\n<td align=\"left\">\u5b9e\u65f6\u7a0b\u5e8f\u4ee3\u7801\u548c\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">ROM<\/td>\n<td align=\"left\">\u901a\u5e38\u4e0d\u53ef\u968f\u610f\u4fee\u6539\u7684\u975e\u6613\u5931\u5b58\u50a8<\/td>\n<td align=\"left\">Boot ROM<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">Flash<\/td>\n<td align=\"left\">\u975e\u6613\u5931\u6027\u5b58\u50a8&#xff0c;\u53ef\u64e6\u5199<\/td>\n<td align=\"left\">\u56fa\u4ef6\u3001\u6587\u4ef6\u7cfb\u7edf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>TCM \u7684\u4ef7\u503c\u4e0d\u4e00\u5b9a\u662f\u5cf0\u503c\u5e26\u5bbd\u6700\u9ad8&#xff0c;\u800c\u662f\u53ef\u4ee5\u51cf\u5c11\u666e\u901a Cache \u548c\u5171\u4eab\u5185\u5b58\u5c42\u6b21\u5e26\u6765\u7684\u67d0\u4e9b\u65f6\u95f4\u4e0d\u786e\u5b9a\u6027&#xff0c;\u66f4\u9002\u5408\u786c\u5b9e\u65f6\u573a\u666f\u3002<\/p>\n<h4>5.2 MMU&#xff1a;\u865a\u62df\u5730\u5740\u5230\u7269\u7406\u5730\u5740<\/h4>\n<p>\u5728 Linux \u4e2d&#xff0c;\u7528\u6237\u7a0b\u5e8f\u4f7f\u7528\u7684\u901a\u5e38\u662f\u865a\u62df\u5730\u5740\u3002<\/p>\n<p>\u5730\u5740\u7ffb\u8bd1\u7684\u6838\u5fc3\u6d41\u7a0b&#xff1a;<\/p>\n<p>C&#043;&#043; \u5e94\u7528\u7a0b\u5e8f<br \/>\n  \u2502<br \/>\n  \u2502 \u865a\u62df\u5730\u5740 Virtual Address<br \/>\n  \u25bc<br \/>\nMMU \u5185\u5b58\u7ba1\u7406\u5355\u5143<br \/>\n  \u2502<br \/>\n  \u251c\u2500\u2500 TLB \u547d\u4e2d \u2192 \u76f4\u63a5\u8f93\u51fa\u7269\u7406\u5730\u5740<br \/>\n  \u2502<br \/>\n  \u2514\u2500\u2500 TLB \u672a\u547d\u4e2d \u2192 \u6267\u884c\u9875\u8868\u904d\u5386&#xff08;Table Walk&#xff09;<br \/>\n  \u2502<br \/>\n  \u25bc<br \/>\n\u7269\u7406\u5730\u5740 Physical Address<br \/>\n  \u2502<br \/>\n  \u25bc<br \/>\nCache \/ \u7247\u5185\u4e92\u8fde \/ \u5185\u5b58\u63a7\u5236\u5668<br \/>\n  \u2502<br \/>\n  \u25bc<br \/>\n\u5b9e\u9645\u5185\u5b58\u6216\u6620\u5c04\u7684\u8bbe\u5907<\/p>\n<p>MMU\u901a\u8fc7\u591a\u7ea7\u9875\u8868\u5b8c\u6210\u5730\u5740\u7ffb\u8bd1&#xff0c;\u5e76\u901a\u8fc7TLB\u7f13\u5b58\u6700\u8fd1\u4f7f\u7528\u7684\u7ffb\u8bd1\u7ed3\u679c&#xff0c;\u63d0\u5347\u8bbf\u95ee\u6548\u7387\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u9700\u8981\u865a\u62df\u5730\u5740&#xff1f;<\/p>\n<li>\u8fdb\u7a0b\u9694\u79bb&#xff1a;\u4e24\u4e2a\u8fdb\u7a0b\u5373\u4f7f\u770b\u5230\u540c\u6837\u7684\u865a\u62df\u5730\u5740&#xff0c;\u4e5f\u53ef\u4ee5\u6620\u5c04\u5230\u4e0d\u540c\u7269\u7406\u5185\u5b58&#xff0c;\u5b9e\u73b0\u5b89\u5168\u9694\u79bb\u3002<\/li>\n<li>\u7075\u6d3b\u6620\u5c04&#xff1a;\u4e00\u6bb5\u8fde\u7eed\u7684\u865a\u62df\u5730\u5740\u4e0d\u4e00\u5b9a\u5bf9\u5e94\u8fde\u7eed\u7269\u7406\u9875&#xff0c;\u65b9\u4fbf\u5185\u5b58\u7ba1\u7406\u4e0e\u788e\u7247\u5904\u7406\u3002<\/li>\n<li>\u8bbf\u95ee\u63a7\u5236&#xff1a;\u9875\u8868\u53ef\u4ee5\u914d\u7f6e\u8bfb\u5199\u3001\u6267\u884c\u3001\u6743\u9650\u53ca\u5185\u5b58\u7c7b\u578b\u7b49\u5c5e\u6027&#xff0c;\u63d0\u5347\u7cfb\u7edf\u5b89\u5168\u6027\u3002<\/li>\n<p>\u8fd9\u5c31\u89e3\u91ca\u4e86\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u968f\u4fbf\u628a\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u6307\u9488\u4ea4\u7ed9\u8bbe\u5907 DMA \u63a7\u5236\u5668\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p><span class=\"token class-name\">uint8_t<\/span><span class=\"token operator\">*<\/span> buffer <span class=\"token operator\">&#061;<\/span> new <span class=\"token class-name\">uint8_t<\/span><span class=\"token punctuation\">[<\/span><span class=\"token number\">4096<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>buffer \u6307\u5411\u7684\u662f\u5f53\u524d\u8fdb\u7a0b\u7684\u865a\u62df\u5730\u5740\u3002DMA \u63a7\u5236\u5668\u901a\u5e38\u9700\u8981\u7684\u662f\u8bbe\u5907\u53ef\u8bbf\u95ee\u7684 DMA \u5730\u5740&#xff0c;\u5b83\u4e0d\u4e00\u5b9a\u4e0e\u8be5\u6307\u9488\u6216\u8005 CPU \u7269\u7406\u5730\u5740\u76f8\u540c\u3002<\/p>\n<h4>5.3 DMA \u9ad8\u6548\u4f20\u8f93<\/h4>\n<p>DMA&#xff08;Direct Memory Access&#xff09;\u5141\u8bb8\u5177\u5907 DMA \u80fd\u529b\u7684\u786c\u4ef6\u6a21\u5757\u5728\u914d\u7f6e\u5b8c\u6210\u540e\u76f4\u63a5\u6267\u884c\u6570\u636e\u4f20\u8f93&#xff0c;\u4e0d\u9700\u8981 CPU \u9010\u5b57\u8282\u590d\u5236\u3002<\/p>\n<p>\u4e24\u79cd\u4f20\u8f93\u6a21\u5f0f\u5bf9\u6bd4&#xff1a;<\/p>\n<ul>\n<li>CPU \u53c2\u4e0e\u642c\u8fd0&#xff1a;\u5916\u8bbe \u2194 CPU \u2194 \u5185\u5b58&#xff0c;CPU\u5168\u7a0b\u53c2\u4e0e\u6570\u636e\u642c\u8fd0&#xff0c;\u5360\u7528\u8ba1\u7b97\u8d44\u6e90<\/li>\n<li>DMA \u4f20\u8f93&#xff1a;CPU \u4ec5\u8d1f\u8d23\u914d\u7f6e\u4f20\u8f93&#xff0c;DMA\u63a7\u5236\u5668\u81ea\u4e3b\u5b8c\u6210\u5916\u8bbe \u2194 \u5185\u5b58\u7684\u6570\u636e\u642c\u8fd0<\/li>\n<\/ul>\n<p>CPU \u4e3b\u8981\u8d1f\u8d23\u914d\u7f6e\u548c\u5b8c\u6210\u5904\u7406&#xff0c;\u4e0d\u5fc5\u9010\u5b57\u8282\u53c2\u4e0e\u6570\u636e\u642c\u8fd0&#xff1b;\u5b9e\u9645\u4f20\u8f93\u4ecd\u4f1a\u5360\u7528\u4e92\u8fde\u53ca\u5185\u5b58\u8d44\u6e90\u3002<\/p>\n<p>\u4ee5\u6444\u50cf\u5934\u91c7\u96c6\u4e3a\u4f8b\u7684\u5178\u578b\u6570\u636e\u6d41&#xff1a;<\/p>\n<p>\u6444\u50cf\u5934 Sensor<br \/>\n      \u2502<br \/>\n      \u25bc<br \/>\nMIPI CSI-2 \u63a5\u6536\u5668<br \/>\n      \u2502<br \/>\n      \u25bc<br \/>\n\u91c7\u96c6 DMA \u5f15\u64ce<br \/>\n      \u2502<br \/>\n      \u25bc<br \/>\n    DDR Buffer<br \/>\n      \u2502<br \/>\n      \u25bc<br \/>\nDMA \u5b8c\u6210\u4e2d\u65ad<br \/>\n      \u2502<br \/>\n      \u25bc<br \/>\nCPU \/ Linux \u9a71\u52a8\u5904\u7406<\/p>\n<p>\u5b9e\u9645 SoC \u4e5f\u53ef\u80fd\u91c7\u7528\u66f4\u76f4\u63a5\u7684 ISP \u6d41\u5f0f\u5904\u7406\u8def\u5f84&#xff0c;\u4e0d\u8981\u6c42\u6bcf\u4e00\u7ea7\u90fd\u5148\u5199\u5165 DDR\u3002<\/p>\n<h4>5.4 Cache Coherency&#xff1a;DMA \u5e38\u89c1\u95ee\u9898<\/h4>\n<p>\u5047\u8bbe\u6267\u884c\u5e8f\u5217&#xff1a;<\/p>\n<li>CPU \u4fee\u6539\u4e86\u67d0\u5757\u56fe\u50cf Buffer\u3002<\/li>\n<li>\u65b0\u6570\u636e\u8fd8\u505c\u7559\u5728 CPU Cache \u4e2d&#xff0c;\u672a\u5199\u56de DDR\u3002<\/li>\n<li>DMA \u8bbe\u5907\u51c6\u5907\u8bfb\u53d6\u8fd9\u5757 Buffer\u3002<\/li>\n<li>\u8bbe\u5907\u4ece DDR \u8bfb\u5230\u4e86\u65e7\u6570\u636e&#xff0c;\u5bfc\u81f4\u6570\u636e\u4e0d\u4e00\u81f4\u3002<\/li>\n<p>\u8fd9\u662f\u5178\u578b\u7684\u7f13\u5b58\u4e00\u81f4\u6027\u95ee\u9898\u4e4b\u4e00\u3002<\/p>\n<p>Linux \u63d0\u4f9b DMA API \u6765\u5904\u7406\u8bbe\u5907\u5730\u5740\u6620\u5c04\u3001\u7f13\u5b58\u540c\u6b65\u548c Buffer \u751f\u547d\u5468\u671f\u7ba1\u7406\u3002<\/p>\n<p>\u5176\u4e2d\u4e24\u7c7b\u5e38\u89c1\u6620\u5c04\u65b9\u5f0f&#xff1a;<\/p>\n<table>\n<tr>DMA \u7c7b\u578b\u5e38\u89c1 API\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">Coherent DMA \u4e00\u81f4\u6027 DMA<\/td>\n<td align=\"left\">dma_alloc_coherent()<\/td>\n<td align=\"left\">\u63cf\u8ff0\u7b26\u73af\u3001\u5171\u4eab\u63a7\u5236\u7ed3\u6784<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">Streaming DMA \u6d41\u5f0f DMA<\/td>\n<td align=\"left\">dma_map_single()\u3001dma_map_sg() \u7b49<\/td>\n<td align=\"left\">\u56fe\u50cf\u5e27\u3001\u7f51\u7edc\u62a5\u6587\u7b49\u6570\u636e\u4f20\u8f93<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5bf9\u4e8e\u975e\u786c\u4ef6\u4e00\u81f4\u6027\u7684 Streaming DMA&#xff0c;\u9700\u8981\u6309\u9a71\u52a8 API \u7ea6\u5b9a&#xff0c;\u5728 CPU \u4e0e\u8bbe\u5907\u4e4b\u95f4\u8f6c\u6362 Buffer \u7684\u4f7f\u7528\u6743\u5e76\u6267\u884c\u6240\u9700\u540c\u6b65\u3002<\/p>\n<p>\u63a5\u6536\u6d41\u7a0b\u662f&#xff1a;<\/p>\n<p>\u5206\u914d Buffer<br \/>\n     \u2193<br \/>\n\u6620\u5c04\u4e3a DMA \u5730\u5740<br \/>\n     \u2193<br \/>\n\u4ea4\u7ed9\u8bbe\u5907\u5199\u5165<br \/>\n     \u2193<br \/>\n\u7b49\u5f85 DMA \u5b8c\u6210<br \/>\n     \u2193<br \/>\n\u540c\u6b65\u81f3 CPU \u53ef\u8bbf\u95ee\u72b6\u6001<br \/>\n     \u2193<br \/>\nCPU \u8bfb\u53d6\u6570\u636e<br \/>\n     \u2193<br \/>\n\u89e3\u9664\u6620\u5c04\u6216\u51c6\u5907\u518d\u6b21\u4ea4\u7ed9\u8bbe\u5907<\/p>\n<p>\u53e6\u5916&#xff0c;Cache Coherency \u4e0d\u7b49\u4e8e Memory Ordering\u3002\u5373\u4f7f\u4f7f\u7528 Coherent DMA&#xff0c;\u4e5f\u53ef\u80fd\u4ecd\u7136\u9700\u8981\u6b63\u786e\u7684\u5185\u5b58\u5c4f\u969c\u6765\u4fdd\u8bc1\u63cf\u8ff0\u7b26\u5b57\u6bb5\u548c\u72b6\u6001\u4f4d\u7684\u8bbf\u95ee\u987a\u5e8f\u3002<\/p>\n<h4>5.5 IOMMU \/ SMMU<\/h4>\n<p>CPU \u901a\u8fc7 MMU \u5b8c\u6210\u865a\u62df\u5730\u5740\u5230\u7269\u7406\u5730\u5740\u7684\u8f6c\u6362&#xff0c;\u800c\u5728\u90e8\u5206 SoC \u4e0a&#xff0c;IOMMU&#xff08;Input\/Output Memory Management Unit&#xff0c;\u8f93\u5165\u8f93\u51fa\u5185\u5b58\u7ba1\u7406\u5355\u5143&#xff09;\u4e3a DMA \u5916\u8bbe\u63d0\u4f9b\u5730\u5740\u7ffb\u8bd1\u4e0e\u5185\u5b58\u8bbf\u95ee\u9694\u79bb\u80fd\u529b\u3002<\/p>\n<p>Arm \u67b6\u6784\u4e0b\u7684 SMMU&#xff08;System Memory Management Unit&#xff0c;\u7cfb\u7edf\u5185\u5b58\u7ba1\u7406\u5355\u5143&#xff09;\u662f IOMMU \u7684\u6807\u51c6\u786c\u4ef6\u5b9e\u73b0\u3002<\/p>\n<p>#mermaid-svg-7MkfuOwYEKDdfRcz{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-7MkfuOwYEKDdfRcz .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-7MkfuOwYEKDdfRcz .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-7MkfuOwYEKDdfRcz .error-icon{fill:#552222;}#mermaid-svg-7MkfuOwYEKDdfRcz .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-7MkfuOwYEKDdfRcz .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-7MkfuOwYEKDdfRcz .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-7MkfuOwYEKDdfRcz .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-7MkfuOwYEKDdfRcz .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-7MkfuOwYEKDdfRcz .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-7MkfuOwYEKDdfRcz .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-7MkfuOwYEKDdfRcz .marker{fill:#333333;stroke:#333333;}#mermaid-svg-7MkfuOwYEKDdfRcz .marker.cross{stroke:#333333;}#mermaid-svg-7MkfuOwYEKDdfRcz svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-7MkfuOwYEKDdfRcz p{margin:0;}#mermaid-svg-7MkfuOwYEKDdfRcz .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-7MkfuOwYEKDdfRcz .cluster-label text{fill:#333;}#mermaid-svg-7MkfuOwYEKDdfRcz .cluster-label span{color:#333;}#mermaid-svg-7MkfuOwYEKDdfRcz .cluster-label span p{background-color:transparent;}#mermaid-svg-7MkfuOwYEKDdfRcz .label text,#mermaid-svg-7MkfuOwYEKDdfRcz span{fill:#333;color:#333;}#mermaid-svg-7MkfuOwYEKDdfRcz .node rect,#mermaid-svg-7MkfuOwYEKDdfRcz .node circle,#mermaid-svg-7MkfuOwYEKDdfRcz .node ellipse,#mermaid-svg-7MkfuOwYEKDdfRcz .node polygon,#mermaid-svg-7MkfuOwYEKDdfRcz .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-7MkfuOwYEKDdfRcz .rough-node .label text,#mermaid-svg-7MkfuOwYEKDdfRcz .node .label text,#mermaid-svg-7MkfuOwYEKDdfRcz .image-shape .label,#mermaid-svg-7MkfuOwYEKDdfRcz .icon-shape .label{text-anchor:middle;}#mermaid-svg-7MkfuOwYEKDdfRcz .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-7MkfuOwYEKDdfRcz .rough-node .label,#mermaid-svg-7MkfuOwYEKDdfRcz .node .label,#mermaid-svg-7MkfuOwYEKDdfRcz .image-shape .label,#mermaid-svg-7MkfuOwYEKDdfRcz .icon-shape .label{text-align:center;}#mermaid-svg-7MkfuOwYEKDdfRcz .node.clickable{cursor:pointer;}#mermaid-svg-7MkfuOwYEKDdfRcz .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-7MkfuOwYEKDdfRcz .arrowheadPath{fill:#333333;}#mermaid-svg-7MkfuOwYEKDdfRcz .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-7MkfuOwYEKDdfRcz .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-7MkfuOwYEKDdfRcz .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-7MkfuOwYEKDdfRcz .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-7MkfuOwYEKDdfRcz .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-7MkfuOwYEKDdfRcz .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-7MkfuOwYEKDdfRcz .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-7MkfuOwYEKDdfRcz .cluster text{fill:#333;}#mermaid-svg-7MkfuOwYEKDdfRcz .cluster span{color:#333;}#mermaid-svg-7MkfuOwYEKDdfRcz div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-7MkfuOwYEKDdfRcz .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-7MkfuOwYEKDdfRcz rect.text{fill:none;stroke-width:0;}#mermaid-svg-7MkfuOwYEKDdfRcz .icon-shape,#mermaid-svg-7MkfuOwYEKDdfRcz .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-7MkfuOwYEKDdfRcz .icon-shape p,#mermaid-svg-7MkfuOwYEKDdfRcz .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-7MkfuOwYEKDdfRcz .icon-shape .label rect,#mermaid-svg-7MkfuOwYEKDdfRcz .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-7MkfuOwYEKDdfRcz .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-7MkfuOwYEKDdfRcz .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-7MkfuOwYEKDdfRcz :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}#mermaid-svg-7MkfuOwYEKDdfRcz .cpu_style&gt;*{fill:#eef6ff!important;stroke:#4a90e2!important;stroke-width:1.5px!important;color:#1f3b5c!important;}#mermaid-svg-7MkfuOwYEKDdfRcz .cpu_style span{fill:#eef6ff!important;stroke:#4a90e2!important;stroke-width:1.5px!important;color:#1f3b5c!important;}#mermaid-svg-7MkfuOwYEKDdfRcz .cpu_style tspan{fill:#1f3b5c!important;}#mermaid-svg-7MkfuOwYEKDdfRcz .dma_style&gt;*{fill:#fff7e6!important;stroke:#f5a623!important;stroke-width:1.5px!important;color:#6b4a00!important;}#mermaid-svg-7MkfuOwYEKDdfRcz .dma_style span{fill:#fff7e6!important;stroke:#f5a623!important;stroke-width:1.5px!important;color:#6b4a00!important;}#mermaid-svg-7MkfuOwYEKDdfRcz .dma_style tspan{fill:#6b4a00!important;}#mermaid-svg-7MkfuOwYEKDdfRcz .mem_style&gt;*{fill:#f3eefe!important;stroke:#8e6bd8!important;stroke-width:1.5px!important;color:#3d2a6b!important;}#mermaid-svg-7MkfuOwYEKDdfRcz .mem_style span{fill:#f3eefe!important;stroke:#8e6bd8!important;stroke-width:1.5px!important;color:#3d2a6b!important;}#mermaid-svg-7MkfuOwYEKDdfRcz .mem_style tspan{fill:#3d2a6b!important;}<span class=\"nodeLabel\"><\/p>\n<p>DMA \u8bbf\u95ee\u8def\u5f84<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>CPU \u8bbf\u95ee\u8def\u5f84<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span style=\"color:#1f3b5c !important\" class=\"nodeLabel\"><\/p>\n<p>CPU<\/p>\n<p><\/span><span style=\"color:#1f3b5c !important\" class=\"nodeLabel\"><\/p>\n<p>MMU \u5730\u5740\u8f6c\u6362<\/p>\n<p><\/span><span style=\"color:#1f3b5c !important\" class=\"nodeLabel\"><\/p>\n<p>CPU \u7269\u7406\u5730\u5740\u7a7a\u95f4<\/p>\n<p><\/span><span style=\"color:#6b4a00 !important\" class=\"nodeLabel\"><\/p>\n<p>DMA \u8bbe\u5907<\/p>\n<p><\/span><span style=\"color:#6b4a00 !important\" class=\"nodeLabel\"><\/p>\n<p>IOMMU \/ SMMU<\/p>\n<p><\/span><span style=\"color:#6b4a00 !important\" class=\"nodeLabel\"><\/p>\n<p>\u7cfb\u7edf\u7269\u7406\u5730\u5740\u7a7a\u95f4<\/p>\n<p><\/span><span style=\"color:#3d2a6b !important\" class=\"nodeLabel\"><\/p>\n<p>DRAM \u5185\u5b58<\/p>\n<p><\/span><\/p>\n<h5>5.5.1 IOMMU \u80fd\u529b<\/h5>\n<table>\n<tr>\u529f\u80fd\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u5730\u5740\u8f6c\u6362<\/td>\n<td>\u5c06\u5916\u8bbe\u4f7f\u7528\u7684 IOVA \u7ffb\u8bd1\u6210\u7cfb\u7edf\u771f\u5b9e\u7269\u7406\u5730\u5740<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58\u8bbf\u95ee\u9694\u79bb<\/td>\n<td>\u9650\u5b9a\u5916\u8bbe\u4ec5\u80fd\u8bbf\u95ee\u6388\u6743\u8303\u56f4\u5185\u7684\u5185\u5b58\u533a\u57df<\/td>\n<\/tr>\n<tr>\n<td>\u975e\u8fde\u7eed\u5185\u5b58\u805a\u5408\u6620\u5c04<\/td>\n<td>\u628a\u591a\u5757\u79bb\u6563\u7269\u7406\u9875\u6620\u5c04\u4e3a\u4e00\u6bb5\u8fde\u7eed\u7684 IOVA \u5730\u5740\u7a7a\u95f4<\/td>\n<\/tr>\n<tr>\n<td>\u865a\u62df\u5316\u652f\u6491<\/td>\n<td>\u7ed9\u76f4\u901a\/\u534a\u865a\u62df\u5316\u8bbe\u5907\u63d0\u4f9b\u865a\u62df\u673a\u4fa7DMA\u5730\u5740\u7ffb\u8bd1\u4e0e\u9694\u79bb\u4fdd\u62a4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>5.5.2 DMA \u5f15\u5165 IOMMU \u7684\u610f\u4e49<\/h5>\n<p>\u4ee5 NPU DMA \u8bfb\u53d6\u56fe\u50cf\u7f13\u51b2\u533a\u4e3a\u4f8b&#xff1a;\u56fe\u50cf\u5e27\u7f13\u51b2\u5728\u7269\u7406\u5185\u5b58\u4e0a\u53ef\u80fd\u662f\u788e\u7247\u5316\u5206\u5e03\u7684&#xff0c;\u501f\u52a9 IOMMU&#xff0c;NPU \u53ea\u9700\u8981\u64cd\u4f5c\u4e00\u6bb5\u8fde\u7eed\u7684 IOVA \u533a\u95f4&#xff0c;\u786c\u4ef6\u81ea\u52a8\u5b8c\u6210\u5411\u79bb\u6563\u7269\u7406\u9875\u7684\u6620\u5c04&#xff0c;\u7701\u53bb CPU \u989d\u5916\u7684\u6570\u636e\u62f7\u8d1d\u3001\u62fc\u63a5\u5f00\u9500\u3002<\/p>\n<p>NPU\u89c6\u89d2IOVA&#xff1a;0x8000 \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 0xAFFF&#xff08;\u8fde\u7eed&#xff09;<br \/>\n                    \u2193 IOMMU\u6620\u5c04<br \/>\n            \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n            \u25bc       \u25bc       \u25bc<br \/>\n        Page A   Page B   Page C<br \/>\n        0x1000   0x9000   0x5000&#xff08;\u7269\u7406\u4e0d\u8fde\u7eed&#xff09;<\/p>\n<p>\u540c\u65f6 IOMMU \u652f\u6301\u8bbf\u95ee\u6743\u9650\u914d\u7f6e&#xff0c;\u5916\u8bbe\u8bbf\u95ee\u672a\u6620\u5c04\u6216\u8005\u65e0\u6743\u9650\u7684\u5730\u5740\u65f6\u4f1a\u89e6\u53d1 IOMMU Fault&#xff0c;\u963b\u6b62\u975e\u6cd5 DMA \u76f4\u63a5\u7be1\u6539\u5176\u4ed6\u5185\u5b58&#xff0c;\u63d0\u5347\u7cfb\u7edf\u5b89\u5168\u6027\u3002<\/p>\n<h5>5.5.3 MMU \u4e0e IOMMU \u5bf9\u6bd4<\/h5>\n<table>\n<tr>\u5bf9\u6bd4\u9879MMUIOMMU<\/tr>\n<tbody>\n<tr>\n<td>\u670d\u52a1\u4e3b\u4f53<\/td>\n<td>CPU<\/td>\n<td>DMA\u5916\u8bbe<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u5165\u5730\u5740<\/td>\n<td>CPU\u865a\u62df\u5730\u5740 VA<\/td>\n<td>I\/O\u865a\u62df\u5730\u5740 IOVA<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u51fa\u5730\u5740<\/td>\n<td>\u7269\u7406\u5730\u5740 PA<\/td>\n<td>\u7269\u7406\u5730\u5740 PA<\/td>\n<\/tr>\n<tr>\n<td>\u76ee\u6807<\/td>\n<td>\u8fdb\u7a0b\u5730\u5740\u7a7a\u95f4\u9694\u79bb\u3001\u64cd\u4f5c\u7cfb\u7edf\u865a\u62df\u5185\u5b58<\/td>\n<td>DMA\u5730\u5740\u7ffb\u8bd1\u3001\u5916\u8bbe\u5185\u5b58\u8bbf\u95ee\u9694\u79bb<\/td>\n<\/tr>\n<tr>\n<td>Arm\u5b9e\u73b0<\/td>\n<td>CPU\u5185\u7f6eMMU<\/td>\n<td>SMMU<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8865\u5145\u8981\u70b9&#xff1a;<\/p>\n<li>IOMMU \u4e0d\u662f DMA \u7684\u5fc5\u5907\u786c\u4ef6\u3002\u65e0 IOMMU \u7684 DMA \u8bbe\u5907\u76f4\u63a5\u4f7f\u7528\u7269\u7406\u5730\u5740\u8bbf\u95ee\u5185\u5b58&#xff1b;\u5e26 IOMMU \u7684\u5e73\u53f0\u4e00\u822c\u7531\u9a71\u52a8\u4f9d\u6258 Linux DMA API \u7ba1\u7406\u6620\u5c04\u8868\u3002<\/li>\n<li>IOMMU \u53ea\u8d1f\u8d23\u5730\u5740\u7ffb\u8bd1\u548c\u6743\u9650\u68c0\u67e5&#xff0c;\u4e0d\u81ea\u52a8\u5904\u7406 Cache-DMA \u4e00\u81f4\u6027&#xff0c;\u7f13\u5b58\u540c\u6b65\u4ecd\u7136\u8981\u4f9d\u6258\u786c\u4ef6 SMMU \u4e00\u81f4\u6027\u80fd\u529b\u6216\u8005 DMA API \u663e\u5f0f\u5237\u7f13\u5b58\u3002<\/li>\n<p>MMU \u89e3\u51b3 CPU \u5b89\u5168\u3001\u7075\u6d3b\u8bbf\u95ee\u5185\u5b58\u7684\u95ee\u9898&#xff1b;IOMMU&#xff08;SMMU&#xff09;\u89e3\u51b3 DMA \u5916\u8bbe\u5b89\u5168\u3001\u7075\u6d3b\u8bbf\u95ee\u5185\u5b58\u7684\u95ee\u9898\u3002<\/p>\n<h3>\u516d\u3001SoC \u7684\u4e2d\u65ad\u7cfb\u7edf\u4e0e\u5916\u8bbe\u63a7\u5236<\/h3>\n<h4>6.1 \u4e2d\u65ad\u63a7\u5236\u5668<\/h4>\n<p>\u5728 Cortex-A \u7cfb\u7edf\u4e2d&#xff0c;\u5e38\u89c1\u7684\u4e2d\u65ad\u63a7\u5236\u5668\u662f Arm GIC&#xff08;Generic Interrupt Controller&#xff09;\u3002<\/p>\n<p> \u5916\u8bbe A \u2500\u2500 IRQ \u2500\u2500\u2510<br \/>\n \u5916\u8bbe B \u2500\u2500 IRQ \u2500\u2500\u2524<br \/>\n \u5b9a\u65f6\u5668 \u2500\u2500 IRQ \u2500\u2500\u253c\u2500\u2500\u25ba GIC \u2500\u2500\u25ba Cortex-A CPU<br \/>\n \u5916\u8bbe C \u2500\u2500 IRQ \u2500\u2500\u2518<\/p>\n<p>GIC \u8d1f\u8d23\u4e2d\u65ad\u7684\u8def\u7531\u3001\u4f7f\u80fd\u3001\u4f18\u5148\u7ea7\u53ca\u76ee\u6807\u5904\u7406\u5668\u9009\u62e9\u7b49\u529f\u80fd\u3002<\/p>\n<p>\u5728 GICv3 \u4e2d&#xff0c;\u5e38\u89c1\u4e2d\u65ad\u5206\u7c7b\u5305\u62ec&#xff1a;<\/p>\n<table>\n<tr>\u7c7b\u578b\u7f29\u5199\u540d\u79f0\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">SGI<\/td>\n<td align=\"left\">Software Generated Interrupt<\/td>\n<td align=\"left\">\u8f6f\u4ef6\u751f\u6210&#xff0c;\u5e38\u7528\u4e8e\u6838\u95f4\u901a\u4fe1<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">PPI<\/td>\n<td align=\"left\">Private Peripheral Interrupt<\/td>\n<td align=\"left\">\u4e0e\u7279\u5b9a\u5904\u7406\u5668\u76f8\u5173\u7684\u79c1\u6709\u4e2d\u65ad<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">SPI<\/td>\n<td align=\"left\">Shared Peripheral Interrupt<\/td>\n<td align=\"left\">\u9762\u5411\u5171\u4eab\u5916\u8bbe\u7684\u5171\u4eab\u4e2d\u65ad<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">LPI<\/td>\n<td align=\"left\">Locality-specific Peripheral Interrupt<\/td>\n<td align=\"left\">\u652f\u6301\u6d88\u606f\u5f0f\u4e2d\u65ad\u3001\u6269\u5c55\u4e2d\u65ad\u7b49\u573a\u666f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Cortex-M \u7cfb\u7edf\u5219\u901a\u5e38\u901a\u8fc7 NVIC \u5904\u7406\u5f02\u5e38\u548c\u4e2d\u65ad&#xff0c;\u4f53\u7cfb\u7ed3\u6784\u4e0e Cortex-A \u7684 GIC \u4e0d\u540c\u3002<\/p>\n<h4>6.2 \u4e00\u4e2a Linux \u9a71\u52a8\u7684\u4e2d\u65ad\u5904\u7406\u6d41\u7a0b<\/h4>\n<p>\u5047\u8bbe UART \u6536\u5230\u6570\u636e&#xff0c;\u4e2d\u65ad\u5904\u7406\u94fe\u8def&#xff1a;UART\u786c\u4ef6\u6536\u5230\u6570\u636e \u2192 \u786c\u4ef6\u4e2d\u65ad\u4fe1\u53f7 \u2192 GIC \u4e2d\u65ad\u8def\u7531\u4e0e\u4ef2\u88c1 \u2192 CPU \u8fdb\u5165\u4e2d\u65ad\u5f02\u5e38\u5904\u7406 \u2192 \u9a71\u52a8 IRQ Handler \u6267\u884c \u2192 \u8bfb\u53d6\u72b6\u6001\u5bc4\u5b58\u5668 \/ \u786e\u8ba4\u4e2d\u65ad \u2192 \u8c03\u5ea6\u540e\u7eed\u6570\u636e\u5904\u7406&#xff08;tasklet\/\u5de5\u4f5c\u961f\u5217\u7b49&#xff09;\u2192 \u5524\u9192\u7b49\u5f85\u7684\u5e94\u7528\u7ebf\u7a0b<\/p>\n<p>\u5b9e\u9645\u9a71\u52a8\u4e2d&#xff0c;\u5e94\u5c3d\u91cf\u907f\u514d\u5728\u4e0d\u5141\u8bb8\u7761\u7720\u7684\u4e2d\u65ad\u4e0a\u4e0b\u6587\u6267\u884c\u957f\u65f6\u95f4\u6216\u53ef\u80fd\u963b\u585e\u7684\u64cd\u4f5c\u3002<\/p>\n<p>Linux \u53ef\u4ee5\u4f7f\u7528\u7ebf\u7a0b\u5316\u4e2d\u65ad\u7b49\u673a\u5236\u5c06\u66f4\u591a\u5904\u7406\u79fb\u81f3\u53ef\u8c03\u5ea6\u4e0a\u4e0b\u6587&#xff0c;\u4f46\u5982\u4f55\u5206\u914d\u5904\u7406\u5de5\u4f5c\u53d6\u51b3\u4e8e\u9a71\u52a8\u548c\u5ef6\u8fdf\u9700\u6c42\u3002<\/p>\n<h4>6.3 MMIO&#xff1a;CPU \u63a7\u5236\u786c\u4ef6\u5bc4\u5b58\u5668<\/h4>\n<p>SoC \u4e2d\u5927\u91cf\u63a7\u5236\u5668\u901a\u8fc7 MMIO&#xff08;Memory-Mapped I\/O&#xff09;\u66b4\u9732\u5bc4\u5b58\u5668\u3002<\/p>\n<p>\u4f8b\u5982&#xff0c;\u67d0\u4e2a\u5047\u8bbe\u7684\u63a7\u5236\u5bc4\u5b58\u5668\u4f4d\u4e8e\u7269\u7406\u5730\u5740\u7a7a\u95f4&#xff1a;<\/p>\n<p>0x4000_1000  CONTROL \u63a7\u5236\u5bc4\u5b58\u5668<br \/>\n0x4000_1004  STATUS  \u72b6\u6001\u5bc4\u5b58\u5668<br \/>\n0x4000_1008  IRQ_ENABLE \u4e2d\u65ad\u4f7f\u80fd\u5bc4\u5b58\u5668<\/p>\n<p>CPU \u901a\u8fc7\u89c4\u5b9a\u7684\u5185\u5b58\u8bbf\u95ee\u673a\u5236\u8bfb\u53d6\u6216\u5199\u5165\u5bc4\u5b58\u5668\u3002<\/p>\n<p>\u5728 Linux \u5185\u6838\u9a71\u52a8\u4e2d\u7684\u64cd\u4f5c\u65b9\u5f0f&#xff1a;<\/p>\n<p><span class=\"token comment\">\/* reg_base \u5fc5\u987b\u4e8b\u5148\u901a\u8fc7\u6b63\u786e\u7684\u5185\u6838\u8d44\u6e90\u6620\u5c04\u83b7\u53d6 *\/<\/span><br \/>\nu32 status <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">readl<\/span><span class=\"token punctuation\">(<\/span>reg_base <span class=\"token operator\">&#043;<\/span> STATUS_OFFSET<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token function\">writel<\/span><span class=\"token punctuation\">(<\/span>CTRL_ENABLE<span class=\"token punctuation\">,<\/span> reg_base <span class=\"token operator\">&#043;<\/span> CONTROL_OFFSET<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8fd9\u91cc\u4f7f\u7528\u7684\u662f Linux \u5185\u6838 MMIO \u63a5\u53e3&#xff0c;\u800c\u4e0d\u662f\u7528\u6237\u7a7a\u95f4\u76f4\u63a5\u89e3\u5f15\u7528\u7269\u7406\u5730\u5740\u3002<\/p>\n<p>\u5f00\u53d1\u4e00\u4e2a\u5916\u8bbe\u9a71\u52a8&#xff0c;\u81f3\u5c11\u9700\u8981\u638c\u63e1&#xff1a;\u5bc4\u5b58\u5668\u6620\u5c04\u3001\u4f4d\u57df\u542b\u4e49\u3001\u4e2d\u65ad\u7f16\u53f7\u3001\u65f6\u949f\u6765\u6e90\u3001\u590d\u4f4d\u63a7\u5236\u548c DMA \u914d\u7f6e\u3002\u8fd9\u4e9b\u4fe1\u606f\u4e00\u822c\u90fd\u5728\u5bf9\u5e94 SoC \u7684 Reference Manual \u4e2d\u3002<\/p>\n<h3>\u4e03\u3001SoC \u542f\u52a8\u6d41\u7a0b&#xff1a;\u4ece\u4e0a\u7535\u5230 Linux<\/h3>\n<p>SoC \u4e0a\u7535\u540e&#xff0c;\u901a\u5e38\u9700\u8981\u7ecf\u8fc7\u4e00\u6761\u7531\u786c\u4ef6\u3001\u56fa\u4ef6\u548c\u64cd\u4f5c\u7cfb\u7edf\u7ec4\u6210\u7684\u542f\u52a8\u94fe\u3002<\/p>\n<h4>7.1  ARM Linux SoC \u542f\u52a8\u8fc7\u7a0b<\/h4>\n<li>Power-on \/ Reset&#xff1a;PMIC \u4f9b\u7535\u3001\u590d\u4f4d\u91ca\u653e\u3001\u542f\u52a8\u6a21\u5f0f\u786e\u5b9a<\/li>\n<li>Boot ROM&#xff1a;\u7247\u5185\u56fa\u5316\u4ee3\u7801&#xff0c;\u8bfb\u53d6\u542f\u52a8\u4ecb\u8d28&#xff0c;\u52a0\u8f7d\u4e0b\u4e00\u9636\u6bb5\u56fa\u4ef6<\/li>\n<li>Early Bootloader \/ SPL&#xff1a;\u65e9\u671f\u786c\u4ef6\u521d\u59cb\u5316\u3001DDR \u521d\u59cb\u5316<\/li>\n<li>Trusted Firmware \/ U-Boot&#xff1a;\u5b89\u5168\u56fa\u4ef6\u521d\u59cb\u5316\u3001\u52a0\u8f7d\u5185\u6838\u53ca\u8bbe\u5907\u6811<\/li>\n<li>Linux Kernel&#xff1a;\u5185\u5b58\u7ba1\u7406\u3001\u4e2d\u65ad\u3001\u8bbe\u5907\u9a71\u52a8\u3001\u8c03\u5ea6\u5668\u521d\u59cb\u5316<\/li>\n<li>Init \/ Root Filesystem&#xff1a;\u6302\u8f7d\u6839\u6587\u4ef6\u7cfb\u7edf\u3001\u542f\u52a8\u7528\u6237\u7a7a\u95f4<\/li>\n<li>Application&#xff1a;\u542f\u52a8\u4e1a\u52a1\u670d\u52a1\u3001\u611f\u77e5\u7b97\u6cd5\u3001\u5e94\u7528\u7a0b\u5e8f<\/li>\n<p>\u8fd9\u662f\u7528\u4e8e\u7406\u89e3\u7684\u901a\u7528\u542f\u52a8\u6a21\u578b\u3002\u4e0d\u540c SoC \u53ef\u80fd\u7701\u7565\u67d0\u4e9b\u9636\u6bb5\u3001\u8c03\u6574\u987a\u5e8f\u6216\u4f7f\u7528\u591a\u4e2a\u5e76\u884c\u542f\u52a8\u5904\u7406\u5668&#xff0c;\u4e0d\u80fd\u5c06\u5b83\u5f53\u4f5c\u6240\u6709\u5e73\u53f0\u90fd\u76f8\u540c\u7684\u56fa\u5b9a\u6d41\u7a0b\u3002<\/p>\n<h4>7.2 Boot ROM<\/h4>\n<p>Boot ROM \u662f\u56fa\u5316\u5728\u82af\u7247\u5185\u7684\u65e9\u671f\u542f\u52a8\u4ee3\u7801&#xff0c;\u4e0d\u53ef\u7531\u7528\u6237\u4fee\u6539\u3002<\/p>\n<p>\u5176\u5e38\u89c1\u804c\u8d23\u5305\u62ec\u8bfb\u53d6\u542f\u52a8\u914d\u7f6e\u5f15\u811a\u3001\u9009\u62e9\u542f\u52a8\u4ecb\u8d28&#xff08;eMMC\u3001SD\u3001SPI Flash\u3001USB\u7b49&#xff09;\u3001\u52a0\u8f7d\u4e0b\u4e00\u9636\u6bb5\u56fa\u4ef6&#xff0c;\u4ee5\u53ca\u5728\u652f\u6301\u5b89\u5168\u542f\u52a8\u7684\u7cfb\u7edf\u4e2d\u6267\u884c\u5fc5\u8981\u7684\u955c\u50cf\u9a8c\u8bc1\u3002<\/p>\n<p>\u56e0\u4e3a Linux \u5185\u6838\u901a\u5e38\u4f9d\u8d56 DRAM \u7b49\u786c\u4ef6\u73af\u5883&#xff0c;\u800c\u8fd9\u4e9b\u73af\u5883\u5c1a\u672a\u5b8c\u5168\u5efa\u7acb&#xff0c;\u6240\u4ee5\u9700\u8981\u524d\u9762\u7684\u542f\u52a8\u56fa\u4ef6\u9010\u6b65\u5b8c\u6210\u786c\u4ef6\u521d\u59cb\u5316\u3002<\/p>\n<h4>7.3 U-Boot \u4e0e SPL<\/h4>\n<p>U-Boot \u5b98\u65b9\u5c06 SPL \u5b9a\u4e49\u4e3a\u4e00\u4e2a\u8f83\u5c0f\u7684\u8f85\u52a9\u7a0b\u5e8f&#xff0c;\u901a\u5e38\u7528\u4e8e\u521d\u59cb\u5316 SDRAM \u5e76\u52a0\u8f7d\u5b8c\u6574 U-Boot \u6216\u5176\u4ed6\u56fa\u4ef6\u3002<\/p>\n<p>\u56e0\u6b64&#xff0c;\u5f88\u591a\u5e73\u53f0\u4f1a\u91c7\u7528\u4e8c\u7ea7Bootloader\u6d41\u7a0b&#xff1a;Boot ROM \u2192 U-Boot SPL \u2192 U-Boot Proper \u2192 Linux Image &#043; DTB \u2192 Linux Kernel<\/p>\n<p>\u8fd9\u4e0d\u662f\u552f\u4e00\u7684\u542f\u52a8\u7ed3\u6784&#xff0c;\u90e8\u5206\u5e73\u53f0\u53ef\u80fd\u91c7\u7528\u5176\u4ed6\u542f\u52a8\u56fa\u4ef6\u7ec4\u5408\u3002<\/p>\n<h4>7.4 Trusted Firmware-A \u4e0e\u5f02\u5e38\u7ea7\u522b<\/h4>\n<p>\u73b0\u4ee3 Armv8-A \u5e73\u53f0\u8fd8\u7ecf\u5e38\u4f7f\u7528 Trusted Firmware-A&#xff08;TF-A&#xff09;\u4f5c\u4e3a\u5b89\u5168\u56fa\u4ef6\u3002<\/p>\n<p>\u5176\u67b6\u6784\u4e2d\u5e38\u89c1\u7684\u56fa\u4ef6\u9636\u6bb5\u5305\u62ec&#xff1a;<\/p>\n<table>\n<tr>\u9636\u6bb5\u804c\u8d23<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">BL1<\/td>\n<td align=\"left\">\u65e9\u671f\u53ef\u4fe1\u542f\u52a8\u4ee3\u7801&#xff0c;\u8fd0\u884c\u5728EL3<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">BL2<\/td>\n<td align=\"left\">\u52a0\u8f7d\u53ca\u9a8c\u8bc1\u540e\u7eed\u5404\u7ea7\u56fa\u4ef6<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">BL31<\/td>\n<td align=\"left\">EL3 \u8fd0\u884c\u65f6\u56fa\u4ef6&#xff0c;\u8d1f\u8d23\u5b89\u5168\u76d1\u63a7\u4e0e\u7cfb\u7edf\u670d\u52a1<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">BL32<\/td>\n<td align=\"left\">\u53ef\u9009\u7684\u5b89\u5168\u4e16\u754c\u8f7d\u8377&#xff0c;\u5982 TEE&#xff08;\u53ef\u4fe1\u6267\u884c\u73af\u5883&#xff09;<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">BL33<\/td>\n<td align=\"left\">\u975e\u5b89\u5168\u4e16\u754c\u56fa\u4ef6&#xff0c;\u4f8b\u5982 U-Boot\u3001UEFI<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5728\u5177\u4f53 SoC \u4e2d&#xff0c;Boot ROM\u3001SPL \u4e0e TF-A \u7684\u804c\u8d23\u5212\u5206\u53ef\u80fd\u4e0d\u540c\u3002BL1\/BL2 \u4e5f\u4e0d\u4e00\u5b9a\u7531\u72ec\u7acb\u7684 TF-A \u4e8c\u8fdb\u5236\u6587\u4ef6\u5b9e\u73b0&#xff0c;\u4e0d\u80fd\u7b80\u5355\u5c06\u4e0a\u8ff0\u9636\u6bb5\u4e0e\u542f\u52a8\u6d41\u7a0b\u673a\u68b0\u62fc\u63a5\u3002<\/p>\n<p>\u8fd9\u91cc\u8fd8\u6d89\u53ca Arm \u7684 Exception Level&#xff08;\u5f02\u5e38\u7ea7\u522b&#xff09;&#xff1a;<\/p>\n<p>EL3  Secure Monitor \/ \u7279\u6743\u56fa\u4ef6&#xff08;\u6700\u9ad8\u7279\u6743&#xff09;<br \/>\nEL2  Hypervisor&#xff08;\u865a\u62df\u5316\u5c42&#xff0c;\u53ef\u9009&#xff09;<br \/>\nEL1  Linux Kernel&#xff08;\u5185\u6838\u6001&#xff09;<br \/>\nEL0  Linux User Space&#xff08;\u7528\u6237\u6001&#xff09;<\/p>\n<p>\u8fd9\u662f AArch64 Normal World \u8f6f\u4ef6\u6808\u7684\u7b80\u5316\u8868\u793a\u3002EL3\u3001Secure World \u4e0e Normal World \u4e4b\u95f4\u7684\u5173\u7cfb&#xff0c;\u8fd8\u53d7\u5230 TrustZone \u5b89\u5168\u72b6\u6001\u548c\u5b9e\u9645\u56fa\u4ef6\u8bbe\u8ba1\u5f71\u54cd\u3002<\/p>\n<h4>7.5 \u8bbe\u5907\u6811<\/h4>\n<p>Linux \u9a71\u52a8\u9700\u8981\u77e5\u9053\u786c\u4ef6\u4fe1\u606f&#xff1a;<\/p>\n<ul>\n<li>UART \u7684\u5bc4\u5b58\u5668\u5730\u5740\u662f\u4ec0\u4e48&#xff1f;<\/li>\n<li>IRQ \u7f16\u53f7\u662f\u591a\u5c11&#xff1f;<\/li>\n<li>\u8bbe\u5907\u4f7f\u7528\u54ea\u4e2a\u65f6\u949f&#xff1f;<\/li>\n<li>SPI\u3001I\u00b2C \u63a7\u5236\u5668\u4e0a\u8fde\u63a5\u4e86\u4ec0\u4e48&#xff1f;<\/li>\n<li>\u54ea\u4e9b\u8bbe\u5907\u542f\u7528&#xff0c;\u54ea\u4e9b\u8bbe\u5907\u7981\u7528&#xff1f;<\/li>\n<\/ul>\n<p>\u8bbe\u5907\u6811&#xff08;Device Tree&#xff09;\u5c31\u662f\u63cf\u8ff0\u786c\u4ef6\u62d3\u6251\u548c\u8d44\u6e90\u7684\u4e00\u79cd\u6570\u636e\u7ed3\u6784&#xff0c;\u5176\u4f5c\u7528\u4e4b\u4e00\u662f\u5c06\u786c\u4ef6\u63cf\u8ff0\u4ece\u5185\u6838\u677f\u7ea7\u4ee3\u7801\u4e2d\u89e3\u8026&#xff0c;\u5b9e\u73b0\u4e00\u4efd\u5185\u6838\u955c\u50cf\u9002\u914d\u591a\u5757\u786c\u4ef6\u3002<\/p>\n<p>\u793a\u4f8b&#xff08;\u4ec5\u7528\u4e8e\u8bf4\u660e\u8bed\u6cd5&#xff0c;\u4e0d\u5bf9\u5e94\u771f\u5b9e\u82af\u7247&#xff09;&#xff1a;<\/p>\n<p>uart0: serial&#064;40001000 {<br \/>\n    compatible &#061; &#034;demo,soc-uart&#034;;<br \/>\n    reg &#061; &lt;0x40001000 0x1000&gt;;<br \/>\n    interrupts &#061; &lt;42&gt;;<br \/>\n    status &#061; &#034;okay&#034;;<br \/>\n};<\/p>\n<p>\u8fd9\u91cc\u7684\u5730\u5740\u3001compatible \u548c\u4e2d\u65ad\u7f16\u7801\u90fd\u662f\u5047\u8bbe\u503c&#xff0c;\u771f\u5b9e\u5de5\u7a0b\u5fc5\u987b\u4f7f\u7528\u82af\u7247\u5b98\u65b9 Device Tree Binding\u3002\u5f88\u591a\u5b9e\u9645 ARM64 \u5e73\u53f0\u7684 interrupts \u5c5e\u6027\u8fd8\u9700\u8981\u591a\u4e2a cell \u63cf\u8ff0\u4e2d\u65ad\u7c7b\u578b\u3001\u7f16\u53f7\u548c\u89e6\u53d1\u65b9\u5f0f\u3002<\/p>\n<p>Linux \u542f\u52a8\u65f6\u89e3\u6790 DTB&#xff08;Device Tree Blob&#xff09;&#xff0c;\u4f7f\u8bbe\u5907\u6a21\u578b\u548c\u5bf9\u5e94\u9a71\u52a8\u83b7\u5f97\u786c\u4ef6\u4fe1\u606f\u3002<\/p>\n<p>\u53ef\u4ee5\u5c06\u4e09\u8005\u5173\u7cfb\u603b\u7ed3\u4e3a&#xff1a;<br \/>\nReference Manual \u5b9a\u4e49\u786c\u4ef6\u884c\u4e3a&#xff1b;Device Tree \u63cf\u8ff0\u672c\u677f\u7684\u786c\u4ef6\u8d44\u6e90&#xff1b;Driver \u5b9e\u73b0\u5bf9\u786c\u4ef6\u7684\u64cd\u4f5c\u3002<\/p>\n<h3>\u516b\u3001SoC \u8f6f\u4ef6\u67b6\u6784&#xff1a;BSP\u3001\u9a71\u52a8\u3001\u5185\u6838\u4e0e\u5e94\u7528<\/h3>\n<p>\u5bf9\u4e8e\u5d4c\u5165\u5f0f\u8f6f\u4ef6\u5f00\u53d1\u5de5\u7a0b\u5e08&#xff0c;\u771f\u6b63\u9700\u8981\u63a5\u89e6\u7684\u662f SoC \u7684\u8f6f\u4ef6\u6808\u3002<\/p>\n<h4>8.1 \u4ece\u5e94\u7528\u5c42\u5230\u786c\u4ef6\u5c42<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261119004043-6afe458b76791.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"460\" \/><\/p>\n<p>BSP&#xff08;Board Support Package&#xff0c;\u677f\u7ea7\u652f\u6301\u5305&#xff09;\u662f\u7528\u4e8e\u652f\u6301\u7279\u5b9a\u786c\u4ef6\u5e73\u53f0\u7684\u8f6f\u4ef6\u96c6\u5408\u3002 \u901a\u5e38\u5305\u542b Bootloader \u914d\u7f6e\u3001\u5185\u6838\u914d\u7f6e\u3001\u8bbe\u5907\u6811\u3001\u9a71\u52a8\u9002\u914d\u3001\u56fa\u4ef6\u4ee5\u53ca\u6784\u5efa\u914d\u7f6e\u7b49\u3002<\/p>\n<h4>8.2 \u5177\u4f53\u4f8b\u5b50&#xff1a;Linux \u63a7\u5236 SoC \u5185\u90e8\u7684 SPI<\/h4>\n<p>\u5047\u8bbe\u8981\u8ba9 Linux \u4e0a\u7684 C&#043;&#043; \u7a0b\u5e8f\u4e0e SPI \u4f20\u611f\u5668\u901a\u4fe1\u3002<\/p>\n<p>\u8f6f\u4ef6\u94fe\u8def&#xff1a;C&#043;&#043; Application \u2192 spidev \u6216\u4e13\u7528\u8bbe\u5907\u63a5\u53e3 \u2192 Linux SPI \u5b50\u7cfb\u7edf\u6846\u67b6 \u2192 SoC SPI Controller \u9a71\u52a8 \u2192 SPI Controller \u5bc4\u5b58\u5668\u64cd\u4f5c \u2192 SoC SPI \u7269\u7406\u5f15\u811a \u2192 External SPI Device<\/p>\n<p>\u8fd9\u91cc\u6709\u51e0\u4e2a\u91cd\u8981\u7684\u62bd\u8c61\u8fb9\u754c&#xff1a;<\/p>\n<ul>\n<li>\u5e94\u7528\u5f00\u53d1&#xff1a;\u901a\u8fc7\u5df2\u7ecf\u66b4\u9732\u7684\u7cfb\u7edfAPI\u64cd\u4f5c\u8bbe\u5907\u3002<\/li>\n<li>\u9a71\u52a8\u5f00\u53d1&#xff1a;\u8d1f\u8d23\u8bbe\u5907\u521d\u59cb\u5316\u3001\u5bc4\u5b58\u5668\u64cd\u4f5c\u3001\u4e2d\u65ad\u3001DMA\u3001\u65f6\u949f\u3001\u6570\u636e\u4f20\u8f93\u3002<\/li>\n<li>BSP \u5f00\u53d1&#xff1a;\u8d1f\u8d23\u786c\u4ef6\u5e73\u53f0\u9002\u914d&#xff0c;\u8ba9 Linux \u6b63\u786e\u8bc6\u522b\u548c\u7ba1\u7406\u8bbe\u5907\u3002<\/li>\n<li>\u82af\u7247\u539f\u5382\u5e95\u5c42\u5f00\u53d1&#xff1a;\u53ef\u80fd\u8fd8\u4f1a\u6d89\u53ca\u542f\u52a8\u56fa\u4ef6\u3001DDR \u521d\u59cb\u5316\u3001\u65f6\u949f\u6811\u4ee5\u53ca SoC \u786c\u4ef6\u95ee\u9898\u6392\u67e5\u3002<\/li>\n<\/ul>\n<p>\u4e0d\u540c\u5c97\u4f4d\u5bf9\u8fd9\u4e9b\u5c42\u6b21\u7684\u6df1\u5ea6\u8981\u6c42\u5e76\u4e0d\u76f8\u540c\u3002<\/p>\n<h4>8.3 \u8bbe\u5907\u9a71\u52a8\u7684 Probe \u673a\u5236<\/h4>\n<p>\u5d4c\u5165\u5f0f Linux \u4e2d&#xff0c;probe() \u662f\u5e73\u53f0\u8bbe\u5907\u9a71\u52a8\u7684\u521d\u59cb\u5316\u5165\u53e3\u3002\u5185\u6838\u8bc6\u522b\u5230\u786c\u4ef6\u8bbe\u5907\u3001\u6210\u529f\u5b8c\u6210\u8bbe\u5907\u4e0e\u9a71\u52a8\u5339\u914d\u540e&#xff0c;\u5c31\u4f1a\u56de\u8c03\u9a71\u52a8\u7684 probe()&#xff0c;\u5b8c\u6210\u786c\u4ef6\u8d44\u6e90\u83b7\u53d6\u4e0e\u8bbe\u5907\u521d\u59cb\u5316\u3002<br \/>\nSoC \u7247\u4e0a\u96c6\u6210\u7684 UART\u3001SPI\u3001I\u00b2C \u63a7\u5236\u5668\u8fd9\u7c7b\u7247\u5185\u5916\u8bbe&#xff0c;\u666e\u904d\u4f7f\u7528 Platform Device \/ Platform Driver \u8fd9\u5957\u9a71\u52a8\u6846\u67b6\u3002<\/p>\n<h5>8.3.1 \u9a71\u52a8\u5339\u914d\u4e0e\u521d\u59cb\u5316\u6d41\u7a0b<\/h5>\n<p>\u89e3\u6790 Device Tree<br \/>\n        \u2193<br \/>\n\u751f\u6210 Platform Device<br \/>\n        \u2193<br \/>\n\u4f9d\u636e compatible \u5c5e\u6027\u5339\u914d Platform Driver<br \/>\n        \u2193<br \/>\n\u6267\u884c probe() \u56de\u8c03<br \/>\n        \u2193<br \/>\n\u63d0\u53d6\u5bc4\u5b58\u5668\u3001\u4e2d\u65ad\u3001\u65f6\u949f\u3001\u590d\u4f4d\u7b49\u786c\u4ef6\u8d44\u6e90<br \/>\n        \u2193<br \/>\n\u5916\u8bbe\u786c\u4ef6\u521d\u59cb\u5316<br \/>\n        \u2193<br \/>\n\u6ce8\u518c\u5b57\u7b26\u8bbe\u5907\u3001\u603b\u7ebf\u63a5\u53e3\u7b49\u4e0a\u5c42\u8bbf\u95ee\u5165\u53e3<br \/>\n        \u2193<br \/>\n\u5e94\u7528\u5c42\u53ef\u64cd\u4f5c\u8be5\u8bbe\u5907<\/p>\n<ul>\n<li>Platform Device&#xff1a;\u786c\u4ef6\u63cf\u8ff0\u8f7d\u4f53&#xff0c;\u5b58\u653e\u5bc4\u5b58\u5668\u57fa\u5730\u5740\u3001\u4e2d\u65ad\u53f7\u7b49\u8d44\u6e90\u4fe1\u606f&#xff0c;\u4e00\u822c\u7531\u8bbe\u5907\u6811\u89e3\u6790\u751f\u6210\u3002<\/li>\n<li>Platform Driver&#xff1a;\u9a71\u52a8\u903b\u8f91\u8f7d\u4f53&#xff0c;\u5b9a\u4e49 probe()\u3001remove() \u7b49\u56de\u8c03\u51fd\u6570&#xff0c;\u5b9e\u73b0\u786c\u4ef6\u64cd\u4f5c\u3002<\/li>\n<li>compatible&#xff1a;\u8bbe\u5907\u6811\u5339\u914d\u5173\u952e\u5b57&#xff0c;\u662f\u8bbe\u5907\u8282\u70b9\u548c\u9a71\u52a8\u5339\u914d\u8868\u7ed1\u5b9a\u7684\u4f9d\u636e\u3002<\/li>\n<\/ul>\n<h5>8.3.2 \u5339\u914d\u793a\u4f8b<\/h5>\n<p>\u8bbe\u5907\u6811\u8282\u70b9\u5b9a\u4e49&#xff1a;<\/p>\n<p>uart0: serial&#064;40001000 {<br \/>\n    compatible &#061; &#034;demo,my-uart&#034;;<br \/>\n    reg &#061; &lt;0x40001000 0x1000&gt;;<br \/>\n    status &#061; &#034;okay&#034;;<br \/>\n};<\/p>\n<p>\u5bf9\u5e94\u9a71\u52a8\u5339\u914d\u4e0e probe \u6846\u67b6\u4ee3\u7801&#xff1a;<\/p>\n<p><span class=\"token keyword\">static<\/span> <span class=\"token keyword\">const<\/span> <span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">of_device_id<\/span> uart_of_match<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span> <span class=\"token punctuation\">.<\/span>compatible <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;demo,my-uart&#034;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token function\">MODULE_DEVICE_TABLE<\/span><span class=\"token punctuation\">(<\/span>of<span class=\"token punctuation\">,<\/span> uart_of_match<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">static<\/span> <span class=\"token keyword\">int<\/span> <span class=\"token function\">uart_probe<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">platform_device<\/span> <span class=\"token operator\">*<\/span>pdev<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">dev_info<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>pdev<span class=\"token operator\">-&gt;<\/span>dev<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;UART probe called\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u8bfb\u53d6\u5bc4\u5b58\u5668\u3001\u4e2d\u65ad\u3001\u65f6\u949f\u7b49\u8d44\u6e90<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u786c\u4ef6\u521d\u59cb\u5316\u3001\u6ce8\u518c\u8bbe\u5907\u63a5\u53e3<\/span><\/p>\n<p>    <span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">static<\/span> <span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">platform_driver<\/span> uart_driver <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token punctuation\">.<\/span>probe <span class=\"token operator\">&#061;<\/span> uart_probe<span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">.<\/span>driver <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token punctuation\">.<\/span>name <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;my-uart&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token punctuation\">.<\/span>of_match_table <span class=\"token operator\">&#061;<\/span> uart_of_match<span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token function\">module_platform_driver<\/span><span class=\"token punctuation\">(<\/span>uart_driver<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u9a71\u52a8\u6ce8\u518c\u540e&#xff0c;Driver Core \u6bd4\u5bf9 compatible \u5b57\u7b26\u4e32&#xff0c;\u5339\u914d\u6210\u529f\u5373\u8c03\u7528 uart_probe&#xff0c;\u5b8c\u6210\u9a71\u52a8\u548c\u8bbe\u5907\u7ed1\u5b9a\u3002<\/p>\n<p>\u8be5\u793a\u4f8b\u4ec5\u6f14\u793a\u5339\u914d\u6846\u67b6&#xff0c;\u4e0d\u662f\u53ef\u76f4\u63a5\u8fd0\u884c\u7684\u5b8c\u6574 UART \u9a71\u52a8\u3002<\/p>\n<h5>8.3.3 Probe \u8fd4\u56de\u503c\u4e0e\u5ef6\u8fdf\u63a2\u6d4b<\/h5>\n<p>probe \u6267\u884c\u65f6&#xff0c;\u4f9d\u8d56\u7684\u65f6\u949f\u3001\u7535\u6e90\u3001\u5176\u4ed6\u524d\u7f6e\u9a71\u52a8\u4e0d\u4e00\u5b9a\u5df2\u7ecf\u5c31\u7eea&#xff0c;\u5185\u6838\u901a\u8fc7\u8fd4\u56de\u503c\u544a\u77e5\u9a71\u52a8\u5904\u7406\u7b56\u7565&#xff1a;<\/p>\n<table>\n<tr>\u8fd4\u56de\u503c\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>0<\/td>\n<td>\u521d\u59cb\u5316\u6210\u529f&#xff0c;\u8bbe\u5907\u4e0e\u9a71\u52a8\u5b8c\u6210\u7ed1\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>-ENODEV<\/td>\n<td>\u8bbe\u5907\u4e0d\u5b58\u5728\u6216\u9a71\u52a8\u4e0d\u652f\u6301\u8be5\u786c\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>-ENOMEM<\/td>\n<td>\u5185\u5b58\u5206\u914d\u5931\u8d25<\/td>\n<\/tr>\n<tr>\n<td>-EPROBE_DEFER<\/td>\n<td>\u4f9d\u8d56\u8d44\u6e90\u672a\u5c31\u7eea&#xff0c;\u8bf7\u6c42\u5ef6\u540e\u91cd\u8bd5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5f53\u8fd4\u56de -EPROBE_DEFER&#xff0c;\u5185\u6838\u4f1a\u628a\u8be5\u8bbe\u5907\u653e\u5165\u5ef6\u8fdf\u63a2\u6d4b\u961f\u5217&#xff0c;\u7b49\u5f85\u4f9d\u8d56\u9a71\u52a8\u5c31\u7eea\u540e\u518d\u6b21\u5c1d\u8bd5 probe\u3002<\/p>\n<p>\u56e0\u6b64\u9a71\u52a8\u521d\u59cb\u5316\u987a\u5e8f\u4e0d\u8ddf\u968f\u8bbe\u5907\u6811\u8282\u70b9\u987a\u5e8f&#xff0c;\u53d7\u9a71\u52a8\u52a0\u8f7d\u987a\u5e8f\u3001\u786c\u4ef6\u4f9d\u8d56\u5173\u7cfb\u3001\u5ef6\u8fdf\u63a2\u6d4b\u673a\u5236\u5171\u540c\u8c03\u5ea6\u3002<\/p>\n<h5>8.3.4 Probe \u4e0e Remove\u3001devm \u6258\u7ba1\u8d44\u6e90<\/h5>\n<ul>\n<li>probe()&#xff1a;\u7ed1\u5b9a\u9636\u6bb5&#xff0c;\u7533\u8bf7\u8d44\u6e90\u3001\u4e0a\u7535\u521d\u59cb\u5316\u786c\u4ef6\u3001\u6ce8\u518c\u8bbe\u5907\u63a5\u53e3<\/li>\n<li>remove()&#xff1a;\u89e3\u7ed1\u9636\u6bb5&#xff0c;\u5173\u95ed\u786c\u4ef6\u3001\u91ca\u653e\u8d44\u6e90\u3001\u6ce8\u9500\u8bbe\u5907\u63a5\u53e3<\/li>\n<\/ul>\n<p>\u5185\u6838\u63d0\u4f9b devm_* \u7cfb\u5217\u6258\u7ba1\u63a5\u53e3&#xff0c;\u5982 devm_kzalloc()\u3001devm_request_irq()\u3002\u4f7f\u7528\u6258\u7ba1\u63a5\u53e3\u7533\u8bf7\u7684\u8d44\u6e90&#xff0c;\u5728\u63a2\u6d4b\u5931\u8d25\u3001\u8bbe\u5907 remove \u65f6\u7531\u5185\u6838\u81ea\u52a8\u56de\u6536&#xff0c;\u7b80\u5316\u624b\u52a8\u91ca\u653e\u7684\u6e05\u7406\u4ee3\u7801&#xff0c;\u89c4\u907f\u8d44\u6e90\u6cc4\u6f0f\u3002<\/p>\n<p>\u8bbe\u5907\u6811\u63cf\u8ff0\u786c\u4ef6\u8d44\u6e90&#xff0c;Platform Driver \u627f\u8f7d\u9a71\u52a8\u903b\u8f91&#xff0c;probe() \u662f Linux \u9a71\u52a8\u6a21\u578b\u4e2d\u5c06\u786c\u4ef6\u3001\u9a71\u52a8\u7ed1\u5b9a\u5e76\u5b8c\u6210\u521d\u59cb\u5316\u7684\u5173\u952e\u5165\u53e3\u3002<\/p>\n<h3>\u4e5d\u3001\u5f02\u6784 SoC&#xff1a;Linux \u4e0e\u5b9e\u65f6\u6838\u5fc3\u7684\u534f\u4f5c<\/h3>\n<h4>9.1 SMP \u4e0e AMP<\/h4>\n<table>\n<tr>\u7ef4\u5ea6SMPAMP<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u5168\u79f0<\/td>\n<td align=\"left\">Symmetric Multiprocessing<\/td>\n<td align=\"left\">Asymmetric Multiprocessing<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u64cd\u4f5c\u7cfb\u7edf<\/td>\n<td align=\"left\">\u901a\u5e38\u7531\u4e00\u4e2a OS \u7edf\u4e00\u7ba1\u7406<\/td>\n<td align=\"left\">\u4e0d\u540c\u6838\u5fc3\u53ef\u8fd0\u884c\u4e0d\u540c OS<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5185\u5b58\u6a21\u578b<\/td>\n<td align=\"left\">\u901a\u5e38\u5171\u4eab\u5185\u5b58\u7cfb\u7edf<\/td>\n<td align=\"left\">\u53ef\u5171\u4eab\u3001\u5206\u533a\u6216\u7269\u7406\u9694\u79bb<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u7ebf\u7a0b\u8c03\u5ea6<\/td>\n<td align=\"left\">\u7edf\u4e00\u8c03\u5ea6\u5668\u8c03\u5ea6<\/td>\n<td align=\"left\">\u5404\u7cfb\u7edf\u5206\u522b\u72ec\u7acb\u7ba1\u7406<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u901a\u4fe1\u65b9\u5f0f<\/td>\n<td align=\"left\">\u7ebf\u7a0b\u540c\u6b65\u3001\u5171\u4eab\u5185\u5b58<\/td>\n<td align=\"left\">\u5171\u4eab\u5185\u5b58\u3001Mailbox\u3001IPC<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5178\u578b\u8bbe\u8ba1<\/td>\n<td align=\"left\">\u591a\u4e2a Cortex-A \u8fd0\u884c Linux<\/td>\n<td align=\"left\">Cortex-A Linux &#043; Cortex-M RTOS<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5178\u578b\u5f02\u6784\u67b6\u6784&#xff1a;<\/p>\n<p>#mermaid-svg-FcMZLfv8KWpMEKIF{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-FcMZLfv8KWpMEKIF .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-FcMZLfv8KWpMEKIF .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-FcMZLfv8KWpMEKIF .error-icon{fill:#552222;}#mermaid-svg-FcMZLfv8KWpMEKIF .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-FcMZLfv8KWpMEKIF .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-FcMZLfv8KWpMEKIF .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-FcMZLfv8KWpMEKIF .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-FcMZLfv8KWpMEKIF .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-FcMZLfv8KWpMEKIF .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-FcMZLfv8KWpMEKIF .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-FcMZLfv8KWpMEKIF .marker{fill:#333333;stroke:#333333;}#mermaid-svg-FcMZLfv8KWpMEKIF .marker.cross{stroke:#333333;}#mermaid-svg-FcMZLfv8KWpMEKIF svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-FcMZLfv8KWpMEKIF p{margin:0;}#mermaid-svg-FcMZLfv8KWpMEKIF .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-FcMZLfv8KWpMEKIF .cluster-label text{fill:#333;}#mermaid-svg-FcMZLfv8KWpMEKIF .cluster-label span{color:#333;}#mermaid-svg-FcMZLfv8KWpMEKIF .cluster-label span p{background-color:transparent;}#mermaid-svg-FcMZLfv8KWpMEKIF .label text,#mermaid-svg-FcMZLfv8KWpMEKIF span{fill:#333;color:#333;}#mermaid-svg-FcMZLfv8KWpMEKIF .node rect,#mermaid-svg-FcMZLfv8KWpMEKIF .node circle,#mermaid-svg-FcMZLfv8KWpMEKIF .node ellipse,#mermaid-svg-FcMZLfv8KWpMEKIF .node polygon,#mermaid-svg-FcMZLfv8KWpMEKIF .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-FcMZLfv8KWpMEKIF .rough-node .label text,#mermaid-svg-FcMZLfv8KWpMEKIF .node .label text,#mermaid-svg-FcMZLfv8KWpMEKIF .image-shape .label,#mermaid-svg-FcMZLfv8KWpMEKIF .icon-shape .label{text-anchor:middle;}#mermaid-svg-FcMZLfv8KWpMEKIF .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-FcMZLfv8KWpMEKIF .rough-node .label,#mermaid-svg-FcMZLfv8KWpMEKIF .node .label,#mermaid-svg-FcMZLfv8KWpMEKIF .image-shape .label,#mermaid-svg-FcMZLfv8KWpMEKIF .icon-shape .label{text-align:center;}#mermaid-svg-FcMZLfv8KWpMEKIF .node.clickable{cursor:pointer;}#mermaid-svg-FcMZLfv8KWpMEKIF .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-FcMZLfv8KWpMEKIF .arrowheadPath{fill:#333333;}#mermaid-svg-FcMZLfv8KWpMEKIF .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-FcMZLfv8KWpMEKIF .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-FcMZLfv8KWpMEKIF .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-FcMZLfv8KWpMEKIF .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-FcMZLfv8KWpMEKIF .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-FcMZLfv8KWpMEKIF .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-FcMZLfv8KWpMEKIF .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-FcMZLfv8KWpMEKIF .cluster text{fill:#333;}#mermaid-svg-FcMZLfv8KWpMEKIF .cluster span{color:#333;}#mermaid-svg-FcMZLfv8KWpMEKIF div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-FcMZLfv8KWpMEKIF .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-FcMZLfv8KWpMEKIF rect.text{fill:none;stroke-width:0;}#mermaid-svg-FcMZLfv8KWpMEKIF .icon-shape,#mermaid-svg-FcMZLfv8KWpMEKIF .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-FcMZLfv8KWpMEKIF .icon-shape p,#mermaid-svg-FcMZLfv8KWpMEKIF .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-FcMZLfv8KWpMEKIF .icon-shape .label rect,#mermaid-svg-FcMZLfv8KWpMEKIF .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-FcMZLfv8KWpMEKIF .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-FcMZLfv8KWpMEKIF .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-FcMZLfv8KWpMEKIF :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}#mermaid-svg-FcMZLfv8KWpMEKIF .linux&gt;*{fill:#e8f0fe!important;stroke:#1a73e8!important;stroke-width:2px!important;color:#174ea6!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .linux span{fill:#e8f0fe!important;stroke:#1a73e8!important;stroke-width:2px!important;color:#174ea6!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .linux tspan{fill:#174ea6!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .ipc&gt;*{fill:#fff8e1!important;stroke:#f9a825!important;stroke-width:2px!important;color:#b26500!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .ipc span{fill:#fff8e1!important;stroke:#f9a825!important;stroke-width:2px!important;color:#b26500!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .ipc tspan{fill:#b26500!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .rtos&gt;*{fill:#e8f5e9!important;stroke:#2e7d32!important;stroke-width:2px!important;color:#1b5e20!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .rtos span{fill:#e8f5e9!important;stroke:#2e7d32!important;stroke-width:2px!important;color:#1b5e20!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .rtos tspan{fill:#1b5e20!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .boxA&gt;*{fill:#f7faff!important;stroke:#1a73e8!important;stroke-width:2px!important;stroke-dasharray:8 5!important;color:#174ea6!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .boxA span{fill:#f7faff!important;stroke:#1a73e8!important;stroke-width:2px!important;stroke-dasharray:8 5!important;color:#174ea6!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .boxA tspan{fill:#174ea6!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .boxI&gt;*{fill:#fffdf6!important;stroke:#f9a825!important;stroke-width:2px!important;stroke-dasharray:8 5!important;color:#b26500!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .boxI span{fill:#fffdf6!important;stroke:#f9a825!important;stroke-width:2px!important;stroke-dasharray:8 5!important;color:#b26500!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .boxI tspan{fill:#b26500!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .boxR&gt;*{fill:#f5fbf6!important;stroke:#2e7d32!important;stroke-width:2px!important;stroke-dasharray:8 5!important;color:#1b5e20!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .boxR span{fill:#f5fbf6!important;stroke:#2e7d32!important;stroke-width:2px!important;stroke-dasharray:8 5!important;color:#1b5e20!important;}#mermaid-svg-FcMZLfv8KWpMEKIF .boxR tspan{fill:#1b5e20!important;}<span class=\"nodeLabel\" style=\"color:#1b5e20 !important\"><\/p>\n<p>Cortex-R \/ M \u2503 RTOS \/ Bare Metal<\/p>\n<p><\/span><span class=\"nodeLabel\" style=\"color:#b26500 !important\"><\/p>\n<p>\u6838\u95f4\u901a\u4fe1\u901a\u9053 \u00b7 IPC<\/p>\n<p><\/span><span class=\"nodeLabel\" style=\"color:#174ea6 !important\"><\/p>\n<p>Cortex-A Cluster \u2503 Linux Operating System<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span style=\"color:#174ea6 !important\" class=\"nodeLabel\"><\/p>\n<p>\u611f\u77e5\u7b97\u6cd5<\/p>\n<p><\/span><span style=\"color:#174ea6 !important\" class=\"nodeLabel\"><\/p>\n<p>\u7f51\u7edc\u901a\u4fe1<\/p>\n<p><\/span><span style=\"color:#174ea6 !important\" class=\"nodeLabel\"><\/p>\n<p>\u65e5\u5fd7\u4e0e\u6587\u4ef6\u7cfb\u7edf<\/p>\n<p><\/span><span style=\"color:#174ea6 !important\" class=\"nodeLabel\"><\/p>\n<p>\u4efb\u52a1\u89c4\u5212<\/p>\n<p><\/span><span style=\"color:#b26500 !important\" class=\"nodeLabel\"><\/p>\n<p>RPMsg \/ \u6838\u95f4 IPC<\/p>\n<p><\/span><span style=\"color:#b26500 !important\" class=\"nodeLabel\"><\/p>\n<p>Shared Memory \u5171\u4eab\u5185\u5b58<\/p>\n<p><\/span><span style=\"color:#b26500 !important\" class=\"nodeLabel\"><\/p>\n<p>Mailbox \/ \u4e2d\u65ad\u4fe1\u53f7<\/p>\n<p><\/span><span style=\"color:#1b5e20 !important\" class=\"nodeLabel\"><\/p>\n<p>\u5468\u671f\u63a7\u5236\u4efb\u52a1<\/p>\n<p><\/span><span style=\"color:#1b5e20 !important\" class=\"nodeLabel\"><\/p>\n<p>\u4f20\u611f\u5668\u91c7\u96c6<\/p>\n<p><\/span><span style=\"color:#1b5e20 !important\" class=\"nodeLabel\"><\/p>\n<p>\u770b\u95e8\u72d7\u4e0e\u4fdd\u62a4<\/p>\n<p><\/span><\/p>\n<h4>9.2 Remoteproc \u4e0e RPMsg<\/h4>\n<p>Linux \u4e3a\u5f02\u6784\u5904\u7406\u5668\u63d0\u4f9b\u4e86\u4e24\u7c7b\u91cd\u8981\u673a\u5236&#xff1a;<\/p>\n<ul>\n<li>Remoteproc&#xff1a;\u8d1f\u8d23\u8fdc\u7aef\u5904\u7406\u5668\u7684\u56fa\u4ef6\u52a0\u8f7d\u3001\u542f\u52a8\u3001\u505c\u6b62\u53ca\u8d44\u6e90\u7ba1\u7406\u7b49\u3002<\/li>\n<li>RPMsg&#xff1a;\u63d0\u4f9b\u57fa\u4e8e\u6d88\u606f\u7684\u6838\u95f4\u901a\u4fe1\u673a\u5236&#xff0c;\u53ef\u7528\u4e8e Linux \u4e0e\u8fdc\u7aef RTOS \u4e4b\u95f4\u7684\u6570\u636e\u4ea4\u6362\u3002<\/li>\n<\/ul>\n<p>\u901a\u4fe1\u6d41\u7a0b\u793a\u4f8b&#xff1a;Linux \u89c6\u89c9\u5e94\u7528\u7ebf\u7a0b &#8212;-&gt; \u76ee\u6807\u4f4d\u7f6e\u3001\u901f\u5ea6\u3001\u65f6\u95f4\u6233&#8212;-&gt; RPMsg Endpoint &#8212;-&gt; Shared Memory &#043; Virtqueue &#8212;-&gt; Remote Core \u56fa\u4ef6 &#8212;-&gt; \u5b9e\u65f6\u63a7\u5236\u4efb\u52a1\u6267\u884c<\/p>\n<p>\u9700\u8981\u6ce8\u610f&#xff0c;RPMsg \u7684\u901a\u4fe1\u94fe\u8def\u672c\u8eab\u4e0d\u63d0\u4f9b\u786c\u5b9e\u65f6\u622a\u6b62\u671f\u9650\u4fdd\u8bc1\u3002\u5982\u679c\u8981\u6c42\u4e25\u683c\u786e\u5b9a\u6027&#xff0c;\u8fd8\u9700\u8981\u7efc\u5408\u5206\u6790\u5171\u4eab\u5185\u5b58\u4ef2\u88c1\u3001Mailbox \u4e2d\u65ad\u3001RTOS \u8c03\u5ea6\u3001Cache \u540c\u6b65\u548c\u901a\u4fe1\u8d85\u65f6\u7b49\u56e0\u7d20\u3002<\/p>\n<p>RPMsg \u5e76\u975e\u6bcf\u9897\u5f02\u6784 SoC \u90fd\u5fc5\u987b\u4f7f\u7528\u3002\u4e0d\u540c\u5382\u5546\u4e5f\u53ef\u80fd\u91c7\u7528\u81ea\u5df1\u7684 IPC \u534f\u8bae\u3001\u5171\u4eab\u5185\u5b58\u961f\u5217\u6216\u4e13\u7528\u786c\u4ef6\u6d88\u606f\u901a\u9053\u3002<\/p>\n<h3>\u5341\u3001\u65f6\u949f\u3001\u7535\u6e90\u7ba1\u7406\u4e0e\u5b9e\u65f6\u6027\u80fd<\/h3>\n<h4>10.1 SoC \u4e0d\u540c\u6a21\u5757\u5de5\u4f5c\u5728\u4e0d\u540c\u9891\u7387<\/h4>\n<p>\u4e00\u9897 SoC \u5185\u90e8\u5b58\u5728\u590d\u6742\u7684\u65f6\u949f\u6811&#xff0c;\u4e0d\u540c\u6a21\u5757\u5de5\u4f5c\u5728\u4e0d\u540c\u9891\u7387&#xff1a;<\/p>\n<p>#mermaid-svg-xqB7Nc5JZwaiqAsA{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-xqB7Nc5JZwaiqAsA .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-xqB7Nc5JZwaiqAsA .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-xqB7Nc5JZwaiqAsA .error-icon{fill:#552222;}#mermaid-svg-xqB7Nc5JZwaiqAsA .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-xqB7Nc5JZwaiqAsA .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-xqB7Nc5JZwaiqAsA .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-xqB7Nc5JZwaiqAsA .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-xqB7Nc5JZwaiqAsA .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-xqB7Nc5JZwaiqAsA .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-xqB7Nc5JZwaiqAsA .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-xqB7Nc5JZwaiqAsA .marker{fill:#333333;stroke:#333333;}#mermaid-svg-xqB7Nc5JZwaiqAsA .marker.cross{stroke:#333333;}#mermaid-svg-xqB7Nc5JZwaiqAsA svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-xqB7Nc5JZwaiqAsA p{margin:0;}#mermaid-svg-xqB7Nc5JZwaiqAsA .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-xqB7Nc5JZwaiqAsA .cluster-label text{fill:#333;}#mermaid-svg-xqB7Nc5JZwaiqAsA .cluster-label span{color:#333;}#mermaid-svg-xqB7Nc5JZwaiqAsA .cluster-label span p{background-color:transparent;}#mermaid-svg-xqB7Nc5JZwaiqAsA .label text,#mermaid-svg-xqB7Nc5JZwaiqAsA span{fill:#333;color:#333;}#mermaid-svg-xqB7Nc5JZwaiqAsA .node rect,#mermaid-svg-xqB7Nc5JZwaiqAsA .node circle,#mermaid-svg-xqB7Nc5JZwaiqAsA .node ellipse,#mermaid-svg-xqB7Nc5JZwaiqAsA .node polygon,#mermaid-svg-xqB7Nc5JZwaiqAsA .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-xqB7Nc5JZwaiqAsA .rough-node .label text,#mermaid-svg-xqB7Nc5JZwaiqAsA .node .label text,#mermaid-svg-xqB7Nc5JZwaiqAsA .image-shape .label,#mermaid-svg-xqB7Nc5JZwaiqAsA .icon-shape .label{text-anchor:middle;}#mermaid-svg-xqB7Nc5JZwaiqAsA .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-xqB7Nc5JZwaiqAsA .rough-node .label,#mermaid-svg-xqB7Nc5JZwaiqAsA .node .label,#mermaid-svg-xqB7Nc5JZwaiqAsA .image-shape .label,#mermaid-svg-xqB7Nc5JZwaiqAsA .icon-shape .label{text-align:center;}#mermaid-svg-xqB7Nc5JZwaiqAsA .node.clickable{cursor:pointer;}#mermaid-svg-xqB7Nc5JZwaiqAsA .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-xqB7Nc5JZwaiqAsA .arrowheadPath{fill:#333333;}#mermaid-svg-xqB7Nc5JZwaiqAsA .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-xqB7Nc5JZwaiqAsA .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-xqB7Nc5JZwaiqAsA .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-xqB7Nc5JZwaiqAsA .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-xqB7Nc5JZwaiqAsA .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-xqB7Nc5JZwaiqAsA .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-xqB7Nc5JZwaiqAsA .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-xqB7Nc5JZwaiqAsA .cluster text{fill:#333;}#mermaid-svg-xqB7Nc5JZwaiqAsA .cluster span{color:#333;}#mermaid-svg-xqB7Nc5JZwaiqAsA div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-xqB7Nc5JZwaiqAsA .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-xqB7Nc5JZwaiqAsA rect.text{fill:none;stroke-width:0;}#mermaid-svg-xqB7Nc5JZwaiqAsA .icon-shape,#mermaid-svg-xqB7Nc5JZwaiqAsA .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-xqB7Nc5JZwaiqAsA .icon-shape p,#mermaid-svg-xqB7Nc5JZwaiqAsA .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-xqB7Nc5JZwaiqAsA .icon-shape .label rect,#mermaid-svg-xqB7Nc5JZwaiqAsA .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-xqB7Nc5JZwaiqAsA .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-xqB7Nc5JZwaiqAsA .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-xqB7Nc5JZwaiqAsA :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}#mermaid-svg-xqB7Nc5JZwaiqAsA .osc&gt;*{fill:#E3F2FD!important;stroke:#1E88E5!important;stroke-width:2px!important;color:#0D47A1!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .osc span{fill:#E3F2FD!important;stroke:#1E88E5!important;stroke-width:2px!important;color:#0D47A1!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .osc tspan{fill:#0D47A1!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .pll&gt;*{fill:#FFF3E0!important;stroke:#FB8C00!important;stroke-width:2px!important;color:#E65100!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .pll span{fill:#FFF3E0!important;stroke:#FB8C00!important;stroke-width:2px!important;color:#E65100!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .pll tspan{fill:#E65100!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .domain&gt;*{fill:#E8F5E9!important;stroke:#43A047!important;stroke-width:1.5px!important;color:#1B5E20!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .domain span{fill:#E8F5E9!important;stroke:#43A047!important;stroke-width:1.5px!important;color:#1B5E20!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .domain tspan{fill:#1B5E20!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .rtc&gt;*{fill:#F3E5F5!important;stroke:#8E24AA!important;stroke-width:1.5px!important;color:#4A148C!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .rtc span{fill:#F3E5F5!important;stroke:#8E24AA!important;stroke-width:1.5px!important;color:#4A148C!important;}#mermaid-svg-xqB7Nc5JZwaiqAsA .rtc tspan{fill:#4A148C!important;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span style=\"color:#0D47A1 !important\" class=\"nodeLabel\"><\/p>\n<p>Oscillator\u5916\u90e8\u6676\u632f<\/p>\n<p><\/span><span style=\"color:#E65100 !important\" class=\"nodeLabel\"><\/p>\n<p>PLL \/ \u65f6\u949f\u6811\u7f51\u7edc<\/p>\n<p><\/span><span style=\"color:#1B5E20 !important\" class=\"nodeLabel\"><\/p>\n<p>CPU \u65f6\u949f\u57df<\/p>\n<p><\/span><span style=\"color:#1B5E20 !important\" class=\"nodeLabel\"><\/p>\n<p>DDR \u65f6\u949f\u57df<\/p>\n<p><\/span><span style=\"color:#1B5E20 !important\" class=\"nodeLabel\"><\/p>\n<p>GPU \/ NPU \u65f6\u949f\u57df<\/p>\n<p><\/span><span style=\"color:#1B5E20 !important\" class=\"nodeLabel\"><\/p>\n<p>\u5916\u8bbe\u603b\u7ebf\u65f6\u949f\u57df<\/p>\n<p><\/span><span style=\"color:#4A148C !important\" class=\"nodeLabel\"><\/p>\n<p>\u4f4e\u529f\u8017\u5b9e\u65f6\u65f6\u949f\u57df<\/p>\n<p><\/span><\/p>\n<p>\u65f6\u949f\u6811\u901a\u5e38\u5305\u542b PLL\u3001\u5206\u9891\u5668\u3001\u65f6\u949f\u9009\u62e9\u5668\u548c\u65f6\u949f\u95e8\u63a7\u5355\u5143\u7b49\u3002<\/p>\n<p>Linux Common Clock Framework \u63d0\u4f9b\u7edf\u4e00\u63a5\u53e3&#xff0c;\u4f7f\u8bbe\u5907\u9a71\u52a8\u80fd\u591f\u7ba1\u7406\u65f6\u949f\u7684\u542f\u505c\u3001\u7236\u65f6\u949f\u548c\u9891\u7387\u914d\u7f6e\u3002<\/p>\n<h4>10.2 DVFS&#xff1a;CPU \u4e3b\u9891\u8c03\u9891<\/h4>\n<p>DVFS&#xff08;Dynamic Voltage and Frequency Scaling&#xff09;\u662f\u52a8\u6001\u7535\u538b\u9891\u7387\u8c03\u8282\u6280\u672f\u3002<\/p>\n<p>\u5728\u9ad8\u8d1f\u8f7d\u4e0b&#xff0c;\u7cfb\u7edf\u53ef\u80fd\u63d0\u9ad8\u5de5\u4f5c\u9891\u7387&#xff1b;\u5728\u4f4e\u8d1f\u8f7d\u65f6\u964d\u4f4e\u9891\u7387\u4ee5\u51cf\u5c11\u80fd\u8017\u3002<\/p>\n<p>\u52a8\u6001\u529f\u8017\u7684\u5e38\u7528\u8fd1\u4f3c\u516c\u5f0f&#xff1a;<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">Pdynamic\u221d\u03b1CV2f P_{\\\\mathrm{dynamic}} \\\\propto \\\\alpha C V^2 f <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.9694em;vertical-align: -0.2861em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.1389em\">P<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3361em\"><span class=\"\" style=\"top: -2.55em;margin-left: -0.1389em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\"><span class=\"mord mathrm mtight\">dynamic<\/span><\/span><\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.2861em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u221d<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1.0585em;vertical-align: -0.1944em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0037em\">\u03b1<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0715em\">C<\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.2222em\">V<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8641em\"><span class=\"\" style=\"top: -3.113em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.1076em\">f<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>\u5176\u4e2d&#xff1a;<\/p>\n<ul>\n<li><span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u03b1\\\\alpha<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.4306em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0037em\">\u03b1<\/span><\/span><\/span><\/span><\/span>&#xff1a;\u7535\u8def\u6d3b\u52a8\u56e0\u5b50<\/li>\n<li><span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">CC<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0715em\">C<\/span><\/span><\/span><\/span><\/span>&#xff1a;\u6709\u6548\u5f00\u5173\u7535\u5bb9<\/li>\n<li><span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">VV<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.2222em\">V<\/span><\/span><\/span><\/span><\/span>&#xff1a;\u5de5\u4f5c\u7535\u538b<\/li>\n<li><span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">ff<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.8889em;vertical-align: -0.1944em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.1076em\">f<\/span><\/span><\/span><\/span><\/span>&#xff1a;\u5de5\u4f5c\u9891\u7387<\/li>\n<\/ul>\n<p>\u8fd9\u53ea\u662f\u52a8\u6001\u529f\u8017\u7684\u5e38\u7528\u8fd1\u4f3c\u6a21\u578b&#xff0c;\u4e0d\u5305\u62ec\u6cc4\u6f0f\u529f\u8017\u7b49\u5168\u90e8\u56e0\u7d20\u3002<\/p>\n<p>Linux \u7684 CPUFreq \u5b50\u7cfb\u7edf\u652f\u6301 CPU \u6027\u80fd\u72b6\u6001\u548c\u9891\u7387\u7b56\u7565\u7ba1\u7406\u3002<\/p>\n<p>\u5bf9\u4e8e\u7535\u6c60\u4f9b\u7535\u7684\u65e0\u4eba\u673a&#xff0c;SoC \u8bbe\u8ba1\u5fc5\u987b\u5e73\u8861\u7b97\u529b\u3001\u529f\u8017\u3001\u6563\u70ed\u548c\u7eed\u822a\u3002\u4f8b\u5982&#xff0c;\u5728\u67d0\u4e2a\u8fd0\u884c\u6761\u4ef6\u4e0b&#xff0c;\u63d0\u9ad8 CPU \u9891\u7387\u80fd\u591f\u964d\u4f4e\u8ba1\u7b97\u8017\u65f6&#xff0c;\u4f46\u53ef\u80fd\u589e\u52a0\u7cfb\u7edf\u529f\u8017&#xff1b;\u957f\u65f6\u95f4\u9ad8\u8d1f\u8f7d\u8fd8\u53ef\u80fd\u89e6\u53d1\u70ed\u9650\u5236&#xff0c;\u53cd\u800c\u4f7f\u6301\u7eed\u6027\u80fd\u964d\u4f4e\u3002<\/p>\n<h4>10.3 Linux \u80fd\u5426\u627f\u62c5\u5b9e\u65f6\u4efb\u52a1&#xff1f;<\/h4>\n<p>\u666e\u901a Linux \u5c5e\u4e8e\u901a\u7528\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u5f3a\u8c03\u541e\u5410\u91cf\u3001\u516c\u5e73\u6027\u548c\u8d44\u6e90\u5229\u7528\u7387\u3002<\/p>\n<p>PREEMPT_RT \u901a\u8fc7\u589e\u5f3a\u5185\u6838\u62a2\u5360\u80fd\u529b\u3001\u7ebf\u7a0b\u5316\u4e2d\u65ad\u53ca\u8c03\u6574\u9501\u673a\u5236\u7b49\u65b9\u5f0f&#xff0c;\u964d\u4f4e\u9ad8\u4f18\u5148\u7ea7\u4efb\u52a1\u7684\u8c03\u5ea6\u5ef6\u8fdf\u3002<\/p>\n<p>\u4f46\u5e94\u907f\u514d\u4e24\u4e2a\u8bef\u533a&#xff1a;<br \/>\n\u4e00\u662f\u8ba4\u4e3a Linux \u4e00\u5b9a\u4e0d\u80fd\u5b9e\u73b0\u9ad8\u9891\u63a7\u5236\u3002\u5b9e\u9645\u4e0a&#xff0c;\u53ea\u8981\u622a\u6b62\u671f\u9650\u548c\u5b9e\u6d4b\u6700\u574f\u5ef6\u8fdf\u6ee1\u8db3\u8981\u6c42&#xff0c;Linux \u4e5f\u80fd\u627f\u62c5\u8bb8\u591a\u5b9e\u65f6\u4efb\u52a1\u3002<br \/>\n\u4e8c\u662f\u8ba4\u4e3a\u5f00\u542f PREEMPT_RT \u540e\u6240\u6709\u4efb\u52a1\u5c31\u5177\u6709\u786e\u5b9a\u6027\u3002\u5171\u4eab\u603b\u7ebf\u3001\u56fa\u4ef6\u3001DMA\u3001\u8bbe\u5907\u4e2d\u65ad\u4ee5\u53ca\u786c\u4ef6\u54cd\u5e94\u4ecd\u53ef\u80fd\u9020\u6210\u5ef6\u8fdf\u3002<\/p>\n<p>\u7cfb\u7edf\u662f\u5426\u6ee1\u8db3\u5b9e\u65f6\u6027&#xff0c;\u6700\u7ec8\u53d6\u51b3\u4e8e\u7aef\u5230\u7aef\u65f6\u5e8f\u5206\u6790\u548c\u5b9e\u9645\u5e73\u53f0\u9a8c\u8bc1\u3002<\/p>\n<h3>\u5341\u4e00\u3001\u4ee5\u65e0\u4eba\u673a\u4e3a\u4f8b&#xff1a;SoC \u5728\u6574\u673a\u7cfb\u7edf\u4e2d\u7684\u751f\u6001\u4f4d<\/h3>\n<p>\u524d\u9762\u4ecb\u7ecd\u7684\u662f\u901a\u7528\u77e5\u8bc6\u3002\u4e0b\u9762\u4ee5\u4e00\u4e2a\u89c6\u89c9\u65e0\u4eba\u673a\u67b6\u6784\u8bf4\u660e\u5982\u4f55\u7ec4\u5408\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u4ee5\u4e0b\u4e3a\u901a\u7528\u67b6\u6784\u793a\u4f8b&#xff0c;\u5e76\u975e\u5bf9\u7279\u5b9a\u5382\u5546\u4ea7\u54c1\u5185\u90e8\u82af\u7247\u578b\u53f7\u6216\u7cfb\u7edf\u5206\u5de5\u7684\u65ad\u8a00\u3002<\/p>\n<h4>11.1 \u4e00\u79cd\u65e0\u4eba\u673a\u7cfb\u7edf\u67b6\u6784<\/h4>\n<p>#mermaid-svg-KYscOIrt1Wv4nxee{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-KYscOIrt1Wv4nxee .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-KYscOIrt1Wv4nxee .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-KYscOIrt1Wv4nxee .error-icon{fill:#552222;}#mermaid-svg-KYscOIrt1Wv4nxee .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-KYscOIrt1Wv4nxee .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-KYscOIrt1Wv4nxee .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-KYscOIrt1Wv4nxee .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-KYscOIrt1Wv4nxee .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-KYscOIrt1Wv4nxee .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-KYscOIrt1Wv4nxee .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-KYscOIrt1Wv4nxee .marker{fill:#333333;stroke:#333333;}#mermaid-svg-KYscOIrt1Wv4nxee .marker.cross{stroke:#333333;}#mermaid-svg-KYscOIrt1Wv4nxee svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-KYscOIrt1Wv4nxee p{margin:0;}#mermaid-svg-KYscOIrt1Wv4nxee .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-KYscOIrt1Wv4nxee .cluster-label text{fill:#333;}#mermaid-svg-KYscOIrt1Wv4nxee .cluster-label span{color:#333;}#mermaid-svg-KYscOIrt1Wv4nxee .cluster-label span p{background-color:transparent;}#mermaid-svg-KYscOIrt1Wv4nxee .label text,#mermaid-svg-KYscOIrt1Wv4nxee span{fill:#333;color:#333;}#mermaid-svg-KYscOIrt1Wv4nxee .node rect,#mermaid-svg-KYscOIrt1Wv4nxee .node circle,#mermaid-svg-KYscOIrt1Wv4nxee .node ellipse,#mermaid-svg-KYscOIrt1Wv4nxee .node polygon,#mermaid-svg-KYscOIrt1Wv4nxee .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-KYscOIrt1Wv4nxee .rough-node .label text,#mermaid-svg-KYscOIrt1Wv4nxee .node .label text,#mermaid-svg-KYscOIrt1Wv4nxee .image-shape .label,#mermaid-svg-KYscOIrt1Wv4nxee .icon-shape .label{text-anchor:middle;}#mermaid-svg-KYscOIrt1Wv4nxee .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-KYscOIrt1Wv4nxee .rough-node .label,#mermaid-svg-KYscOIrt1Wv4nxee .node .label,#mermaid-svg-KYscOIrt1Wv4nxee .image-shape .label,#mermaid-svg-KYscOIrt1Wv4nxee .icon-shape .label{text-align:center;}#mermaid-svg-KYscOIrt1Wv4nxee .node.clickable{cursor:pointer;}#mermaid-svg-KYscOIrt1Wv4nxee .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-KYscOIrt1Wv4nxee .arrowheadPath{fill:#333333;}#mermaid-svg-KYscOIrt1Wv4nxee .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-KYscOIrt1Wv4nxee .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-KYscOIrt1Wv4nxee .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-KYscOIrt1Wv4nxee .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-KYscOIrt1Wv4nxee .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-KYscOIrt1Wv4nxee .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-KYscOIrt1Wv4nxee .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-KYscOIrt1Wv4nxee .cluster text{fill:#333;}#mermaid-svg-KYscOIrt1Wv4nxee .cluster span{color:#333;}#mermaid-svg-KYscOIrt1Wv4nxee div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-KYscOIrt1Wv4nxee .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-KYscOIrt1Wv4nxee rect.text{fill:none;stroke-width:0;}#mermaid-svg-KYscOIrt1Wv4nxee .icon-shape,#mermaid-svg-KYscOIrt1Wv4nxee .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-KYscOIrt1Wv4nxee .icon-shape p,#mermaid-svg-KYscOIrt1Wv4nxee .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-KYscOIrt1Wv4nxee .icon-shape .label rect,#mermaid-svg-KYscOIrt1Wv4nxee .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-KYscOIrt1Wv4nxee .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-KYscOIrt1Wv4nxee .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-KYscOIrt1Wv4nxee :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}#mermaid-svg-KYscOIrt1Wv4nxee .sensor&gt;*{fill:#E3F2FD!important;stroke:#1E88E5!important;stroke-width:2px!important;color:#0D47A1!important;}#mermaid-svg-KYscOIrt1Wv4nxee .sensor span{fill:#E3F2FD!important;stroke:#1E88E5!important;stroke-width:2px!important;color:#0D47A1!important;}#mermaid-svg-KYscOIrt1Wv4nxee .sensor tspan{fill:#0D47A1!important;}#mermaid-svg-KYscOIrt1Wv4nxee .soc&gt;*{fill:#FFF3E0!important;stroke:#FB8C00!important;stroke-width:2px!important;color:#E65100!important;}#mermaid-svg-KYscOIrt1Wv4nxee .soc span{fill:#FFF3E0!important;stroke:#FB8C00!important;stroke-width:2px!important;color:#E65100!important;}#mermaid-svg-KYscOIrt1Wv4nxee .soc tspan{fill:#E65100!important;}#mermaid-svg-KYscOIrt1Wv4nxee .fc&gt;*{fill:#E8F5E9!important;stroke:#43A047!important;stroke-width:2px!important;color:#1B5E20!important;}#mermaid-svg-KYscOIrt1Wv4nxee .fc span{fill:#E8F5E9!important;stroke:#43A047!important;stroke-width:2px!important;color:#1B5E20!important;}#mermaid-svg-KYscOIrt1Wv4nxee .fc tspan{fill:#1B5E20!important;}#mermaid-svg-KYscOIrt1Wv4nxee .comm&gt;*{fill:#F3E5F5!important;stroke:#8E24AA!important;stroke-width:2px!important;color:#4A148C!important;}#mermaid-svg-KYscOIrt1Wv4nxee .comm span{fill:#F3E5F5!important;stroke:#8E24AA!important;stroke-width:2px!important;color:#4A148C!important;}#mermaid-svg-KYscOIrt1Wv4nxee .comm tspan{fill:#4A148C!important;}#mermaid-svg-KYscOIrt1Wv4nxee .act&gt;*{fill:#FCE4EC!important;stroke:#D81B60!important;stroke-width:2px!important;color:#880E4F!important;}#mermaid-svg-KYscOIrt1Wv4nxee .act span{fill:#FCE4EC!important;stroke:#D81B60!important;stroke-width:2px!important;color:#880E4F!important;}#mermaid-svg-KYscOIrt1Wv4nxee .act tspan{fill:#880E4F!important;}#mermaid-svg-KYscOIrt1Wv4nxee .inner&gt;*{fill:#FFFFFF!important;stroke:#BDBDBD!important;stroke-width:1px!important;color:#37474F!important;}#mermaid-svg-KYscOIrt1Wv4nxee .inner span{fill:#FFFFFF!important;stroke:#BDBDBD!important;stroke-width:1px!important;color:#37474F!important;}#mermaid-svg-KYscOIrt1Wv4nxee .inner tspan{fill:#37474F!important;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u611f\u77e5 \/ \u89c4\u5212<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u89c6\u9891\u6570\u636e<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u98de\u63a7\u5904\u7406\u5668<\/p>\n<p><\/span><span style=\"color:#37474F !important\" class=\"nodeLabel\"><\/p>\n<p>IMU \u6570\u636e\u5904\u7406<\/p>\n<p><\/span><span style=\"color:#37474F !important\" class=\"nodeLabel\"><\/p>\n<p>\u72b6\u6001\u4f30\u8ba1<\/p>\n<p><\/span><span style=\"color:#37474F !important\" class=\"nodeLabel\"><\/p>\n<p>\u59ff\u6001 \/ \u4f4d\u7f6e\u63a7\u5236<\/p>\n<p><\/span><span style=\"color:#37474F !important\" class=\"nodeLabel\"><\/p>\n<p>\u5b89\u5168\u72b6\u6001\u7ba1\u7406<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u89c6\u89c9\u8ba1\u7b97 SoC<\/p>\n<p><\/span><span style=\"color:#37474F !important\" class=\"nodeLabel\"><\/p>\n<p>ISP \u56fe\u50cf\u5904\u7406<\/p>\n<p><\/span><span style=\"color:#37474F !important\" class=\"nodeLabel\"><\/p>\n<p>CPU \u611f\u77e5\u4e0e\u89c4\u5212<\/p>\n<p><\/span><span style=\"color:#37474F !important\" class=\"nodeLabel\"><\/p>\n<p>NPU AI \u63a8\u7406<\/p>\n<p><\/span><span style=\"color:#37474F !important\" class=\"nodeLabel\"><\/p>\n<p>VPU \u89c6\u9891\u7f16\u7801<\/p>\n<p><\/span><span style=\"color:#37474F !important\" class=\"nodeLabel\"><\/p>\n<p>Linux \/ RTOS<\/p>\n<p><\/span><span style=\"color:#0D47A1 !important\" class=\"nodeLabel\"><\/p>\n<p>\u6444\u50cf\u5934 \/ \u6df1\u5ea6\u4f20\u611f\u5668<\/p>\n<p><\/span><span style=\"color:#E65100 !important\" class=\"nodeLabel\"><\/p>\n<p>\u89c6\u89c9\u8ba1\u7b97 SoC<\/p>\n<p><\/span><span style=\"color:#1B5E20 !important\" class=\"nodeLabel\"><\/p>\n<p>\u98de\u63a7\u5904\u7406\u5668<\/p>\n<p><\/span><span style=\"color:#4A148C !important\" class=\"nodeLabel\"><\/p>\n<p>\u56fe\u4f20\u901a\u4fe1\u7cfb\u7edf<\/p>\n<p><\/span><span style=\"color:#880E4F !important\" class=\"nodeLabel\"><\/p>\n<p>\u7535\u673a\u6267\u884c\u7cfb\u7edf<\/p>\n<p><\/span><\/p>\n<p>\u771f\u6b63\u7684\u4ea7\u54c1\u4e2d&#xff0c;\u4e0a\u8ff0\u529f\u80fd\u53ef\u80fd\u96c6\u4e2d\u5728\u4e00\u9897 SoC&#xff0c;\u4e5f\u53ef\u80fd\u5206\u6563\u5728\u591a\u4e2a SoC\u3001MCU\u3001DSP\u3001FPGA \u6216\u4e13\u7528\u82af\u7247\u4e0a\u3002<\/p>\n<p>\u89c6\u89c9 SoC \u66f4\u4fa7\u91cd\u9ad8\u541e\u5410\u8ba1\u7b97&#xff0c;\u800c\u98de\u63a7\u5904\u7406\u5668\u66f4\u5173\u6ce8\u63a7\u5236\u65f6\u5e8f\u3001\u7a33\u5b9a\u6027\u4e0e\u6545\u969c\u5b89\u5168\u3002<\/p>\n<h4>11.2 \u6444\u50cf\u5934\u5230 AI \u63a8\u7406<\/h4>\n<p>\u5047\u8bbe\u4e00\u9897 SoC \u9700\u8981\u5904\u7406\u6444\u50cf\u5934 RAW \u6570\u636e&#xff0c;\u56fe\u50cf\u5904\u7406\u6d41\u6c34\u7ebf&#xff1a;<\/p>\n<p>Image Sensor \u56fe\u50cf\u4f20\u611f\u5668<br \/>\n     \u2502<br \/>\n     \u2502 MIPI CSI-2 \u603b\u7ebf<br \/>\n     \u25bc<br \/>\nCSI Receiver \u63a5\u6536\u7aef<br \/>\n     \u2502<br \/>\n     \u25bc<br \/>\nISP \u56fe\u50cf\u4fe1\u53f7\u5904\u7406\u5668<br \/>\n     \u2502<br \/>\n     \u2502 \u53bb\u9a6c\u8d5b\u514b\u3001\u964d\u566a\u3001\u989c\u8272\u5904\u7406\u7b49<br \/>\n     \u25bc<br \/>\nImage Buffer \u56fe\u50cf\u5e27\u7f13\u5b58<br \/>\n     \u2502<br \/>\n     \u2502 DMA \/ Buffer Sharing<br \/>\n     \u25bc<br \/>\n\u9884\u5904\u7406\u6a21\u5757<br \/>\n     \u2502<br \/>\n     \u2502 Resize \/ Normalize<br \/>\n     \u25bc<br \/>\nNPU \/ GPU \/ CPU \u8ba1\u7b97\u5355\u5143<br \/>\n     \u2502<br \/>\n     \u25bc<br \/>\nAI Inference \u63a8\u7406\u6267\u884c<br \/>\n     \u2502<br \/>\n     \u25bc<br \/>\nDetection \/ Tracking \u540e\u5904\u7406<br \/>\n     \u2502<br \/>\n     \u25bc<br \/>\n\u63a7\u5236\u6216\u4e1a\u52a1\u5e94\u7528<\/p>\n<p>\u4e0d\u540c SoC \u5bf9 RAW\u3001ISP \u548c\u5185\u5b58\u7684\u8fde\u63a5\u65b9\u5f0f\u53ef\u80fd\u5b58\u5728\u5dee\u5f02&#xff0c;\u90e8\u5206\u6d41\u6c34\u7ebf\u53ef\u4ee5\u505a\u5230\u6d41\u5f0f\u5904\u7406\u4e0d\u843d\u5730\u3002<\/p>\n<h4>11.3  Zero-Copy<\/h4>\n<p>\u5047\u8bbe\u6444\u50cf\u5934\u8f93\u5165\u5206\u8fa8\u7387\u4e3a 1920 \u00d7 1080&#xff0c;\u5e27\u7387 60 FPS&#xff0c;\u56fe\u50cf\u683c\u5f0f\u4e3a\u7d27\u51d1\u5b58\u50a8 RAW12\u3002<\/p>\n<p>\u7406\u8bba\u6709\u6548\u6570\u636e\u91cf\u8ba1\u7b97&#xff1a;<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">B&#061;1920\u00d71080\u00d7128\u00d760\u2248186.6\u00a0MB\/s B &#061; 1920 \\\\times 1080 \\\\times \\\\frac{12}{8} \\\\times 60 \\\\approx 186.6\\\\ \\\\text{MB\/s} <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6833em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0502em\">B<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&#061;<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.7278em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">1920<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.7278em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">1080<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 2.0074em;vertical-align: -0.686em\"><\/span><span class=\"mord\"><span class=\"mopen nulldelimiter\"><\/span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 1.3214em\"><span class=\"\" style=\"top: -2.314em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">8<\/span><\/span><\/span><span class=\"\" style=\"top: -3.23em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"frac-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3.677em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">12<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.686em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><span class=\"mclose nulldelimiter\"><\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u00d7<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 0.6444em\"><\/span><span class=\"mord\">60<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">\u2248<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord\">186.6<\/span><span class=\"mspace\">\u00a0<\/span><span class=\"mord text\"><span class=\"mord\">MB\/s<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>\u8fd9\u8fd8\u6ca1\u6709\u8ba1\u7b97\u4f20\u8f93\u534f\u8bae\u5f00\u9500\u3001\u884c\u5bf9\u9f50\u3001\u5e27\u586b\u5145\u4ee5\u53ca\u540e\u7eed\u5904\u7406\u4ea7\u751f\u7684\u6570\u636e\u6d41\u91cf\u3002<\/p>\n<p>\u5982\u679c\u4e00\u5e27\u56fe\u50cf\u7ecf\u5386\u591a\u6b21\u5b8c\u6574\u7684 DDR \u8bfb\u5199\u548c CPU \u62f7\u8d1d&#xff0c;\u5c31\u4f1a\u8fdb\u4e00\u6b65\u6d88\u8017\u5e26\u5bbd\u3001CPU \u8d44\u6e90\u4ee5\u53ca\u5185\u5b58\u7cfb\u7edf\u529f\u8017\u3002<\/p>\n<p>\u6240\u4ee5\u73b0\u4ee3\u89c6\u89c9 SoC \u8f6f\u4ef6\u6808\u4f1a\u91cd\u70b9\u5173\u6ce8&#xff1a;Zero-Copy\u3001DMA-BUF\u3001\u786c\u4ef6\u52a0\u901f\u3001\u5f02\u6b65\u6d41\u6c34\u7ebf\u548c Buffer \u751f\u547d\u5468\u671f\u7ba1\u7406\u3002<\/p>\n<p>Linux \u7684 DMA-BUF \u6846\u67b6\u5141\u8bb8\u591a\u4e2a\u786c\u4ef6\u8bbe\u5907\u6216\u9a71\u52a8\u5171\u4eab Buffer&#xff0c;\u5e76\u901a\u8fc7\u540c\u6b65\u673a\u5236\u534f\u8c03\u5f02\u6b65\u8bbf\u95ee\u3002<\/p>\n<p>\u4f46\u8fd9\u91cc\u6709\u4e00\u4e2a\u9700\u8981\u7279\u522b\u6ce8\u610f\u7684\u7ec6\u8282&#xff1a;<br \/>\nZero-Copy \u4e0d\u4ee3\u8868\u786c\u4ef6\u6ca1\u6709\u6267\u884c\u6570\u636e\u4f20\u8f93&#xff0c;\u4e5f\u4e0d\u4ee3\u8868\u4e00\u5b9a\u6ca1\u6709\u683c\u5f0f\u8f6c\u6362\u6216\u65b0\u7684 Buffer\u3002 \u5b83\u4e3b\u8981\u5f3a\u8c03\u6d88\u9664\u4e0d\u5fc5\u8981\u7684\u8f6f\u4ef6\u6570\u636e\u590d\u5236\u3002<\/p>\n<h4>11.4 \u5ef6\u8fdf\u4e0e\u541e\u5410\u91cf\u662f\u4e24\u4e2a\u4e0d\u540c\u6307\u6807<\/h4>\n<p>\u5982\u679c\u89c6\u9891\u5904\u7406\u7cfb\u7edf\u8fbe\u5230 60 FPS&#xff0c;\u8bf4\u660e\u7a33\u5b9a\u72b6\u6001\u4e0b\u5e73\u5747\u6bcf\u7ea6 16.7 ms \u8f93\u51fa\u4e00\u5e27&#xff0c;\u4f46\u4e0d\u4ee3\u8868\u6bcf\u4e00\u5e27\u4ece\u66dd\u5149\u5230\u8f93\u51fa\u7684\u7aef\u5230\u7aef\u5ef6\u8fdf\u53ea\u6709 16.7 ms\u3002<\/p>\n<p>\u6d41\u6c34\u7ebf\u53ef\u4ee5\u5728\u524d\u4e00\u5e27\u8fdb\u884c AI \u63a8\u7406\u65f6&#xff0c;\u540c\u65f6\u91c7\u96c6\u540e\u4e00\u5e27\u3002<\/p>\n<p>\u56e0\u6b64&#xff1a;<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">Throughput\u22601Latency \\\\text{Throughput} \\\\neq \\\\frac{1}{\\\\text{Latency}} <\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.8889em;vertical-align: -0.1944em\"><\/span><span class=\"mord text\"><span class=\"mord\">Throughput<\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\"><span class=\"mrel\"><span class=\"mord vbox\"><span class=\"thinbox\"><span class=\"rlap\"><span class=\"strut\" style=\"height: 0.8889em;vertical-align: -0.1944em\"><\/span><span class=\"inner\"><span class=\"mord\"><span class=\"mrel\">\ue020<\/span><\/span><\/span><span class=\"fix\"><\/span><\/span><\/span><\/span><\/span><span class=\"mspace nobreak\"><\/span><span class=\"mrel\">&#061;<\/span><\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><\/span><span class=\"base\"><span class=\"strut\" style=\"height: 2.2019em;vertical-align: -0.8804em\"><\/span><span class=\"mord\"><span class=\"mopen nulldelimiter\"><\/span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 1.3214em\"><span class=\"\" style=\"top: -2.314em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord text\"><span class=\"mord\">Latency<\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.23em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"frac-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3.677em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">1<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8804em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><span class=\"mclose nulldelimiter\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p>\u5728\u65e0\u4eba\u673a\u611f\u77e5\u7cfb\u7edf\u4e2d&#xff0c;\u9664\u4e86\u5e27\u7387&#xff0c;\u8fd8\u9700\u8981\u6d4b\u91cf&#xff1a;<\/p>\n<ul>\n<li>Sensor \u66dd\u5149\u5230\u6570\u636e\u53ef\u7528\u7684\u5ef6\u8fdf\u3002<\/li>\n<li>ISP\u3001DMA \u548c\u63a8\u7406\u6267\u884c\u65f6\u95f4\u3002<\/li>\n<li>\u961f\u5217\u7b49\u5f85\u4e0e\u7ebf\u7a0b\u8c03\u5ea6\u5ef6\u8fdf\u3002<\/li>\n<li>\u65f6\u95f4\u6233\u7cbe\u5ea6\u548c\u8de8\u8bbe\u5907\u540c\u6b65\u8bef\u5dee\u3002<\/li>\n<li>\u7aef\u5230\u7aef\u6700\u574f\u5ef6\u8fdf\u53ca\u5ef6\u8fdf\u6296\u52a8\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u6307\u6807\u5f80\u5f80\u6bd4\u5355\u7eaf\u7684 TOPS \u6216 CPU \u4e3b\u9891\u66f4\u80fd\u4f53\u73b0\u7cfb\u7edf\u5b9e\u9645\u6027\u80fd\u3002<\/p>\n<h3>\u5341\u4e8c\u3001\u5982\u4f55\u5206\u6790\u964c\u751f SoC<\/h3>\n<h4>12.1 \u516d\u4e2a\u5173\u952e\u7ef4\u5ea6<\/h4>\n<table>\n<tr>\u7ef4\u5ea6\u9700\u8981\u641e\u6e05\u695a\u7684\u95ee\u9898<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u8ba1\u7b97\u8d44\u6e90<\/td>\n<td align=\"left\">CPU \u67b6\u6784\u3001\u6838\u5fc3\u6570\u3001\u5404\u7ea7Cache\u3001GPU\/NPU\/DSP\u7b97\u529b\u4e0e\u89c4\u683c<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5185\u5b58\u7cfb\u7edf<\/td>\n<td align=\"left\">DDR \u7c7b\u578b\u3001\u7406\u8bba\u5e26\u5bbd\u3001\u7247\u4e0aSRAM\u3001TCM\u3001Cache\u4e00\u81f4\u6027\u673a\u5236<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u4e92\u8fde\u53ca\u5916\u8bbe<\/td>\n<td align=\"left\">\u7247\u5185\u4e92\u8fde\u67b6\u6784\u3001DMA\u63a7\u5236\u5668\u3001CSI\/USB\/PCIe\/CAN\/UART\u7b49\u63a5\u53e3<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5b9e\u65f6\u53ca\u5b89\u5168<\/td>\n<td align=\"left\">RTOS\u6838\u5fc3\u6570\u91cf\u3001\u5b9a\u65f6\u5668\u7cbe\u5ea6\u3001\u4e2d\u65ad\u63a7\u5236\u5668\u3001\u770b\u95e8\u72d7\u3001\u786c\u4ef6\u9694\u79bb<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u8f6f\u4ef6\u751f\u6001<\/td>\n<td align=\"left\">BSP\u6210\u719f\u5ea6\u3001Linux\u5185\u6838\u7248\u672c\u3001Bootloader\u3001\u5b98\u65b9SDK\u3001\u9a71\u52a8\u7ef4\u62a4\u5468\u671f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u7cfb\u7edf\u7ea6\u675f<\/td>\n<td align=\"left\">\u529f\u8017\u66f2\u7ebf\u3001\u6e29\u5ea6\u8303\u56f4\u3001\u5c01\u88c5\u5c3a\u5bf8\u3001\u4f9b\u7535\u8981\u6c42\u3001\u82af\u7247\u6210\u672c\u3001\u957f\u671f\u4f9b\u8d27\u5468\u671f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0d\u8981\u53ea\u770b NPU \u7684 TOPS\u3001CPU \u7684 GHz \u6216 DDR \u7684\u7406\u8bba\u5e26\u5bbd\u3002\u5b9e\u9645\u6027\u80fd\u8fd8\u53d6\u51b3\u4e8e\u5185\u5b58\u8bbf\u95ee\u6a21\u5f0f\u3001\u6570\u636e\u7c7b\u578b\u3001\u7b97\u5b50\u652f\u6301\u3001\u7f16\u8bd1\u5668\u548c\u8fd0\u884c\u65f6\u7b49\u591a\u91cd\u56e0\u7d20\u3002<\/p>\n<h4>12.2 Linux SoC \u5e38\u7528\u8c03\u8bd5\u547d\u4ee4<\/h4>\n<p>\u5728\u6709\u6743\u9650\u7684 Linux \u5f00\u53d1\u677f\u4e0a&#xff0c;\u53ef\u4ee5\u5148\u7528\u8fd9\u4e9b\u547d\u4ee4\u5feb\u901f\u89c2\u5bdf\u7cfb\u7edf\u72b6\u6001&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5185\u6838\u53ca CPU \u4fe1\u606f<\/span><br \/>\n<span class=\"token function\">uname<\/span> <span class=\"token parameter variable\">-a<\/span><br \/>\nlscpu<\/p>\n<p><span class=\"token comment\"># \u5185\u5b58\u72b6\u6001<\/span><br \/>\n<span class=\"token function\">cat<\/span> \/proc\/meminfo<\/p>\n<p><span class=\"token comment\"># \u4e2d\u65ad\u7edf\u8ba1<\/span><br \/>\n<span class=\"token function\">cat<\/span> \/proc\/interrupts<\/p>\n<p><span class=\"token comment\"># \u5185\u6838\u542f\u52a8\u65e5\u5fd7<\/span><br \/>\n<span class=\"token function\">dmesg<\/span><\/p>\n<p><span class=\"token comment\"># \u8bbe\u5907\u6811\u8282\u70b9&#xff08;\u5185\u6838\u4e0e\u8bbe\u5907\u652f\u6301\u65f6&#xff09;<\/span><br \/>\n<span class=\"token function\">ls<\/span> \/proc\/device-tree\/<\/p>\n<p><span class=\"token comment\"># \u65f6\u949f\u4e0e CPU \u9891\u7387\u7b56\u7565<\/span><br \/>\n<span class=\"token function\">ls<\/span> \/sys\/devices\/system\/cpu\/cpufreq\/<\/p>\n<p><span class=\"token comment\"># \u8fdc\u7aef\u5904\u7406\u5668\u6846\u67b6&#xff08;\u542f\u7528\u65f6&#xff09;<\/span><br \/>\n<span class=\"token function\">ls<\/span> \/sys\/class\/remoteproc\/<\/p>\n<p><span class=\"token comment\"># \u5e73\u53f0\u8bbe\u5907\u4e0e\u603b\u7ebf<\/span><br \/>\n<span class=\"token function\">ls<\/span> \/sys\/bus\/platform\/devices\/<\/p>\n<p>\u8fdb\u4e00\u6b65\u5206\u6790\u6027\u80fd\u65f6&#xff0c;\u53ef\u4ee5\u4f7f\u7528 perf\u3001ftrace\u3001trace-cmd \u7b49\u5de5\u5177\u3002\u5728\u89c6\u89c9\u5e73\u53f0\u4e0a\u8fd8\u9700\u8981\u4e86\u89e3 V4L2\u3001media controller\u3001DMA-BUF \u548c\u5382\u5546\u63d0\u4f9b\u7684 ISP\/NPU \u5206\u6790\u5de5\u5177\u3002<\/p>\n<p>\u5bf9\u4e8e\u5d4c\u5165\u5f0f\u89c6\u89c9\u4e0e\u673a\u5668\u4eba\u5e94\u7528\u5f00\u53d1\u65b9\u5411&#xff0c;\u5efa\u8bae\u4f18\u5148\u7814\u7a76 Cortex-A \u5185\u5b58\u7cfb\u7edf\u3001DMA\/Cache Coherency\u3001Linux BSP\u3001\u5f02\u6784\u901a\u4fe1&#xff0c;\u4ee5\u53ca ISP \u5230\u7b97\u6cd5\u7684\u6570\u636e\u94fe\u8def\u3002\u8fd9\u51e0\u4e2a\u4e3b\u9898\u80fd\u591f\u76f4\u63a5\u4e32\u8054\u8d77\u786c\u4ef6\u8d44\u6e90\u3001\u64cd\u4f5c\u7cfb\u7edf\u548c\u5e94\u7528\u7a0b\u5e8f&#xff0c;\u662f\u4ece\u5e94\u7528\u5f00\u53d1\u8fdb\u4e00\u6b65\u7406\u89e3\u6574\u5957\u5d4c\u5165\u5f0f\u8fd0\u7b97\u5e73\u53f0\u7684\u5173\u952e\u3002<\/p>\n<p>\u6700\u7ec8\u5efa\u8bae\u8fbe\u5230\u7684\u80fd\u529b\u662f&#xff1a;<br \/>\n\u770b\u5230\u4e00\u5f20 SoC Block Diagram&#xff0c;\u5c31\u80fd\u7406\u89e3\u5404\u8ba1\u7b97\u6a21\u5757\u7684\u804c\u8d23\u3001\u6570\u636e\u5982\u4f55\u6d41\u52a8\u3001\u8f6f\u4ef6\u5982\u4f55\u8c03\u5ea6\u786c\u4ef6\u3001\u6f5c\u5728\u7684\u6027\u80fd\u74f6\u9888\u5728\u54ea\u91cc&#xff0c;\u4ee5\u53ca\u5e94\u8be5\u67e5\u9605\u54ea\u4efd\u5b98\u65b9\u6587\u6863\u8fdb\u884c\u9a8c\u8bc1\u3002<\/p>\n<p>            <span id=\"quality-guide-article-end\" aria-hidden=\"true\" style=\"display:block;height:1px;margin-bottom:-1px\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SoC&#xff08;System on Chip&#xff0c;\u7247\u4e0a\u7cfb\u7edf&#xff09;\u662f\u73b0\u4ee3\u5d4c\u5165\u5f0f\u8ba1\u7b97\u5e73\u53f0\u7684\u6838\u5fc3\u3002\u4ece\u65e0\u4eba\u673a\u3001\u673a\u5668\u4eba\u3001\u667a\u80fd\u76f8\u673a&#xff0c;\u5230\u6c7d\u8f66\u57df\u63a7\u5236\u5668\u548c\u5de5\u4e1a\u89c6\u89c9\u8bbe\u5907&#xff0c;\u90fd\u5927\u91cf\u4f7f\u7528 SoC\u3002<br \/>\n\u5bf9\u4e8e\u5d4c\u5165\u5f0f\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u5b66\u4e60 SoC&#xff0c;\u4e0d\u4ec5\u662f CPU \u578b\u53f7\u3001\u6838\u5fc3\u6570\u548c\u4e3b\u9891&#xff0c;\u66f4\u91cd\u8981\u7684\u662f\u7406\u89e3&#xff1a;<br \/>\n\u786c\u4ef6\u67b6\u6784&#xff1a;CPU\u3001MCU\u3001GPU\u3001NPU\u3001ISP\u3001\u5185\u5b58\u63a7\u5236\u5668\u548c\u5916\u8bbe\u5982\u4f55\u96c6\u6210\u3002\u6570\u636e\u901a\u8def&#xff1a;CPU \u5982<\/p>\n","protected":false},"author":2,"featured_media":124649,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[14294,55,58,219],"topic":[],"class_list":["post-124651","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-14294","tag-c","tag-linux","tag-219"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5d4c\u5165\u5f0f SoC \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/124651.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5d4c\u5165\u5f0f SoC \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"SoC&#xff08;System on Chip&#xff0c;\u7247\u4e0a\u7cfb\u7edf&#xff09;\u662f\u73b0\u4ee3\u5d4c\u5165\u5f0f\u8ba1\u7b97\u5e73\u53f0\u7684\u6838\u5fc3\u3002\u4ece\u65e0\u4eba\u673a\u3001\u673a\u5668\u4eba\u3001\u667a\u80fd\u76f8\u673a&#xff0c;\u5230\u6c7d\u8f66\u57df\u63a7\u5236\u5668\u548c\u5de5\u4e1a\u89c6\u89c9\u8bbe\u5907&#xff0c;\u90fd\u5927\u91cf\u4f7f\u7528 SoC\u3002 \u5bf9\u4e8e\u5d4c\u5165\u5f0f\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u5b66\u4e60 SoC&#xff0c;\u4e0d\u4ec5\u662f CPU \u578b\u53f7\u3001\u6838\u5fc3\u6570\u548c\u4e3b\u9891&#xff0c;\u66f4\u91cd\u8981\u7684\u662f\u7406\u89e3&#xff1a; \u786c\u4ef6\u67b6\u6784&#xff1a;CPU\u3001MCU\u3001GPU\u3001NPU\u3001ISP\u3001\u5185\u5b58\u63a7\u5236\u5668\u548c\u5916\u8bbe\u5982\u4f55\u96c6\u6210\u3002\u6570\u636e\u901a\u8def&#xff1a;CPU \u5982\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/124651.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-19T00:40:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261119004042-6afe458a4cea6.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"35 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/124651.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/124651.html\",\"name\":\"\u5d4c\u5165\u5f0f SoC \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-19T00:40:45+00:00\",\"dateModified\":\"2026-11-19T00:40:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/124651.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/124651.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/124651.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5d4c\u5165\u5f0f SoC \u7cfb\u7edf\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5d4c\u5165\u5f0f SoC \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/124651.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5d4c\u5165\u5f0f SoC \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"SoC&#xff08;System on Chip&#xff0c;\u7247\u4e0a\u7cfb\u7edf&#xff09;\u662f\u73b0\u4ee3\u5d4c\u5165\u5f0f\u8ba1\u7b97\u5e73\u53f0\u7684\u6838\u5fc3\u3002\u4ece\u65e0\u4eba\u673a\u3001\u673a\u5668\u4eba\u3001\u667a\u80fd\u76f8\u673a&#xff0c;\u5230\u6c7d\u8f66\u57df\u63a7\u5236\u5668\u548c\u5de5\u4e1a\u89c6\u89c9\u8bbe\u5907&#xff0c;\u90fd\u5927\u91cf\u4f7f\u7528 SoC\u3002 \u5bf9\u4e8e\u5d4c\u5165\u5f0f\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u5b66\u4e60 SoC&#xff0c;\u4e0d\u4ec5\u662f CPU \u578b\u53f7\u3001\u6838\u5fc3\u6570\u548c\u4e3b\u9891&#xff0c;\u66f4\u91cd\u8981\u7684\u662f\u7406\u89e3&#xff1a; \u786c\u4ef6\u67b6\u6784&#xff1a;CPU\u3001MCU\u3001GPU\u3001NPU\u3001ISP\u3001\u5185\u5b58\u63a7\u5236\u5668\u548c\u5916\u8bbe\u5982\u4f55\u96c6\u6210\u3002\u6570\u636e\u901a\u8def&#xff1a;CPU \u5982","og_url":"https:\/\/www.wsisp.com\/helps\/124651.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-19T00:40:45+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261119004042-6afe458a4cea6.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"35 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/124651.html","url":"https:\/\/www.wsisp.com\/helps\/124651.html","name":"\u5d4c\u5165\u5f0f SoC \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-19T00:40:45+00:00","dateModified":"2026-11-19T00:40:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/124651.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/124651.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/124651.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5d4c\u5165\u5f0f SoC \u7cfb\u7edf"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/124651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=124651"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/124651\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/124649"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=124651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=124651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=124651"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=124651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}