{"id":125,"date":"2024-03-31T21:25:33","date_gmt":"2024-03-31T13:25:33","guid":{"rendered":"https:\/\/yewpo.top\/?p=125"},"modified":"2024-03-31T21:25:33","modified_gmt":"2024-03-31T13:25:33","slug":"cohort-%e7%ac%94%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/www.yewpo.top\/index.php\/125\/","title":{"rendered":"Cohort \u7b14\u8bb0"},"content":{"rendered":"<h1>Cohort \u7b14\u8bb0<\/h1>\n<h2>1 \u5f15\u5165<\/h2>\n<p>\u4e3a\u4e86\u6ee1\u8db3\u7528\u6237\u5bf9\u6027\u80fd\u7684\u9700\u8981\uff0c\u7247\u4e0a\u7cfb\u7edf\uff08SoCs\uff09\u5f15\u5165\u4e86\u8bb8\u591a\u9ad8\u6548\u4e13\u7528\u52a0\u901f\u5668\u3002\u8fd9\u6837\u5bfc\u81f4\u4e86\u7247\u4e0a\u7cfb\u7edf\u7684\u5f02\u6784\u6027\u8d8a\u6765\u8d8a\u5f3a\u3002\u5982\u4eca\uff0c\u5bf9\u7f16\u7a0b\u52a0\u901f\u5668\uff08Accelerator\uff09\u7684\u8f6f\u4ef6\u62bd\u8c61\u4f1a\u6cc4\u9732\u786c\u4ef6\u7684\u7ec6\u8282\u3001\u9700\u8981\u66f4\u6539\u6570\u636e\u683c\u5f0f\u4ee5\u53ca\u624b\u52a8\u5185\u5b58\u548c\u4e00\u81f4\u6027\u7ba1\u7406\u3002\u8fd9\u79cd\u9762\u5411\u786c\u4ef6\u7684\u65b9\u5f0f\u6781\u5927\u7684\u635f\u5bb3\u4e86\u901a\u7528\u6027\uff0c\u800c\u4e14\u9700\u8981\u719f\u6089\u786c\u4ef6\u6765\u6709\u6548\u5730\u7f16\u7a0b\u52a0\u901f\u5668\u3002\u627e\u5230\u4e00\u79cd\u66f4\u9ad8\u6548\u7684\u7ba1\u7406\u786c\u4ef6\u52a0\u901f\u5668\u4ee5\u53ca\u786c\u4ef6\u52a0\u901f\u5668\u4e4b\u95f4\u7684\u4ea4\u4e92\u662f\u6709\u610f\u4e49\u7684\u3002\u4e00\u4e2a\u7406\u60f3\u7684\u89e3\u51b3\u65b9\u5f0f\u5e94\u8be5\u5177\u6709\u4ee5\u4e0b\u7279\u5f81\uff1a<\/p>\n<ul>\n<li>\u4e00\u4e2a\u80fd\u5728\u8f6f\u4ef6\u548c\u786c\u4ef6\u4e4b\u95f4\u9ad8\u6548\u6c9f\u901a\u7684\u666e\u904d\u7075\u6d3b\u7684\u786c\u4ef6\u63a5\u53e3\u3002<\/li>\n<li>\u4e00\u4e2a\u57fa\u4e8e\u73b0\u6709\u8f6f\u4ef6\u62bd\u8c61\u7684\u8f6f\u4ef6\u8303\u5f0f\u4ee5\u51cf\u5c11\u65b0\u589e\u52a0\u901f\u5668\u5bf9\u8f6f\u4ef6\u7684\u4fee\u6539\u3002<\/li>\n<\/ul>\n<h3>1.1 \u60f3\u6cd5<\/h3>\n<p>\u8bba\u6587\u63d0\u51fa\u4e86\u4e00\u79cd\u65b9\u5f0f\uff0c\u79f0\u4e4b\u4e3a\u9762\u5411\u8f6f\u4ef6\u7684\u52a0\u901f\uff08Software-Oriented Acceleration, SOA\uff09\uff0c\u5f3a\u8c03\u52a0\u901f\u5668\u901a\u4fe1\u3001\u9694\u79bb\u3001\u57fa\u4e8e\u73b0\u6709\u8f6f\u4ef6\u8303\u5f0f\u7684\u5185\u5b58\u7ba1\u7406\u3002\u5e76\u4f7f\u7528<strong>\u5171\u4eab\u5185\u5b58<\/strong>\u505a\u4e3a\u8f6f\u4ef6\u62bd\u8c61\u6765\u51cf\u5c0f\u8f6f\u786c\u4ef6\u7684\u5f00\u9500\u548c\u5bf9\u52a0\u901f\u5668\u7684\u4f7f\u7528\u3002\u8bba\u6587\u628a\u8fd9\u4e2a\u7cfb\u7edf\u79f0\u4e4b\u4e3a Cohort\u3002<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/raw.githubusercontent.com\/YEWPO\/yewpoblogonlinePic\/main\/image-20240331163224066.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/raw.githubusercontent.com\/YEWPO\/yewpoblogonlinePic\/main\/image-20240331163224066.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image-20240331163224066\" \/><\/div><\/p>\n<p>Cohort \u6a21\u578b\u805a\u7126\u4e8e\u652f\u6301 SBIO \u901a\u4fe1\u6a21\u5f0f\u7684\u52a0\u901f\u5668\uff0c\u5e76\u50cf\u8f6f\u4ef6\u548c\u786c\u4ef6\u63d0\u4f9b\u666e\u904d\u3001\u6807\u51c6\u7684\u961f\u5217\u63a5\u53e3\uff0c\u80fd\u591f\u590d\u7528\u73b0\u6709\u7684\u591a\u7ebf\u7a0b\u8f6f\u4ef6\u4ee5\u53ca\u786c\u4ef6\u800c\u65e0\u9700\u5bf9\u5b83\u4eec\u8fdb\u884c\u5927\u4fee\u6539\u3002<\/p>\n<blockquote>\n<p><strong>SBIO<\/strong>\uff1a\u6d41\u5f0f\/\u7f13\u51b2 \u8f93\u5165\u548c\u8f93\u51fa\u3002<\/p>\n<\/blockquote>\n<h3>1.2 \u521b\u65b0\u70b9<\/h3>\n<p>\u4e3b\u8981\u662f\u4ee5\u4e0b\u4e24\u4e2a\u521b\u65b0\u70b9\uff1a<\/p>\n<ol>\n<li>\u63d0\u51fa\u4e86<strong>\u9762\u5411\u8f6f\u4ef6\u7684\u52a0\u901f\u65b9\u6cd5<\/strong>\uff08\u4ee5\u5f80\u662f\u9762\u5411\u786c\u4ef6\u6216\u8005\u662f\u9762\u5411\u52a0\u901f\u5668\u7684\uff09\u3002<\/li>\n<li><strong>\u961f\u5217\u4e00\u81f4\u6027\u8bed\u4e49\u7684\u8bc6\u522b<\/strong>\uff0c\u4ee5\u5b9e\u73b0\u5bf9\u8f6f\u4ef6\u5171\u4eab\u5185\u5b58\u961f\u5217\u7684\u6709\u6548\u786c\u4ef6\u652f\u6301\u3002<\/li>\n<\/ol>\n<h2>2 \u673a\u9047<\/h2>\n<p>\u73b0\u6709\u7684\u8f6f\u4ef6\u548c\u786c\u4ef6\u63a5\u53e3\u5927\u591a\u6570\u4e0d\u5177\u5907\u901a\u7528\u6027\u3001\u7075\u6d3b\u6027\u4ee5\u53ca\u6613\u4e8e\u4f7f\u7528\u7684\u7279\u70b9\u3002<\/p>\n<h3>2.1 \u8f6f\u4ef6<\/h3>\n<p>\u52a0\u901f\u5668\u7684\u63d0\u4f9b\u5546\u63d0\u4f9b\u7740<strong>\u5404\u79cd\u5404\u6837<\/strong>\u7684\u63a5\u53e3\uff08\u4e13\u6709\u7f16\u8bd1\u5668\u548c\u8bed\u8a00\u3001\u8c03\u7528\u7279\u6743\u5185\u6838\u6a21\u5757\u3001\u4f7f\u7528\u4f9b\u5e94\u5546\u4e13\u6709\u5e93\uff09\u3002\u8fd9\u5bfc\u81f4\u5982\u679c\u60f3\u5728\u5404\u79cd\u52a0\u901f\u5668\u4e4b\u95f4\u901a\u4fe1\u662f\u6781\u5176\u56f0\u96be\u548c\u8106\u5f31\u7684\u3002<\/p>\n<p>\u540c\u65f6\u52a0\u901f\u5ea6\u5668\u7684\u5185\u5b58\u5206\u914d\u548c\u7ba1\u7406\u4e5f\u662f\u5177\u6709\u6311\u6218\u6027\u7684\u3002\u539f\u56e0\u6709\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<ul>\n<li>\u52a0\u901f\u5668\u4f7f\u7528\u7684\u5404\u79cd IOMMU<\/li>\n<li>\u4e0d\u540c\u7684\u4e00\u81f4\u6027\u6a21\u578b<\/li>\n<li>\u7279\u6b8a\u7684\u5730\u5740\u548c\u5bf9\u9f50\u7ea6\u675f<\/li>\n<\/ul>\n<blockquote>\n<p><strong>MMIO \u5185\u5b58\u6620\u5c04 IO<\/strong><\/p>\n<p>\u5c06 IO \u8bbe\u5907\u653e\u7f6e\u5728\u5185\u5b58\u7a7a\u95f4\u800c\u4e0d\u662f IO \u7a7a\u95f4\uff0c\u5bf9\u8fd9\u4e9b IO \u7684\u64cd\u4f5c\u5c31\u5982\u540c\u64cd\u4f5c\u5185\u5b58\u4e00\u6837\u3002\u6bcf\u4e2aI\/O\u8bbe\u5907\u76d1\u6d4bCPU\u7684\u5730\u5740\u603b\u7ebf\uff0c\u5e76\u4e14\u5728\u53d1\u73b0CPU\u8bbf\u95ee\u88ab\u5206\u914d\u5230\u672c\u8bbe\u5907\u7684\u5730\u5740\u533a\u57df\u7684\u65f6\u5019\u505a\u51fa\u54cd\u5e94\uff0c\u5efa\u7acb\u6570\u636e\u603b\u7ebf\u548c\u76f8\u5e94\u8bbe\u5907\u5bc4\u5b58\u5668\u4e4b\u95f4\u7684\u8fde\u63a5\u3002<\/p>\n<\/blockquote>\n<p>\u7136\u800c MMIO\uff0c\u6709\u7279\u6b8a\u7684\u5b58\u53d6\u8bed\u4e49\uff0c\u8be5\u8bed\u4e49\u4f1a\u9020\u6210\u6027\u80fd\u7684\u5f71\u54cd\u3002\u5e76\u4e14 MMIO \u7684\u526f\u4f5c\u7528\u4f1a\u8ba9\u4e00\u4e9b\u5904\u7406\u5668\u7b80\u5355\u5730<strong>\u6682\u505c\u7b49\u5f85\u5176\u6267\u884c\u5b8c\u6210<\/strong>\u3002\u8fd9\u5199\u4e25\u91cd\u7684\u5f71\u54cd\u4e86\u6027\u80fd\u3002<\/p>\n<h3>2.2 \u786c\u4ef6<\/h3>\n<p>\u5982\u4eca\u7684\u6570\u636e\u8fde\u63a5\u63a5\u53e3\u4e5f\u4f7f\u7528\u4e0d\u540c\u8fde\u63a5\u65b9\u5f0f\uff0c\u6709\u4f7f\u7528 MMIO\u7684\uff0c\u4e5f\u6709\u4f7f\u7528 DMA\u7684\u3002\u6b64\u5916\uff0c\u8fd8\u4f7f\u7528\u4e0d\u540c\u7684\u4e00\u81f4\u6027\u6a21\u578b\uff0c\u90e8\u5206\u4e00\u81f4\u6027\u548c\u5b8c\u5168\u4e00\u81f4\u6027\u3002\u90e8\u5206\u4e00\u81f4\u6027\u4f1a\u589e\u52a0\u7f16\u7a0b\u7684\u590d\u6742\u5ea6\u3002\u5b8c\u5168\u4e00\u81f4\u6027\u8fd8\u5b58\u5728\u7740\u7f13\u5b58\u4e00\u81f4\u6027\u7684\u5f00\u9500\u3002\u5728\u8fd9\u4e24\u4e2a\u4e00\u81f4\u6027\u505a\u6743\u8861\u4e5f\u662f\u4e00\u4ef6\u5f88\u56f0\u96be\u7684\u4e8b\u60c5\u3002<\/p>\n<p>\u5728\u4f7f\u7528 PCIe \u7684\u684c\u9762\u548c\u670d\u52a1\u5668\u7ea7\u8bbe\u7f6e\u4e2d\uff0cCCIX\u3001CXL \u548c CAPI \u7b49\u534f\u8bae\u542f\u7528\u52a0\u901f\u5668\u7f13\u5b58\u4e00\u81f4\u6027\u3002\u4f46\u662f\uff0cPCIe \u4f1a\u5e26\u6765\u5f00\u9500\u548c\u5ef6\u8fdf\uff0c90% \u7684\u5ef6\u8fdf\u7531 PCIe \u81ea\u8eab\u4ea7\u751f\uff1b\u6b64\u5916\uff0c\u50cf\u79fb\u52a8\u5e73\u53f0\u7684 SoC \u56e0\u4e3a\u9762\u79ef\u548c\u529f\u8017\u7684\u539f\u56e0\u9650\u5236\u4f7f\u7528 PCIe\u3002<\/p>\n<blockquote>\n<p><strong>CCIX\/CXL\/CAPI<\/strong><\/p>\n<p>CCIX \uff08Cache Coherent Interconnect for Acceterators\uff09\u662f\u7528\u4e8e\u52a0\u901f\u5668\u7f13\u5b58\u4e00\u81f4\u6027\u7684\u534f\u8bae\uff0c\u76ee\u7684\u662f\u9700\u8981\u6bd4\u5f53\u524d\u6280\u672f\u66f4\u5feb\u7684\u4e92\u8054\uff0c\u5e76\u4e14\u9700\u8981\u7f13\u5b58\u4e00\u81f4\u6027\uff0c\u4ee5\u4fbf\u5728\u5f02\u6784\u591a\u5904\u7406\u5668\u7cfb\u7edf\u4e2d\u66f4\u5feb\u7684\u8bbf\u95ee\u5185\u5b58\u3002\u76f8\u5173\u5de5\u4f5c\u96c6\u4e2d\u5728\u4f7f\u786c\u4ef6\u52a0\u901f\u5668\u4ee5\u7f13\u5b58\u4e00\u81f4\u7684\u65b9\u5f0f\u4f7f\u7528\u4e0e\u591a\u4e2a\u5904\u7406\u5668\u5171\u4eab\u7684\u5185\u5b58\u3002\u8be5\u6587\u7ae0\u4e2d\u8fd8\u6709\u5bf9\u7f13\u5b58\u4e00\u81f4\u6027\u7684\u4ecb\u7ecd[3]\u3002<\/p>\n<p>CXL\uff08Compute eXpress Link\uff09\u662f\u4e00\u4e2a\u5f00\u653e\u6807\u51c6\uff0c\u5176\u9ad8\u901f\u4e92\u8054\u6280\u672f\u53ef\u4ee5\u4e3a\u9ad8\u6027\u80fd\u6570\u636e\u4e2d\u5fc3\u8ba1\u7b97\u673a\u63d0\u4f9b\u9ad8\u901f\u3001\u5927\u5bb9\u91cf\u7684\u4e2d\u592e\u5904\u7406\u5668\uff08CPU\uff09\u81f3\u8bbe\u5907\uff0cCPU\u81f3\u5185\u5b58\uff0c\u53ca\u8bbe\u5907\u81f3\u8bbe\u5907\u7684\u8fde\u63a5\u3002CXL \u4f5c\u4e3a\u4e00\u79cd\u9ad8\u901f\u4e32\u884c\u534f\u8bae\uff0c\u57fa\u4e8e PCIe \u7684\u7269\u7406\u548c\u7535\u6c14\u63a5\u53e3\u6784\u5efa\u3002CXL \u5305\u62ec\u57fa\u4e8e PCIe \u7684\u5757\u8f93\u5165\/\u8f93\u51fa\u534f\u8bae\uff08CXL.io\uff09\u4ee5\u53ca\u7528\u4e8e\u8bbf\u95ee\u7cfb\u7edf\u5185\u5b58\uff08CXL.cache\uff09\u548c\u8bbe\u5907\u5185\u5b58\uff08CXL.mem\uff09\u7684\u65b0\u7f13\u5b58\u4e00\u81f4\u534f\u8bae\u3002<\/p>\n<p>CAPI\uff08Coherent Accelerator Process Interface\uff09\u662f\u4e2a\u9ad8\u901f\u5904\u7406\u5668\u6269\u5c55\u603b\u7ebf\u534f\u8bae\uff0c\u5e94\u7528\u4e8e\u5927\u578b\u6570\u636e\u5904\u7406\u4e2d\u5fc3\u3002\u76ee\u7684\u662f\u8ba9 CPUs \u548c\u52a0\u901f\u5668\u53ef\u4ee5\u76f4\u8fde\u3002<\/p>\n<\/blockquote>\n<h2>3 Cohort \u7684\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<p>SOA \u63d0\u4f9b\u4e86\u9762\u5411\u7528\u6237\u6a21\u5f0f\uff0c\u4e3a\u5e94\u7528\u7a0b\u5e8f\u548c\u8bed\u8a00\u8fd0\u884c\u65f6\u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u7075\u6d3b\u6027\u3001\u9694\u79bb\u6027\u548c\u5b89\u5168\u6027\u3002\u5728\u7528\u6237\u7ea7\u7684\u64cd\u4f5c\u4e0b\uff0c<strong>\u4e0d\u5e94\u8be5\u4f7f\u7528\u4e0a\u4e0b\u6587\u5207\u6362\u548c\u5185\u6838\u4ea4\u6362\u64cd\u4f5c<\/strong>\u3002<\/p>\n<p>\u540c\u65f6\uff0c\u4f7f\u7528\u5171\u4eab\u5185\u5b58\u961f\u5217\u4f5c\u4e3a\u901a\u7528\u8bed\uff0c\u4f7f\u7528\u666e\u901a\u7684<strong>\u751f\u4ea7\u8005\u6d88\u8d39\u8005\u6a21\u578b<\/strong>\u4f5c\u4e3a\u62bd\u8c61\u4ee5\u63d0\u9ad8\u53ef\u7f16\u7a0b\u6027\u4ee5\u53ca\u53ef\u7ec4\u5408\u6027\uff1b\u4f7f\u7528\u52a0\u901f\u5668\u66ff\u6362\u73b0\u6709\u7684\u53bb\u8026\u7684\u8f6f\u4ef6\u7ebf\u7a0b\uff0c\u540c\u65f6\u7ef4\u62a4\u73b0\u6709\u4ee3\u7801\u548c\u94fe\u63a5\u751f\u4ea7\u8005\u548c\u6d88\u8d39\u8005\u7684\u961f\u5217\u94fe\u3002<\/p>\n<p>\u76ee\u524d\uff0c\u5728\u5f00\u53d1\u9ad8\u6027\u80fd\u7684\u65e0\u9501\u961f\u5217\u5e93\u65b9\u9762\u5df2\u7ecf\u4ed8\u51fa\u4e86\u5f88\u591a\u52aa\u529b\uff0c\u8fd9\u4e9b\u5e93\u901a\u8fc7\u51cf\u5c11\u4e00\u81f4\u6027\u4f5c\u7528\u5e76\u5229\u7528<strong>\u73b0\u4ee3\u5904\u7406\u5668\u5185\u5b58\u7ea7\u7684\u5e76\u884c\u6027<\/strong>\u6765\u63d0\u9ad8\u6027\u80fd\u3002\u8bba\u6587\u5728\u6b64\u5904\u805a\u7126\u4e8e\u65e0\u9501\u5355\u751f\u4ea7\u8005\u6d88\u8d39\u8005\u961f\u5217\uff08SPSC\uff0csingle processor-single consumer\uff09\uff0c\u5e76\u5411\u5c06\u961f\u5217\u64cd\u4f5c\u8fde\u63a5\u5230\u7f13\u5b58\u4e00\u81f4\u6027\u7cfb\u7edf\u7684\u5f15\u64ce\u4e0a\u6765\u4fdd\u8bc1\u961f\u5217\u4e00\u81f4\u6027\u3002<\/p>\n<p>Cohort \u4f7f\u7528 Cohort \u7684\u5f15\u64ce\u66ff\u6362\u4e86\u8f6f\u4ef6\u7ebf\u7a0b\uff0c\u8fd9\u4e2a\u201c\u52a0\u901f\u5668\u7ebf\u7a0b\u201d\u548c\u8f6f\u4ef6\u7ebf\u7a0b\u7684\u901a\u4fe1\u548c\u5176\u4ed6\u8f6f\u4ef6\u662f\u4e00\u6837\u7684\u3002Cohort \u63a5\u7ba1\u4e86\u8ba1\u7b97\u90e8\u5206\uff0c\u901a\u8fc7\u4e24\u4e2a\u8f6f\u4ef6\u961f\u5217\uff0c\u5206\u522b\u4f20\u9012\u8ba1\u7b97\u7684\u8f93\u5165\u7ed9\u52a0\u901f\u5668\u548c\u83b7\u53d6\u52a0\u901f\u5668\u7684\u8ba1\u7b97\u8f93\u51fa\u3002\u8fd9\u6837\u505a\u6cd5\uff0c\u4e5f\u4f7f\u5f97\u51e0\u4e2a\u52a0\u901f\u5668\u4e4b\u95f4\u7684\u4ea6\u6216\u8005\u662f\u8f6f\u4ef6\u4e4b\u95f4\u7684\u8ba1\u7b97\u53d8\u5f97\u900f\u660e\u3002<\/p>\n<h2>4 Cohort \u7684\u5b9e\u73b0<\/h2>\n<p>Cohort \u5f15\u64ce\u7684\u67b6\u6784\u56fe\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/raw.githubusercontent.com\/YEWPO\/yewpoblogonlinePic\/main\/image-20240401140656356.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/raw.githubusercontent.com\/YEWPO\/yewpoblogonlinePic\/main\/image-20240401140656356.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image-20240401140656356\" \/><\/div><\/p>\n<h3>4.1 \u7f16\u7a0b\u6a21\u578b<\/h3>\n<p>Cohort \u8bbe\u8ba1\u5728\u7528\u6237\u6a21\u5f0f\u4e0b\u4f7f\u7528\uff0c\u6700\u5c0f\u5316\u64cd\u4f5c\u7cfb\u7edf\u7684\u53c2\u4e0e\u3002<\/p>\n<p>\u4e3a\u4e86\u80fd\u591f\u5728 Cohort \u4e0a\u6ce8\u518c\u4e00\u4e2a\u961f\u5217\uff0c\u9700\u8981\u4e00\u4e2a\u7ed3\u6784\u4f53\u6765\u63cf\u8ff0\u914d\u7f6e Cohort \u961f\u5217\u7684\u5c5e\u6027\u3002\u5c5e\u6027\u5305\u62ec\u5143\u7d20\u7684\u5927\u5c0f\u3001\u961f\u5217\u7684\u5927\u5c0f\u3001\u8bfb\u5199\u6307\u9488\u3002\u628a\u63cf\u8ff0\u8fd9\u4e9b\u4fe1\u606f\u7ed3\u6784\u4f53\uff0c\u79f0\u4e4b\u4e3a\u961f\u5217\u63cf\u8ff0\u7b26\u3002<\/p>\n<pre><code>write_pointer\/index\nread_pointer\/index\nfifo_base_address\nfifo_element_size\nfifo_length<\/code><\/pre>\n<p>Cohort \u4e5f\u4e3a\u7528\u6237\u7f16\u7a0b\u63d0\u4f9b\u4e86\u4e24\u4e2a API\uff0c<code>cohort_register<\/code>\u548c<code>cohort_unregister<\/code>\uff0c\u5206\u522b\u5728\u4e00\u4e2a\u52a0\u901f\u4e0a\u6ce8\u518c\u4e24\u4e2a\u961f\u5217\u548c\u6ce8\u9500\u4e24\u4e2a\u961f\u5217\u3002\u8fd9\u4e24\u4e2a\u961f\u5217\u901a\u8fc7<code>fifo_init<\/code>\u4f20\u9012\u961f\u5217\u63cf\u8ff0\u7b26\u6765\u8fdb\u884c\u521d\u59cb\u5316\u3002\u5176\u4ed6\u76f8\u5173\u7684\u961f\u5217\u64cd\u4f5c\u53ef\u4ee5<strong>\u76f4\u63a5\u590d\u7528\u5df2\u6709\u6210\u719f\u7684\u961f\u5217\u5e93<\/strong>\uff08\u4f8b\u5982 C++ Boost Lockfree library\uff09\u3002<\/p>\n<h3>4.2 Cohort \u5f15\u64ce<\/h3>\n<p>Cohort \u4f7f\u7528\u5ef6\u8fdf\u4e0d\u654f\u611f\u7684<strong>\u63e1\u624b FIFO<\/strong> \u548c <strong>AXI Stream<\/strong> \u5c06\u8f6f\u4ef6\u7ea7\u7ebf\u7a0b\u5b89\u5168\u7684\u961f\u5217\u548c\u786c\u4ef6\u961f\u5217\u6865\u63a5\u8d77\u6765\u3002\u6309\u7167\u7b2c 3 \u8282\u6240\u63cf\u8ff0\u7684\uff0cCohort \u901a\u8fc7\u628a\u961f\u5217\u76f8\u5173\u64cd\u4f5c\u8fde\u63a5\u5230\u7f13\u5b58\u4e00\u81f4\u6027\u7cfb\u7edf\u4e0a\u6765\u4fdd\u8bc1\u961f\u5217\u4e00\u81f4\u6027\u3002\u8fd9\u91cc\u7684\u539f\u578b\u5f15\u64ce\u4f7f\u7528 <strong>OpenPiton \u7684 P-Mesh \u7f13\u5b58\u4e00\u81f4\u6027\u7cfb\u7edf<\/strong>\uff08\u5982\u56fe 6 \u7684\u6a59\u8272\u90e8\u5206\uff09\u3002<\/p>\n<p>\u56fe 6 \u4e2d\uff0c\u84dd\u8272\u90e8\u5206\u8868\u793a\u7684 Cohort\uff0c\u7eff\u8272\u90e8\u5206\u8868\u793a\u52a0\u901f\u5668\u3002\u4ece\u56fe\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0cCohort \u7531\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\u6784\u6210\uff1a<\/p>\n<ul>\n<li>\u672a\u7f13\u5b58\u7684\u914d\u7f6e\u5bc4\u5b58\u5668\uff1a\u901a\u8fc7\u8be5\u5bc4\u5b58\u5668\u914d\u7f6e Cohort\uff0c\u5e76\u4e14\u662f<strong>\u552f\u4e00\u4e00\u4e2a MMIO \u6a21\u5757<\/strong>\u3002<\/li>\n<li>\u5185\u5b58\u7ffb\u8bd1\u5f15\u64ce\uff08Memory Translation Engine\uff09\uff08\u542b\u6709MMU\uff0c<strong>MMU \u57fa\u4e8e RISC-V Sv39 \u5b9e\u73b0<\/strong>\uff09\uff1aMTU \u5c06\u4e0a\u5c42\u7684\u5185\u5b58\u64cd\u4f5c\u548c\u65e0\u6548\u4fe1\u53f7\uff08invalidations\uff09\u8f6c\u6362\u6210\u7269\u7406\u5bfb\u5740\u4e00\u81f4\u6027\u64cd\u4f5c\u3002MTU \u5185\u5d4c\u57fa\u4e8e\u672c\u5730\u6307\u4ee4\u96c6\u7684 MMU\uff0c\u4f7f\u5f97\u52a0\u901f\u5668\u7684\u7f16\u7a0b\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u865a\u62df\u5730\u5740\u4ece\u800c\u7b80\u5316\u7f16\u7a0b\u3002<\/li>\n<li>\u6d88\u8d39\u7aef\uff08Consume\uff09\u548c\u751f\u4ea7\u7aef\uff1a\u6d88\u8d39\u7aef\u901a\u8fc7\u65e0\u6548\u4fe1\u53f7\uff08invalidation\uff09\u6765\u51b3\u5b9a\u662f\u5426\u53d6\u51fa\u6570\u636e\u7ed9\u52a0\u901f\u5668\u3002\u5982\u679c\u6709\u6570\u636e\u53ef\u53d6\uff0c\u5219\u53ef\u4ee5\u8bbe\u7f6e\u6709\u6548\u4fe1\u53f7\uff0c\u7b49\u5f85\u52a0\u901f\u5668\u63e1\u624b\uff08\u8bbe\u7f6e ready \u4fe1\u53f7\uff09\u63a5\u53d7\u3002\u5f53\u52a0\u901f\u5668\u6709\u6570\u636e\u53ef\u4ee5\u4ea7\u51fa\u65f6\uff0c\u8bbe\u7f6e\u6709\u6548\u4fe1\u53f7 valid\uff0c\u7b49\u5f85\u751f\u4ea7\u7aef\u63a5\u53d7\u3002\u8fd9\u4e9b\u64cd\u4f5c\u7684\u4e00\u81f4\u6027\u90fd\u7531\u7f13\u5b58\u4e00\u81f4\u6027\u7cfb\u7edf\u4fdd\u8bc1\u3002<\/li>\n<\/ul>\n<p>Cohort \u7684\u961f\u5217\u8bed\u4e49\u548c\u8f6f\u4ef6\u7684\u961f\u5217\u8bed\u4e49\u662f\u4e00\u6837\u7684\u3002\u5728 SoC \u7684\u5fae\u67b6\u6784\u4e2d\uff0c\u6211\u4eec\u8ba4\u4e3a\u7f13\u5b58\u4e00\u81f4\u6027\u7cfb\u7edf\u4f1a\u4f7f\u5176\u4ed6\u7f13\u5b58\u7684\u7f13\u5b58\u884c\u53d8\u5f97\u65e0\u6548\uff0c\u8fd9\u4e00\u884c\u4e3a\u53ef\u4ee5\u89c6\u4e3a\u4e00\u4e2a\u5bf9 Cohort  \u7684\u4fe1\u53f7\uff0c\u4f7f\u5176\u83b7\u53d6\u66f4\u65b0\u7684\u6570\u636e\u3002\u8bfb\u4e00\u81f4\u6027\u7ba1\u7406\u8005\uff08RCM\uff09\u4f1a\u76d1\u89c6\u901a\u8fc7\u672a\u7f13\u5b58\u7684\u5bc4\u5b58\u5668\u7684\u5730\u5740\u4ee5\u53ca\u4f20\u5165\u7684\u65e0\u6548\u4fe1\u53f7\u3002\u5982\u679c\u65e0\u6548\u4fe1\u53f7\u548c\u5730\u5740\u60f3\u5339\u914d\uff0c\u5219\u4f1a\u8fdb\u5165\u4e00\u4e2a\u6682\u505c\u9636\u6bb5\uff0c\u8fd9\u4e2a\u6682\u505c\u9636\u6bb5\u7684\u957f\u5ea6\u7531\u6682\u505c\u5355\u5143\u63a7\u5236\u3002\u5f53\u8fd9\u4e2a\u9636\u6bb5\u7ed3\u675f\u7684\u65f6\u5019\uff0c\u5c31\u4f1a\u4f7f\u7528\u4e00\u81f4\u6027\u8bfb\u6765\u5904\u7406\u6700\u65b0\u7684\u6570\u636e\u3002\u8fd9\u91cc\u7684\u4e00\u81f4\u6027\u7531\u5199\u7684\u987a\u5e8f\u6765\u4fdd\u8bc1\u3002<\/p>\n<h3>4.3 \u52a0\u901f\u5668\u63a5\u53e3<\/h3>\n<p>\u52a0\u901f\u5668\u901a\u8fc7\u63e1\u624b\u534f\u8bae\u548c\u6d88\u8d39\u7aef\u548c\u751f\u4ea7\u7aef\u76f8\u8fde\uff0c\u751f\u4ea7\u6570\u636e\u7684\u63a5\u53e3\u5bbd\u5ea6\u53ef\u4ee5\u4e0d\u548c\u6d88\u8d39\u6570\u636e\u63a5\u53e3\u7684\u5bbd\u5ea6\u3002\u5177\u4f53\u7684\u6570\u636e\u4ea4\u4e92\u65b9\u5f0f\u5982 4.2 \u8282\u4e2d\u5173\u4e8e\u6d88\u8d39\u7aef\u548c\u751f\u4ea7\u7aef\u7684\u63cf\u8ff0\u3002<\/p>\n<h3>4.4 \u64cd\u4f5c\u7cfb\u7edf\u652f\u6301<\/h3>\n<p>Cohort \u63d0\u4f9b\u4e00\u4e2a\u5185\u6838\u9a71\u52a8\u6765\u5efa\u7acb\u4e00\u4e2a\u5b8c\u6574\u5b89\u5168\u7684\u6570\u636e\u6d41\u548c\u5411\u7528\u6237\u9690\u85cf\u786c\u4ef6\u7ec6\u8282\u3002\u8be5\u9a71\u52a8\u6709\u4ee5\u4e0b\u51e0\u4e2a\u7279\u5f81\uff1a<\/p>\n<ul>\n<li>TLB flush \u7684 MMU \u901a\u77e5\u5668\uff1a\u7528\u4e8e\u7ba1\u7406 TLB \u7684\u4e00\u81f4\u6027\u3002<\/li>\n<li>\u7f3a\u9875\u9519\u8bef\u901a\u8fc7\u4e2d\u65ad\u8fdb\u884c\u91cd\u5b9a\u5411\uff1a\u5f53 MTE \u4e2d\u7684 MMU \u9047\u5230\u7f3a\u9875\u9519\u8bef\uff0c\u89e6\u53d1\u4e2d\u65ad\uff0c\u8c03\u7528 Cohort \u5185\u6838\u9a71\u52a8\u6ce8\u518c\u7684\u5904\u7406\u51fd\u6570\u8fdb\u884c\u5904\u7406\u3002<\/li>\n<li>\u4f7f\u7528 Cohort \u6ce8\u518c\u961f\u5217\uff1a\u5f53\u7528\u6237\u5e94\u7528\u60f3\u8981\u6ce8\u518c\u4e00\u4e2a Cohort \u65f6\uff0c\u4f1a\u6620\u5c04 Cohort \u7684\u914d\u7f6e\u5bc4\u5b58\u5668\u533a\u57df\u3001\u6ce8\u518c MMU \u901a\u77e5\u5668\u548c\u7f3a\u9875\u5904\u7406\u51fd\u6570\u3002\u7136\u540e\uff0c\u5411 Cohort \u5199\u5165\u961f\u5217\u63cf\u8ff0\u7b26\u3002\u81f3\u6b64\uff0cCohort \u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002<\/li>\n<li>\u6ce8\u9500\u961f\u5217\uff1a\u901a\u8fc7\u5bf9\u4e0a\u8ff0\u8d44\u6e90\u7684\u89e3\u9664\u5206\u914d\u548c\u6620\u5c04\u5373\u53ef\u3002<\/li>\n<\/ul>\n<h3>4.5 Cohort \u7684\u80fd\u529b\u548c\u6269\u5c55\u6027<\/h3>\n<p>Cohort \u53ef\u4ee5\u52a0\u901f\u5904\u7406\u5668\u5185\u90e8\u7684\u901a\u4fe1\uff1b\u540c\u65f6\uff0c\u4f7f\u7528\u52a0\u901f\u5668\u94fe\uff08\u52a0\u901f\u5668\u4e4b\u95f4\u4f7f\u7528 Cohort \u961f\u5217\uff08SPSC\uff09<strong>\u4e32\u8054<\/strong>\u8d77\u6765\uff09\uff0c\u53ef\u4ee5\u5f88\u597d\u5730\u52a0\u901f\u8ba1\u7b97\u3002<strong>Cohort \u76ee\u524d\u8fd8\u4e0d\u652f\u6301\u591a\u6d88\u8d39\u8005\u548c\u591a\u751f\u4ea7\u8005\u7684\u6a21\u5f0f\uff0c\u4f7f\u7528\u8be5\u65b9\u5f0f\u4f1a\u4ea7\u751f\u539f\u5b50\u64cd\u4f5c\u95ee\u9898\u3002<\/strong><\/p>\n<h2>5 \u603b\u7ed3<\/h2>\n<p>Cohort \u4f7f\u7528<strong>\u9762\u5411\u8f6f\u4ef6\u52a0\u901f<\/strong>\u7684\u65b9\u5f0f\uff0c\u4f18\u5316\u8f6f\u4ef6\u548c\u786c\u4ef6\u7684\u63a5\u53e3\uff0c\u4f7f\u5f97\u8f6f\u4ef6\u548c\u5f02\u6784\u52a0\u901f\u5668\/\u5f02\u6784\u52a0\u901f\u5668\u4e4b\u95f4\u53ef\u4ee5\u9ad8\u6548\u5730\u8fde\u63a5\u8d77\u6765\u3002\u4f7f\u7528<strong>\u8f6f\u4ef6\u62bd\u8c61\u2014\u2014\u5171\u4eab\u5185\u5b58<\/strong>\uff0c\u6765\u8fde\u63a5\u5404\u4e2a\u90e8\u5206\u3002\u52a0\u901f\u5668\u6216\u8005\u662f\u8f6f\u4ef6\u7684\u6570\u636e\u8ba1\u7b97\u6216\u8005\u662f\u4f7f\u7528\uff0c\u4f7f\u7528\u4e86\u666e\u901a\u7684<strong>\u751f\u4ea7\u8005\u6d88\u8d39\u8005\u6a21\u5f0f<\/strong>\uff0c\u7528<strong>\u961f\u5217<\/strong>\u4f20\u8f93\u5f97\u4ee5\u5b9e\u73b0\u3002\u8f6f\u4ef6\u5c42\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u961f\u5217\u64cd\u4f5c\u652f\u6301\uff0c\u7b80\u5316\u4e86\u7a0b\u5e8f\u5f00\u53d1\u3002\u540c\u65f6\uff0c\u961f\u5217\u4e00\u81f4\u6027\u4ea4\u7ed9\u4e86<strong>\u7f13\u5b58\u4e00\u81f4\u6027\u7cfb\u7edf<\/strong>\uff08P-Mech cache coherence system\uff09\u6765\u4fdd\u8bc1\u3002\u786c\u4ef6\u4f7f\u7528\u63e1\u624b FIFO \u6216\u8005 AXI Stream \u534f\u8bae\u6765\u5b9e\u73b0\u901a\u4fe1\u3002<\/p>\n<p>Cohort \u5728\u63d0\u9ad8\u6027\u80fd\u548c IPC \u7684\u540c\u65f6\uff0c\u4e5f\u51cf\u5c0f\u786c\u4ef6\u8d44\u6e90\u7684\u6d88\u8017\u3002<\/p>\n<p>\u603b\u4e4b\uff0cCohort \u66f4\u50cf\u662f\u8f6f\u4ef6\u548c\u786c\u4ef6\u4e4b\u95f4\u7684\u7ba1\u9053\uff0c\u53ea\u80fd\u5355\u751f\u4ea7\u8005\u5bf9\u5e94\u5355\u6d88\u8d39\u8005\u3002\u591a\u5bf9\u591a\u7684\u5f62\u5f0f\u4e0d\u652f\u6301\uff0c\u56e0\u4e3a\u6d89\u53ca\u539f\u5b50\u64cd\u4f5c\uff0c\u7559\u7ed9\u4e86\u540e\u9762\u7684\u7814\u7a76\u3002<\/p>\n<h2>\u53c2\u8003\u6587\u732e<\/h2>\n<p>[1] Tianrui Wei, Nazerke Turtayeva, Marcelo Orenes-Vera, Omkar Lonkar, and Jonathan Balkind. 2023. Cohort: Software-Oriented Acceleration for Heterogeneous SoCs. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3 (ASPLOS 2023). Association for Computing Machinery, New York, NY, USA, 105\u2013117. <a href=\"https:\/\/doi.org\/10.1145\/3582016.3582059\">https:\/\/doi.org\/10.1145\/3582016.3582059<\/a><\/p>\n<p>[2] wikipedia.org. \u5b58\u50a8\u5668\u6620\u5c04\u8f93\u5165\u8f93\u51fa. <a href=\"https:\/\/zh.wikipedia.org\/wiki\/%E5%AD%98%E5%82%A8%E5%99%A8%E6%98%A0%E5%B0%84%E8%BE%93%E5%85%A5%E8%BE%93%E5%87%BA\">https:\/\/zh.wikipedia.org\/wiki\/%E5%AD%98%E5%82%A8%E5%99%A8%E6%98%A0%E5%B0%84%E8%BE%93%E5%85%A5%E8%BE%93%E5%87%BA<\/a><\/p>\n<p>[3] synopsys.com. CCIX \u7b80\u4ecb. <a href=\"https:\/\/www.synopsys.com\/zh-cn\/china\/resources\/dwtb\/dwtb-cn-introduction-to-ccix-2017q4.html\">https:\/\/www.synopsys.com\/zh-cn\/china\/resources\/dwtb\/dwtb-cn-introduction-to-ccix-2017q4.html<\/a><\/p>\n<p>[4] wikipedia.org. Compute Express Link. <a href=\"https:\/\/zh.wikipedia.org\/wiki\/Compute_Express_Link\">https:\/\/zh.wikipedia.org\/wiki\/Compute_Express_Link<\/a><\/p>\n<p>[5] wikipedia.org. Coherent Accelerator Processor Interface. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Coherent_Accelerator_Processor_Interface\">https:\/\/en.wikipedia.org\/wiki\/Coherent_Accelerator_Processor_Interface<\/a><\/p>\n<p>[6] OpenPiton. Enhancing the Open-Source P-Mesh Cache Coherence System for Open ISAs. <a href=\"https:\/\/ics2020.bsc.es\/sites\/default\/files\/uploaded\/jbalkind-pmesh-final.pdf\">https:\/\/ics2020.bsc.es\/sites\/default\/files\/uploaded\/jbalkind-pmesh-final.pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cohort: Software-Oriented Acceleration for Heterogenous SoCs \u8bba\u6587\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-paper"],"_links":{"self":[{"href":"https:\/\/www.yewpo.top\/index.php\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yewpo.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yewpo.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yewpo.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yewpo.top\/index.php\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":0,"href":"https:\/\/www.yewpo.top\/index.php\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yewpo.top\/index.php\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yewpo.top\/index.php\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yewpo.top\/index.php\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}