31fec3bb70
Co-authored-by: zhugengyu <zhugengyu@phytium.com.cn>
540 lines
94 KiB
Plaintext
540 lines
94 KiB
Plaintext
<mxfile host="65bd71144e">
|
||
<diagram id="nKelZ6Gt3N6YIWwZSbJ6" name="第 1 页">
|
||
<mxGraphModel dx="3995" dy="3514" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||
<root>
|
||
<mxCell id="0"/>
|
||
<mxCell id="1" parent="0"/>
|
||
<mxCell id="7" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #4ec9b0;">metal_device</span></div>" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;labelBackgroundColor=default;" parent="1" vertex="1">
|
||
<mxGeometry x="50" y="70" width="139" height="290" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="2" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #6a9955;">IPI metal device</span></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=default;" parent="1" vertex="1">
|
||
<mxGeometry x="69" y="100" width="100" height="50" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="4" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #6a9955;">TTC metal device</span></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=default;" parent="1" vertex="1">
|
||
<mxGeometry x="69" y="290" width="100" height="50" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="5" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #6a9955;">SHM metal device</span></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=default;" parent="1" vertex="1">
|
||
<mxGeometry x="69" y="190" width="100" height="50" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="8" value="" style="shape=flexArrow;endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="2" edge="1">
|
||
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||
<mxPoint x="349" y="190" as="sourcePoint"/>
|
||
<mxPoint x="239" y="125" as="targetPoint"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="9" value="" style="shape=flexArrow;endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" edge="1">
|
||
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||
<mxPoint x="169" y="214.5" as="sourcePoint"/>
|
||
<mxPoint x="239" y="214.5" as="targetPoint"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="10" value="" style="shape=flexArrow;endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="4" target="12" edge="1">
|
||
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||
<mxPoint x="199" y="292.5" as="sourcePoint"/>
|
||
<mxPoint x="239" y="305" as="targetPoint"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="11" value="<p class="MsoNormal"><font face="Consolas" color="#6666ff">(处理器间中断)是一个处理器中断另一个处理器的机制。 这通常用于多处理器系统中的处理器间通信和同步。 Libmetal 提供了一个 IPI API,允许软件在不同的处理器之间发送和接收中断,而不管它们的架构如何。</font><br></p>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;align=left;" parent="1" vertex="1">
|
||
<mxGeometry x="239" y="70" width="571" height="90" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="12" value="<p class="MsoNormal"><font face="Consolas">(时间触发通信)是一种基于公共时钟同步两个或多个处理器的机制。 这对于实现实时系统非常有用,其中精确计时至关重要。 Libmetal 提供了一个 TTC API,允许软件配置和管理 TTC 硬件,以及基于 TTC 时钟发送和接收消息。</font><br></p>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;align=left;fontColor=#6666FF;" parent="1" vertex="1">
|
||
<mxGeometry x="239" y="270" width="571" height="90" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="13" value="<p class="MsoNormal"><font face="Consolas">(共享内存) 是一种让两个或多个处理器共享公共内存区域的机制。 这对于实现处理器间通信和同步以及在不同处理器之间共享数据很有用。 Libmetal 提供了一个 SHM API,允许软件分配和释放共享内存区域,以及读取和写入这些区域的数据。</font><br></p>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontColor=#6666FF;align=left;" parent="1" vertex="1">
|
||
<mxGeometry x="239" y="170" width="571" height="90" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="18" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px; font-size: 20px;"><span style="font-size: 20px;">int ipi_latency_demod()</span></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=default;fontColor=#FF3333;verticalAlign=top;fontSize=20;arcSize=6;" parent="1" vertex="1">
|
||
<mxGeometry x="1140" y="-1050" width="778" height="970" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="46" value="" style="edgeStyle=none;html=1;fontSize=15;fontColor=none;" parent="1" source="27" target="45" edge="1">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="27" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #569cd6;">struct</span> <span style="color: #4ec9b0;">channel_s</span></div>" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;" parent="1" vertex="1">
|
||
<mxGeometry x="1205" y="-952" width="460" height="180" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="28" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 16px;"><span style="color: #569cd6;">struct</span> <span style="color: #4ec9b0;">metal_io_region</span> *<span style="color: #9cdcfe;">ipi_io</span>;<span style="color: #6a9955;"> /* IPI metal i/o region */</span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;" parent="27" vertex="1">
|
||
<mxGeometry y="30" width="460" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="29" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 16px;"><span style="color: #569cd6;">struct</span> <span style="color: #4ec9b0;">metal_io_region</span> *<span style="color: #9cdcfe;">shm_io</span>;<span style="color: #6a9955;"> /* Shared memory metal i/o region */</span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;" parent="27" vertex="1">
|
||
<mxGeometry y="60" width="460" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="32" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 16px;"><span style="color: #569cd6;">struct</span> <span style="color: #4ec9b0;">metal_io_region</span> *<span style="color: #9cdcfe;">ttc_io</span>;<span style="color: #6a9955;"> /* TTC metal i/o region */</span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;" parent="27" vertex="1">
|
||
<mxGeometry y="90" width="460" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="33" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 16px;"><span style="color: #4ec9b0;">uint32_t</span> <span style="color: #9cdcfe;">ipi_mask</span>;<span style="color: #6a9955;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* RPU IPI mask */</span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;" parent="27" vertex="1">
|
||
<mxGeometry y="120" width="460" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="31" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 16px;"><span style="color: #4ec9b0;">atomic_int</span> <span style="color: #9cdcfe;">remote_nkicked</span>;<span style="color: #6a9955;"> &nbsp; &nbsp; /* 0 - kicked from remote */</span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;" parent="27" vertex="1">
|
||
<mxGeometry y="150" width="460" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="45" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: rgb(156, 220, 254);"><font style="font-size: 21px;">ch</font></span></div>" style="whiteSpace=wrap;html=1;fontSize=21;fontColor=none;fontStyle=0;startSize=30;labelBackgroundColor=none;" parent="1" vertex="1">
|
||
<mxGeometry x="1743" y="-892" width="120" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="47" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%;"><span style="color: #569cd6;">int</span> <span style="color: #dcdcaa;">sys_init</span>()</div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;verticalAlign=top;labelBorderColor=none;" parent="1" vertex="1">
|
||
<mxGeometry x="70" y="390" width="740" height="770" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="54" value="" style="edgeStyle=none;html=1;fontSize=21;fontColor=none;" parent="1" source="48" target="53" edge="1">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="58" value="" style="edgeStyle=none;html=1;fontSize=21;fontColor=none;" parent="1" source="48" target="57" edge="1">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="48" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #dcdcaa;">enable_caches</span>();</div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;" parent="1" vertex="1">
|
||
<mxGeometry x="378" y="544" width="270" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="49" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #569cd6;">struct</span> <span style="color: #4ec9b0;">metal_init_params&nbsp;</span><span style="color: rgb(156, 220, 254);">metal_param</span></div>" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;" parent="1" vertex="1">
|
||
<mxGeometry x="184" y="430" width="520" height="90" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="50" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #4ec9b0;">metal_log_handler</span> &nbsp; &nbsp; &nbsp;<span style="color: #9cdcfe;">log_handler</span>;</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;" parent="49" vertex="1">
|
||
<mxGeometry y="30" width="520" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="51" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #569cd6;">enum</span> <span style="color: #4ec9b0;">metal_log_level</span> &nbsp; &nbsp; &nbsp; <span style="color: #9cdcfe;">log_level</span>;</div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=none;" parent="49" vertex="1">
|
||
<mxGeometry y="60" width="520" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="56" value="" style="edgeStyle=none;html=1;fontSize=21;fontColor=none;" parent="1" source="53" target="55" edge="1">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="60" value="" style="edgeStyle=none;html=1;fontSize=21;fontColor=none;" parent="1" source="53" target="59" edge="1">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="53" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #dcdcaa;">init_uart</span>();</div>" style="whiteSpace=wrap;html=1;fontSize=21;fontColor=none;rounded=1;labelBackgroundColor=none;" parent="1" vertex="1">
|
||
<mxGeometry x="373" y="620" width="280" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="62" value="" style="edgeStyle=none;html=1;fontSize=21;fontColor=none;" parent="1" source="55" target="61" edge="1">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="64" value="" style="edgeStyle=none;html=1;fontSize=21;fontColor=default;" parent="1" source="55" target="63" edge="1">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="55" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: #dcdcaa;">init_irq</span>()</div>" style="whiteSpace=wrap;html=1;fontSize=21;fontColor=none;rounded=1;labelBackgroundColor=none;" parent="1" vertex="1">
|
||
<mxGeometry x="373" y="700" width="280" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="57" value="port" style="ellipse;shape=cloud;whiteSpace=wrap;html=1;fontSize=21;fontColor=default;rounded=1;labelBackgroundColor=none;fillColor=#FF6666;" parent="1" vertex="1">
|
||
<mxGeometry x="203" y="534" width="120" height="80" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="59" value="port" style="ellipse;shape=cloud;whiteSpace=wrap;html=1;fontSize=21;fontColor=default;rounded=1;labelBackgroundColor=none;fillColor=#FF6666;" parent="1" vertex="1">
|
||
<mxGeometry x="203" y="610" width="120" height="80" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="61" value="port" style="ellipse;shape=cloud;whiteSpace=wrap;html=1;fontSize=21;fontColor=default;rounded=1;labelBackgroundColor=none;fillColor=#FF6666;" parent="1" vertex="1">
|
||
<mxGeometry x="203" y="690" width="120" height="80" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="66" value="" style="edgeStyle=none;html=1;fontSize=21;fontColor=default;" parent="1" source="63" target="65" edge="1">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="63" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%;"><div style="line-height: 126%;"><span style="color: #6a9955;">/* Initialize libmetal environment */</span></div><div style="line-height: 126%;">&nbsp;&nbsp;<span style="color: #dcdcaa;">metal_init</span>(&amp;<span style="color: #9cdcfe;">metal_param</span>);</div></div>" style="whiteSpace=wrap;html=1;fontSize=21;fontColor=none;rounded=1;labelBackgroundColor=none;" parent="1" vertex="1">
|
||
<mxGeometry x="298" y="780" width="430" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="68" value="" style="edgeStyle=none;html=1;fontSize=21;fontColor=default;" parent="1" source="65" target="67" edge="1">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="70" value="" style="edgeStyle=none;html=1;" parent="1" source="65" target="69" edge="1">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="65" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%;"><div style="line-height: 126%;"><span style="color: #6a9955;">/* Initialize metal Xilinx IRQ controller */</span></div><div style="line-height: 126%;">&nbsp; &nbsp; <span style="color: #9cdcfe;">ret</span> = <span style="color: #dcdcaa;">metal_xlnx_irq_init</span>();</div></div>" style="whiteSpace=wrap;html=1;fontSize=21;fontColor=none;rounded=1;labelBackgroundColor=none;" parent="1" vertex="1">
|
||
<mxGeometry x="233" y="870" width="560" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="67" value="port" style="ellipse;shape=cloud;whiteSpace=wrap;html=1;fontSize=21;fontColor=none;rounded=1;labelBackgroundColor=none;fillColor=#FF6666;" parent="1" vertex="1">
|
||
<mxGeometry x="70" y="860" width="120" height="80" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="73" value="" style="edgeStyle=none;html=1;fontSize=21;" edge="1" parent="1" source="69" target="72">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="69" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%;"><div style="line-height: 126%;"><span style="color: #6a9955;">/* Register libmetal devices */</span></div><div style="line-height: 126%;"><span style="color: #dcdcaa;">platform_register_metal_device</span>();</div></div>" style="whiteSpace=wrap;html=1;fontSize=21;fontColor=none;rounded=1;labelBackgroundColor=none;" parent="1" vertex="1">
|
||
<mxGeometry x="230" y="950" width="560" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="75" value="" style="edgeStyle=none;html=1;fontSize=21;" edge="1" parent="1" source="72" target="74">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="72" value="<span style="border-color: var(--border-color); font-family: Consolas, &quot;Courier New&quot;, monospace; color: rgb(106, 153, 85);">/* Open libmetal devices which have been registered */<br></span><span style="border-color: var(--border-color); font-family: Consolas, &quot;Courier New&quot;, monospace; background-color: initial; color: rgb(220, 220, 170);">open_metal_devices</span><span style="border-color: var(--border-color); color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; background-color: initial;">();</span>" style="whiteSpace=wrap;html=1;fontSize=21;fontColor=none;rounded=1;labelBackgroundColor=none;" vertex="1" parent="1">
|
||
<mxGeometry x="119" y="1050" width="649" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="81" value="" style="edgeStyle=none;html=1;fontSize=18;fontColor=default;" edge="1" parent="1" source="74" target="80">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="74" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 16px;"><div style="line-height: 16px;"><span style="color: #569cd6;">int</span> <span style="color: #dcdcaa;">open_metal_devices</span>(<span style="color: #569cd6;">void</span>)</div></div>" style="whiteSpace=wrap;html=1;fontSize=21;fontColor=none;rounded=1;labelBackgroundColor=none;verticalAlign=top;arcSize=7;" vertex="1" parent="1">
|
||
<mxGeometry x="853" y="690" width="780" height="470" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="76" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 18px; line-height: 16px;"><div style="font-size: 18px;"><span style="color: rgb(106, 153, 85); font-size: 18px;">/* Open TTC device */</span></div><div style="font-size: 18px;">&nbsp; &nbsp; <span style="color: rgb(156, 220, 254); font-size: 18px;">ret</span> = <span style="color: rgb(220, 220, 170); font-size: 18px;">metal_device_open</span>(<span style="color: rgb(86, 156, 214); font-size: 18px;">BUS_NAME</span>, <span style="color: rgb(86, 156, 214); font-size: 18px;">TTC_DEV_NAME</span>,&amp;<span style="color: rgb(156, 220, 254); font-size: 18px;">ttc_dev</span>);</div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=18;" vertex="1" parent="1">
|
||
<mxGeometry x="953" y="1030" width="610" height="100" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="77" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 18px; line-height: 16px;"><div style="color: rgb(212, 212, 212); line-height: 16px;"><div><span style="color: #6a9955;">/* Open shared memory device */</span></div><div>&nbsp; &nbsp; <span style="color: #9cdcfe;">ret</span> = <span style="color: #dcdcaa;">metal_device_open</span>(<span style="color: #569cd6;">BUS_NAME</span>, <span style="color: #569cd6;">SHM_DEV_NAME</span>,&amp;<span style="color: #9cdcfe;">shm_dev</span>);</div></div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=14;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="953" y="750" width="610" height="110" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="78" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 18px; line-height: 16px;"><div><span style="color: #6a9955;">/* Open IPI device */</span></div><div>&nbsp; &nbsp; <span style="color: #9cdcfe;">ret</span> = <span style="color: #dcdcaa;">metal_device_open</span>(<span style="color: #569cd6;">BUS_NAME</span>, <span style="color: #569cd6;">IPI_DEV_NAME</span>,&amp;<span style="color: #9cdcfe;">ipi_dev</span>);</div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=14;" vertex="1" parent="1">
|
||
<mxGeometry x="953" y="890" width="610" height="110" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="79" value="<font style="font-size: 26px;">application</font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;labelBackgroundColor=none;fontSize=18;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="1499" y="-1000" width="60" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="87" value="" style="edgeStyle=none;html=1;fontSize=26;fontColor=default;" edge="1" parent="1" source="80" target="86">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="80" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 16px;"><span style="color: #569cd6;">void</span> <span style="color: #dcdcaa;">close_metal_devices</span>(<span style="color: #569cd6;">void</span>)</div>" style="whiteSpace=wrap;html=1;fontSize=21;verticalAlign=top;fontColor=none;rounded=1;labelBackgroundColor=none;arcSize=7;" vertex="1" parent="1">
|
||
<mxGeometry x="1714" y="650" width="720" height="460" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="82" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%;"><div style="line-height: 126%;"><span style="color: #6a9955;">/* Close IPI device */</span></div><div style="line-height: 126%;"><span style="color: #dcdcaa;">metal_device_close</span>(<span style="color: #9cdcfe;">ipi_dev</span>);</div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=18;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="1824" y="850" width="530" height="90" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="83" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%;"><div style="line-height: 126%;"><span style="color: #6a9955;">/* Close TTC device */</span></div><div style="line-height: 126%;"><span style="color: #dcdcaa;">metal_device_close</span>(<span style="color: #9cdcfe;">ttc_dev</span>);</div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=18;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="1824" y="980" width="530" height="80" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="84" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%;"><div style="line-height: 126%;"><span style="color: #6a9955;">/* Close shared memory device */</span></div><div style="line-height: 126%;"><span style="color: rgb(220, 220, 170);">metal_device_close</span>(<span style="color: rgb(156, 220, 254);">shm_dev</span>);</div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=18;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="1824" y="710" width="530" height="90" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="86" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 16px;"><span style="color: #569cd6;">void</span> <span style="color: #dcdcaa;">sys_cleanup</span>()</div>" style="whiteSpace=wrap;html=1;fontSize=21;verticalAlign=top;fontColor=none;rounded=1;labelBackgroundColor=none;arcSize=7;" vertex="1" parent="1">
|
||
<mxGeometry x="2520" y="530" width="750" height="630" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="88" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 21px; line-height: 126%;"><div style="line-height: 126%;"><span style="color: #6a9955;">/* Close libmetal devices which have been opened */</span></div><div style="line-height: 126%;"><span style="font-size: 21px; background-color: initial; color: rgb(220, 220, 170);">close_metal_devices</span><span style="font-size: 21px; background-color: initial;">();</span></div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="2625" y="600" width="540" height="130" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="89" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 21px; line-height: 126%;"><div style="line-height: 126%;"><span style="color: #6a9955;">/* Finish libmetal environment */</span></div><div style="line-height: 126%;">&nbsp; &nbsp; <span style="color: #dcdcaa;">metal_finish</span>();</div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="2625" y="790" width="540" height="130" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="90" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px; font-size: 30px;"><span style="color: rgb(220, 220, 170);"><font style="font-size: 30px;">disable_caches</font></span><span style="">();</span></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="2625" y="970" width="540" height="130" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="91" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 21px; line-height: 16px;"><div style="text-align: left;"><span style="color: #569cd6;">static</span> <span style="color: #569cd6;">struct</span> <span style="color: #4ec9b0;">metal_device</span> <span style="color: #9cdcfe;">metal_dev_table</span><span style="color: #569cd6;">[]</span> =&nbsp;</div><div style="text-align: left;"><span style="background-color: initial;">{</span></div><div style="font-size: 12px; line-height: 16px;"><div style="text-align: left;"><span style="color: #6a9955;">/* IPI device */</span></div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">name</span> = <span style="color: #569cd6;">IPI_DEV_NAME</span>,</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">bus</span> = <span style="color: #569cd6;">NULL</span>,</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">num_regions</span> = <span style="color: #b5cea8;">1</span>,</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">regions</span> = {</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">virt</span> = (<span style="color: #569cd6;">void</span> *)<span style="color: #569cd6;">IPI_BASE_ADDR</span>,</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">physmap</span> = &amp;<span style="color: #9cdcfe;">metal_phys</span>[<span style="color: #b5cea8;">0</span>],</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">size</span> = <span style="color: #b5cea8;">0x1000</span>,</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">page_shift</span> = <span style="color: #569cd6;">DEFAULT_PAGE_SHIFT</span>,</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">page_mask</span> = <span style="color: #569cd6;">DEFAULT_PAGE_MASK</span>,</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">mem_flags</span> = DEVICE_NONSHARED | PRIV_RW_USER_RW,</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">ops</span> = {<span style="color: #569cd6;">NULL</span>},</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }},</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">node</span> = {<span style="color: #569cd6;">NULL</span>},</div><div style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #9cdcfe;">irq_num</span> = <span style="color: #b5cea8;">1</span>,</div></div><div style="text-align: left;"><span style="font-size: 12px;">&nbsp; &nbsp; &nbsp; &nbsp; .</span><span style="font-size: 12px; color: rgb(156, 220, 254);">irq_info</span><span style="font-size: 12px;"> = (</span><span style="font-size: 12px; color: rgb(86, 156, 214);">void</span><span style="font-size: 12px;"> *)</span><span style="font-size: 12px; color: rgb(86, 156, 214);">IPI_IRQ_VECT_ID</span><span style="font-size: 12px;">,</span></div><div style="text-align: left;"><span style="">}</span><br></div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=30;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="910" y="299" width="690" height="371" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="92" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 21px; line-height: 16px;"><span style="color: #569cd6;">const</span> <span style="color: #4ec9b0;">metal_phys_addr_t</span> <span style="color: #9cdcfe;">metal_phys</span><span style="color: #569cd6;">[]</span></div>" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=30;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="846" y="140" width="430" height="120" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="93" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: rgb(86, 156, 214);"><font style="font-size: 21px;">IPI_BASE_ADDR</font></span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=30;fontColor=default;" vertex="1" parent="92">
|
||
<mxGeometry y="30" width="430" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="94" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: rgb(86, 156, 214);"><font style="font-size: 21px;">SHM_BASE_ADDR</font></span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=30;fontColor=default;" vertex="1" parent="92">
|
||
<mxGeometry y="60" width="430" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="95" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><span style="color: rgb(86, 156, 214);"><font style="font-size: 21px;">TTC0_BASE_ADDR</font></span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=30;fontColor=default;" vertex="1" parent="92">
|
||
<mxGeometry y="90" width="430" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="96" value="<span style="color: rgb(86, 156, 214); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; text-align: start;" class="mtk5">struct</span><span style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; text-align: start;" class="mtk1"> </span><span style="color: rgb(78, 201, 176); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; text-align: start;" class="mtk16">metal_device</span>" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="1286" y="140" width="350" height="120" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="97" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;">*<span style="color: #9cdcfe;">ipi_dev</span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=default;" vertex="1" parent="96">
|
||
<mxGeometry y="30" width="350" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="98" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;">*<span style="color: #9cdcfe;">shm_dev</span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=default;" vertex="1" parent="96">
|
||
<mxGeometry y="60" width="350" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="99" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;">*<span style="color: #9cdcfe;">ttc_dev</span></div>" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=default;" vertex="1" parent="96">
|
||
<mxGeometry y="90" width="350" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="101" value="sys_init.c" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;labelBackgroundColor=none;fontSize=50;fontColor=default;" vertex="1" parent="1">
|
||
<mxGeometry x="550" width="580" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="102" value="实例化设备" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;labelBackgroundColor=none;fontSize=21;fontColor=#FF0080;" vertex="1" parent="1">
|
||
<mxGeometry x="846" y="330" width="284" height="340" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="109" value="<font style="font-size: 30px;">main()</font>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#FF0080;verticalAlign=top;" vertex="1" parent="1">
|
||
<mxGeometry x="330" y="-1050" width="740" height="970" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="112" value="" style="endArrow=classic;html=1;fontSize=21;fontColor=#FF0080;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;strokeColor=#FF0000;strokeWidth=10;dashed=1;" edge="1" parent="1" source="114" target="101">
|
||
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||
<mxPoint x="870" y="-840" as="sourcePoint"/>
|
||
<mxPoint x="840" y="-60" as="targetPoint"/>
|
||
<Array as="points">
|
||
<mxPoint x="240" y="-955"/>
|
||
<mxPoint x="250" y="-70"/>
|
||
<mxPoint x="840" y="-70"/>
|
||
</Array>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="113" value="<font style="font-size: 50px;">libmetal_amp_demod.c</font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;labelBackgroundColor=none;fontSize=21;fontColor=#FF0080;" vertex="1" parent="1">
|
||
<mxGeometry x="420" y="-1140" width="560" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="114" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><span style="color: rgb(106, 153, 85); font-size: 26px;">Setup libmetal resources</span></div><div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><div style="line-height: 126%; font-size: 26px;"><span style="color: rgb(220, 220, 170); font-size: 26px;">sys_init</span>();</div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=#FF0080;" vertex="1" parent="1">
|
||
<mxGeometry x="470" y="-990" width="460" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="115" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><div style="line-height: 126%; font-size: 26px;"><span style="color: rgb(106, 153, 85); font-size: 26px;">Run the shared memory throughput demo</span></div></div><div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><span style="color: rgb(220, 220, 170); font-size: 26px;">shmem_throughput_demod</span>();</div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=#FF0080;" vertex="1" parent="1">
|
||
<mxGeometry x="430" y="-300" width="550" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="116" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><div style="line-height: 126%; font-size: 26px;"><span style="color: rgb(106, 153, 85); font-size: 26px;">Run the shared memory latency demo</span></div></div><div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><span style="color: rgb(220, 220, 170); font-size: 26px;">shmem_latency_demod</span>();</div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=#FF0080;" vertex="1" parent="1">
|
||
<mxGeometry x="435" y="-420" width="540" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="117" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><div style="line-height: 126%; font-size: 26px;"><span style="color: rgb(106, 153, 85); font-size: 26px;">Run the ipi latency demo</span></div></div><div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><span style="color: rgb(220, 220, 170); font-size: 26px;">ipi_latency_demod</span>();</div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=#FF0080;" vertex="1" parent="1">
|
||
<mxGeometry x="470" y="-540" width="460" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="118" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><div style="line-height: 126%; font-size: 26px;"><span style="color: rgb(106, 153, 85); font-size: 26px;">Run the IPI with shared memory demo</span></div></div><div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><span style="color: rgb(220, 220, 170); font-size: 26px;">ipi_shmem_demod</span>();</div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=#FF0080;" vertex="1" parent="1">
|
||
<mxGeometry x="420" y="-660" width="550" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="119" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><div style="line-height: 126%; font-size: 26px;"><span style="color: rgb(106, 153, 85); font-size: 26px;">Run the atomic across shared memory demo</span></div></div><div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><span style="color: rgb(220, 220, 170); font-size: 26px;">atomic_shmem_demod</span>();</div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=#FF0080;" vertex="1" parent="1">
|
||
<mxGeometry x="400" y="-770" width="610" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="120" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><div style="line-height: 126%; font-size: 26px;"><span style="color: rgb(106, 153, 85); font-size: 26px;">Run the shared memory demo</span></div><div style="line-height: 126%; font-size: 26px;"><div style="line-height: 126%; font-size: 26px;"><span style="color: rgb(220, 220, 170); font-size: 26px;">shmem_demod</span>();</div></div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=#FF0080;" vertex="1" parent="1">
|
||
<mxGeometry x="471" y="-880" width="460" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="121" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><div style="line-height: 126%; font-size: 26px;"><span style="color: rgb(106, 153, 85); font-size: 26px;">Cleanup libmetal resources</span></div></div><div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 26px; line-height: 126%;"><span style="color: rgb(220, 220, 170); font-size: 26px;">sys_cleanup</span>();</div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=26;fontColor=#FF0080;" vertex="1" parent="1">
|
||
<mxGeometry x="470" y="-190" width="460" height="70" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="123" value="" style="endArrow=classic;html=1;fontSize=30;fontColor=#FF0080;exitX=1;exitY=0.5;exitDx=0;exitDy=0;strokeWidth=10;strokeColor=#FF0000;dashed=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="109" target="18">
|
||
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||
<mxPoint x="1130" y="-780" as="sourcePoint"/>
|
||
<mxPoint x="1680" y="-820" as="targetPoint"/>
|
||
<Array as="points"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="124" value="" style="endArrow=classic;html=1;fontSize=30;fontColor=none;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;labelBorderColor=none;labelBackgroundColor=none;noLabel=1;strokeColor=#FF0000;strokeWidth=10;dashed=1;" edge="1" parent="1" source="121" target="86">
|
||
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||
<mxPoint x="1480" y="-110" as="sourcePoint"/>
|
||
<mxPoint x="1869.0277099609375" y="90" as="targetPoint"/>
|
||
<Array as="points"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="146" value="" style="edgeStyle=none;html=1;dashed=1;labelBackgroundColor=none;labelBorderColor=none;strokeColor=#FF0000;strokeWidth=5;fontSize=21;fontColor=#FF3333;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="126" target="176">
|
||
<mxGeometry relative="1" as="geometry">
|
||
<mxPoint x="2210" y="-580" as="targetPoint"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="153" value="" style="edgeStyle=none;html=1;dashed=1;labelBackgroundColor=none;labelBorderColor=none;strokeColor=#FF0000;strokeWidth=5;fontSize=15;fontColor=#6666FF;" edge="1" parent="1" source="126" target="127">
|
||
<mxGeometry relative="1" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="154" style="edgeStyle=none;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;dashed=1;labelBackgroundColor=none;labelBorderColor=none;strokeColor=#FF0000;strokeWidth=5;fontSize=15;fontColor=#6666FF;" edge="1" parent="1" source="126" target="128">
|
||
<mxGeometry relative="1" as="geometry">
|
||
<Array as="points">
|
||
<mxPoint x="1534" y="-560"/>
|
||
<mxPoint x="1900" y="-560"/>
|
||
<mxPoint x="1900" y="-235"/>
|
||
</Array>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="126" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%; font-size: 21px;"><span style="color: rgb(106, 153, 85);"><font style="font-size: 21px;">shmem_echod() - Show use of shared memory with libmetal.</font></span></div><div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%; font-size: 21px;"><div style="line-height: 126%;"><span style="color: rgb(106, 153, 85);"><font style="font-size: 21px;">Wait for message from APU. Once received, read and echo it back.</font></span></div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=30;fontColor=none;" vertex="1" parent="1">
|
||
<mxGeometry x="1199" y="-710" width="670" height="130" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="127" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%; font-size: 21px;"><span style="color: rgb(106, 153, 85);"><font style="font-size: 21px;">reset_timer() - function to reset TTC counter</font></span></div><div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 126%; font-size: 21px;"><div style="line-height: 126%;"><span style="color: rgb(106, 153, 85);"><font style="font-size: 21px;">Set the RST bit in the Count Control Reg.</font></span></div><div style="line-height: 126%;"><div style="border-color: var(--border-color); line-height: 126%;"><span style="border-color: var(--border-color); color: rgb(106, 153, 85);"><font style="font-size: 21px;">stop_timer() - function to stop TTC counter</font></span></div><div style="border-color: var(--border-color); line-height: 126%;"><div style="border-color: var(--border-color); line-height: 126%;"><span style="border-color: var(--border-color); color: rgb(106, 153, 85);"><font style="font-size: 21px;">Set the disable bit in the Count Control Reg.</font></span></div></div></div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=30;fontColor=none;" vertex="1" parent="1">
|
||
<mxGeometry x="1194" y="-510" width="670" height="130" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="128" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 21px; line-height: 126%;"><div style="line-height: 126%;"><span style="color: #6a9955;">ipi_irq_handler() - IPI interrupt handler</span></div><div style="line-height: 126%;"><div style="line-height: 126%;"><span style="color: #6a9955;">measure_ipi_latencyd() - measure IPI latency with libmetal&nbsp;</span><span style="color: rgb(106, 153, 85);">Loop until APU tells RPU to stop via shared memory.</span></div></div></div>" style="rounded=1;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=30;fontColor=none;" vertex="1" parent="1">
|
||
<mxGeometry x="1193" y="-310" width="670" height="150" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="129" value="<font color="#ff3333">shm</font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;labelBackgroundColor=none;fontSize=30;fontColor=none;" vertex="1" parent="1">
|
||
<mxGeometry x="1199" y="-740" width="60" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="130" value="<font color="#ff3333">ttc</font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;labelBackgroundColor=none;fontSize=30;fontColor=none;" vertex="1" parent="1">
|
||
<mxGeometry x="1194" y="-540" width="60" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="131" value="<font color="#ff3333">ipi</font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;labelBackgroundColor=none;fontSize=30;fontColor=none;" vertex="1" parent="1">
|
||
<mxGeometry x="1205" y="-350" width="60" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="132" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 16px;"><span style="color: #6a9955;">shmem_demo.c(主机 APU)</span></div>" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#FF3333;" vertex="1" parent="1">
|
||
<mxGeometry x="1970" y="-1050" width="490" height="380" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="133" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><font style="font-size: 15px;">1.Open the shared memory device.<span style="white-space: pre;">	</span></font></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;labelBorderColor=none;strokeWidth=1;" vertex="1" parent="132">
|
||
<mxGeometry y="30" width="490" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="134" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><font style="font-size: 15px;">2.Clear the demo control TX/RX available values in shared memory.</font></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="132">
|
||
<mxGeometry y="60" width="490" height="40" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="135" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><font style="font-size: 15px;">3.APU set demo control in shared memory to notify RPU demo has started</font></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="132">
|
||
<mxGeometry y="100" width="490" height="40" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="141" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><font style="font-size: 15px;">4.APU will write message to the shared memory.</font></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="132">
|
||
<mxGeometry y="140" width="490" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="142" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 15px; line-height: 16px;"><span style="">5.APU will increase TX avail values in the shared memory to notify RPU&nbsp;</span><span style="">there is a message ready to read.</span></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="132">
|
||
<mxGeometry y="170" width="490" height="40" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="143" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 15px; line-height: 16px;"><span style="">6.APU will poll the RX avail value in th shared memory to see if RPU&nbsp;</span><span style="">has echoed back the message into the shared memory.</span></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="132">
|
||
<mxGeometry y="210" width="490" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="144" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 15px; line-height: 16px;"><span style="">7.When APU knows there is new RX message available, it will read the&nbsp;</span><span style="">RX message from the shared memory.</span></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="132">
|
||
<mxGeometry y="270" width="490" height="40" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="147" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><div style="line-height: 16px;"><font style="font-size: 15px;">8.APU will verify the message to see if it matches the one it has sent.</font></div></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="132">
|
||
<mxGeometry y="310" width="490" height="40" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="148" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><div style="line-height: 16px;"><div style="line-height: 16px;"><font style="font-size: 15px;">9.Close the shared memory device.</font></div></div></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="132">
|
||
<mxGeometry y="350" width="490" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="164" value="<div style="color: rgb(212, 212, 212); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 16px;"><span style="color: #6a9955;">shmem_demo.c(从机 RPU)</span></div>" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#FF3333;" vertex="1" parent="1">
|
||
<mxGeometry x="1970" y="-510" width="490" height="380" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="165" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><font style="font-size: 15px;">1.Get the shared memory device I/O region.<span style="">	</span></font></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;labelBorderColor=none;strokeWidth=1;" vertex="1" parent="164">
|
||
<mxGeometry y="30" width="490" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="166" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><font style="font-size: 15px;">2.Clear the demo control value in shared memory.</font></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="164">
|
||
<mxGeometry y="60" width="490" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="167" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><font style="font-size: 15px;">3.Check the demo control value in the shared memory to wait for APU to start the demo.</font></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="164">
|
||
<mxGeometry y="90" width="490" height="40" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="168" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><font style="font-size: 15px;">4.Once the demo control value indicates the demo starts, it polls on RX available value to see if there is new RX message available.</font></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="164">
|
||
<mxGeometry y="130" width="490" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="169" value="<div style="line-height: 16px;"><span style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 15px;">5.</span><font face="Consolas, Courier New, monospace"><span style="font-size: 15px;">If there is a new RX message available, it reads the message from the shared memory.</span></font></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="164">
|
||
<mxGeometry y="190" width="490" height="40" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="170" value="<div style="line-height: 16px;"><span style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 15px;">6.</span><font face="Consolas, Courier New, monospace"><span style="font-size: 15px;">It echos back the message to the shared memory.</span></font></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="164">
|
||
<mxGeometry y="230" width="490" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="172" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><div style="line-height: 16px;"><font style="font-size: 15px;">7.AIt increases the TX available value in the shared memory to notify the other end there is a message available to read.</font></div></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="164">
|
||
<mxGeometry y="260" width="490" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="173" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; line-height: 16px;"><div style="line-height: 16px;"><div style="line-height: 16px;"><font style="font-size: 15px;">8.Check if the demo control value and the RX available values to see if demo finishes and if there is new RX data available.</font></div></div></div>" style="text;strokeColor=#666666;fillColor=#f5f5f5;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;labelBackgroundColor=none;fontSize=21;fontColor=#333333;" vertex="1" parent="164">
|
||
<mxGeometry y="320" width="490" height="60" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="175" value="" style="endArrow=classic;startArrow=classic;html=1;dashed=1;labelBackgroundColor=none;labelBorderColor=none;strokeColor=#FF0000;strokeWidth=5;fontSize=15;fontColor=#6666FF;entryX=0.5;entryY=1;entryDx=0;entryDy=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="164" target="132">
|
||
<mxGeometry width="50" height="50" relative="1" as="geometry">
|
||
<mxPoint x="2180" y="-440" as="sourcePoint"/>
|
||
<mxPoint x="2230" y="-490" as="targetPoint"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="180" value="" style="edgeStyle=none;html=1;dashed=1;labelBackgroundColor=none;labelBorderColor=none;strokeColor=#FF0000;strokeWidth=5;fontSize=15;fontColor=#6666FF;" edge="1" parent="1" source="176">
|
||
<mxGeometry relative="1" as="geometry">
|
||
<mxPoint x="2510" y="-584" as="targetPoint"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="176" value="<font style="font-size: 25px;">主从机通信交互</font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="1">
|
||
<mxGeometry x="2210" y="-599.5" width="190" height="30" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="182" value="Table" style="shape=table;startSize=30;container=1;collapsible=0;childLayout=tableLayout;fontStyle=1;align=center;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="1">
|
||
<mxGeometry x="2520" y="-810" width="470" height="535" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="183" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="182">
|
||
<mxGeometry y="30" width="470" height="63" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="184" value="偏移" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="183">
|
||
<mxGeometry width="50" height="63" as="geometry">
|
||
<mxRectangle width="50" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="185" value="大小" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="183">
|
||
<mxGeometry x="50" width="70" height="63" as="geometry">
|
||
<mxRectangle width="70" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="186" value="说明" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="183">
|
||
<mxGeometry x="120" width="350" height="63" as="geometry">
|
||
<mxRectangle width="350" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="204" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="182">
|
||
<mxGeometry y="93" width="470" height="63" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="205" value="0" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="204">
|
||
<mxGeometry width="50" height="63" as="geometry">
|
||
<mxRectangle width="50" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="206" value="4Bytes" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="204">
|
||
<mxGeometry x="50" width="70" height="63" as="geometry">
|
||
<mxRectangle width="70" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="207" value="DEMO control status shows if demo starts or not" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="204">
|
||
<mxGeometry x="120" width="350" height="63" as="geometry">
|
||
<mxRectangle width="350" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="187" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="182">
|
||
<mxGeometry y="156" width="470" height="64" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="188" value="0x04" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="187">
|
||
<mxGeometry width="50" height="64" as="geometry">
|
||
<mxRectangle width="50" height="64" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="189" value="4Bytes" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="187">
|
||
<mxGeometry x="50" width="70" height="64" as="geometry">
|
||
<mxRectangle width="70" height="64" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="190" value="number of APU to RPU buffers available to RPU" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="187">
|
||
<mxGeometry x="120" width="350" height="64" as="geometry">
|
||
<mxRectangle width="350" height="64" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="191" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="182">
|
||
<mxGeometry y="220" width="470" height="63" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="192" value="0x08" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="191">
|
||
<mxGeometry width="50" height="63" as="geometry">
|
||
<mxRectangle width="50" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="193" value="4Bytes" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="191">
|
||
<mxGeometry x="50" width="70" height="63" as="geometry">
|
||
<mxRectangle width="70" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="194" value="number of APU to RPU buffers consumed by RPU" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="191">
|
||
<mxGeometry x="120" width="350" height="63" as="geometry">
|
||
<mxRectangle width="350" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="199" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="182">
|
||
<mxGeometry y="283" width="470" height="63" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="200" value="0x0c" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="199">
|
||
<mxGeometry width="50" height="63" as="geometry">
|
||
<mxRectangle width="50" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="201" value="4Bytes" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="199">
|
||
<mxGeometry x="50" width="70" height="63" as="geometry">
|
||
<mxRectangle width="70" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="202" value="number of RPU to APU buffers available to APU" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="199">
|
||
<mxGeometry x="120" width="350" height="63" as="geometry">
|
||
<mxRectangle width="350" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="195" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="182">
|
||
<mxGeometry y="346" width="470" height="63" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="196" value="0x10" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="195">
|
||
<mxGeometry width="50" height="63" as="geometry">
|
||
<mxRectangle width="50" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="197" value="4Bytes" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="195">
|
||
<mxGeometry x="50" width="70" height="63" as="geometry">
|
||
<mxRectangle width="70" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="198" value="number of RPU to APU buffers consumed by APU" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="195">
|
||
<mxGeometry x="120" width="350" height="63" as="geometry">
|
||
<mxRectangle width="350" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="209" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="182">
|
||
<mxGeometry y="409" width="470" height="63" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="210" value="0x14" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="209">
|
||
<mxGeometry width="50" height="63" as="geometry">
|
||
<mxRectangle width="50" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="211" value="1KBytes" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="209">
|
||
<mxGeometry x="50" width="70" height="63" as="geometry">
|
||
<mxRectangle width="70" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="212" value="APU to RPU buffer" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="209">
|
||
<mxGeometry x="120" width="350" height="63" as="geometry">
|
||
<mxRectangle width="350" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="213" value="" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="182">
|
||
<mxGeometry y="472" width="470" height="63" as="geometry"/>
|
||
</mxCell>
|
||
<mxCell id="214" value="0x800" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="213">
|
||
<mxGeometry width="50" height="63" as="geometry">
|
||
<mxRectangle width="50" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="215" value="1KBytes" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="213">
|
||
<mxGeometry x="50" width="70" height="63" as="geometry">
|
||
<mxRectangle width="70" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="216" value="RPU to APU buffer" style="shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;fillColor=none;top=0;left=0;bottom=0;right=0;overflow=hidden;labelBackgroundColor=none;labelBorderColor=none;strokeWidth=1;fontSize=15;fontColor=#6666FF;" vertex="1" parent="213">
|
||
<mxGeometry x="120" width="350" height="63" as="geometry">
|
||
<mxRectangle width="350" height="63" as="alternateBounds"/>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
</root>
|
||
</mxGraphModel>
|
||
</diagram>
|
||
</mxfile> |