548 lines
32 KiB
HTML
548 lines
32 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Real Use Cases » Static Timing Analysis | Taskflow QuickStart</title>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
|
|
<link rel="stylesheet" href="m-dark+documentation.compiled.css" />
|
|
<link rel="icon" href="favicon.ico" type="image/vnd.microsoft.icon" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="theme-color" content="#22272e" />
|
|
</head>
|
|
<body>
|
|
<header><nav id="navigation">
|
|
<div class="m-container">
|
|
<div class="m-row">
|
|
<span id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">
|
|
<a href="https://taskflow.github.io"><img src="taskflow_logo.png" alt="" />Taskflow</a> <span class="m-breadcrumb">|</span> <a href="index.html" class="m-thin">QuickStart</a>
|
|
</span>
|
|
<div class="m-col-t-4 m-hide-m m-text-right m-nopadr">
|
|
<a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
|
|
<path id="m-doc-search-icon-path" d="m6 0c-3.31 0-6 2.69-6 6 0 3.31 2.69 6 6 6 1.49 0 2.85-0.541 3.89-1.44-0.0164 0.338 0.147 0.759 0.5 1.15l3.22 3.79c0.552 0.614 1.45 0.665 2 0.115 0.55-0.55 0.499-1.45-0.115-2l-3.79-3.22c-0.392-0.353-0.812-0.515-1.15-0.5 0.895-1.05 1.44-2.41 1.44-3.89 0-3.31-2.69-6-6-6zm0 1.56a4.44 4.44 0 0 1 4.44 4.44 4.44 4.44 0 0 1-4.44 4.44 4.44 4.44 0 0 1-4.44-4.44 4.44 4.44 0 0 1 4.44-4.44z"/>
|
|
</svg></a>
|
|
<a id="m-navbar-show" href="#navigation" title="Show navigation"></a>
|
|
<a id="m-navbar-hide" href="#" title="Hide navigation"></a>
|
|
</div>
|
|
<div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
|
|
<div class="m-row">
|
|
<ol class="m-col-t-6 m-col-m-none">
|
|
<li><a href="pages.html">Handbook</a></li>
|
|
<li><a href="namespaces.html">Namespaces</a></li>
|
|
</ol>
|
|
<ol class="m-col-t-6 m-col-m-none" start="3">
|
|
<li><a href="annotated.html">Classes</a></li>
|
|
<li><a href="files.html">Files</a></li>
|
|
<li class="m-show-m"><a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
|
|
<use href="#m-doc-search-icon-path" />
|
|
</svg></a></li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav></header>
|
|
<main><article>
|
|
<div class="m-container m-container-inflatable">
|
|
<div class="m-row">
|
|
<div class="m-col-l-10 m-push-l-1">
|
|
<h1>
|
|
<span class="m-breadcrumb"><a href="usecases.html">Real Use Cases</a> »</span>
|
|
Static Timing Analysis
|
|
</h1>
|
|
<nav class="m-block m-default">
|
|
<h3>Contents</h3>
|
|
<ul>
|
|
<li><a href="#UseCasesOpenTimer">OpenTimer: A High-performance Timing Analysis Tool</a></li>
|
|
<li><a href="#UseCaseOpenTimerProgrammingEffort">Programming Effort</a></li>
|
|
<li><a href="#UseCaseOpenTimerPerformanceImprovement">Performance Improvement</a></li>
|
|
<li><a href="#UseCaseOpenTimerConclusion">Conclusion</a></li>
|
|
<li><a href="#UseCaseOpenTimerReferences">References</a></li>
|
|
</ul>
|
|
</nav>
|
|
<p>We have applied Taskflow to solve a real-world VLSI static timing analysis problem that incorporates hundreds of millions of tasks and dependencies. The goal is to analyze the timing behavior of a design.</p><section id="UseCasesOpenTimer"><h2><a href="#UseCasesOpenTimer">OpenTimer: A High-performance Timing Analysis Tool</a></h2><p>Static timing analysis (STA) is an important step in the overall chip design flow. It verifies the static behavior of a circuit design and ensure its correct functionality under the given clock speed. However, efficient parallel timing analysis is extremely challenging to design and implement, due to large irregularity and graph-oriented computing. The following figure shows an extracted timing graph from an industrial design.</p><img class="m-image" src="opentimer_1.png" alt="Image" /><p>We consider our research project <a href="https://github.com/OpenTimer/OpenTimer">OpenTimer</a>, an open-source static timing analyzer that has been used in many industrial and academic projects. The first release v1 in 2015 implemented the <em>pipeline-based levelization</em> algorithm using the OpenMP 4.5 task dependency clause. To overcome the performance bottleneck caused by pipeline, we rewrote the core incremental timing engine using Taskflow in the second release v2.</p></section><section id="UseCaseOpenTimerProgrammingEffort"><h2><a href="#UseCaseOpenTimerProgrammingEffort">Programming Effort</a></h2><p>The table below measures the software costs of two OpenTimer versions using the Linux tool <a href="https://dwheeler.com/sloccount/">SLOCCount</a>. In OpenTimer v2, a large amount of exhaustive OpenMP dependency clauses that were used to carry out task dependencies are now replaced with only a few lines of flexible Taskflow code (9123 vs 4482). The maximum cyclomatic complexity in a single function is reduced from 58 to 20, due to Taskflow's programmability.</p><table class="m-table"><thead><tr><th>Tool</th><th>Task Model</th><th>Lines of Code</th><th>Cyclomatic Complexity</th><th>Cost</th></tr></thead><tbody><tr><td>OpenTimer v1</td><td>OpenMP 4.5</td><td>9123</td><td>58</td><td>$275,287</td></tr><tr><td>OpenTimer v2</td><td>Taskflow</td><td>4482</td><td>20</td><td>$130,523</td></tr></tbody></table><p>OpenTimer v1 relied on a pipeline data structure to adtop loop parallelism with OpenMP. We found it very difficult to go beyond this paradigm because of the insufficient support for dynamic dependencies in OpenMP. With Taskflow in place, we can break this bottleneck and easily model both static and dynamic task dependencies at programming time and runtime. The task dependency graph flows computations naturally with the timing graph, providing improved asynchrony and performance. The following figure shows a task graph to carry one iteration of timing update.</p><div class="m-graph"><svg style="width: 55.400rem; height: 112.400rem;" viewBox="0.00 0.00 554.14 1124.00">
|
|
<g transform="scale(1 1) rotate(0) translate(4 1120)">
|
|
<title>Taskflow</title>
|
|
<g class="m-node">
|
|
<title>[A33] bprop_tau2015_clk</title>
|
|
<ellipse cx="153.69" cy="-18" rx="81.47" ry="18"/>
|
|
<text text-anchor="middle" x="153.69" y="-15.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A33] bprop_tau2015_clk</text>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A32] bprop_f1:CLK</title>
|
|
<ellipse cx="153.69" cy="-90" rx="64.51" ry="18"/>
|
|
<text text-anchor="middle" x="153.69" y="-87.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A32] bprop_f1:CLK</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A32] bprop_f1:CLK->[A33] bprop_tau2015_clk</title>
|
|
<path d="M153.69,-71.7C153.69,-63.98 153.69,-54.71 153.69,-46.11"/>
|
|
<polygon points="157.19,-46.1 153.69,-36.1 150.19,-46.1 157.19,-46.1"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A31] bprop_f1:Q</title>
|
|
<ellipse cx="212.69" cy="-162" rx="58.06" ry="18"/>
|
|
<text text-anchor="middle" x="212.69" y="-159.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A31] bprop_f1:Q</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A31] bprop_f1:Q->[A32] bprop_f1:CLK</title>
|
|
<path d="M193.2,-144.76C185.09,-136.27 175.93,-125.68 168.38,-116.15"/>
|
|
<polygon points="171.09,-113.93 162.22,-108.12 165.53,-118.19 171.09,-113.93"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A31] bprop_f1:Q->[A32] bprop_f1:CLK</title>
|
|
<path d="M204.28,-144.05C197.79,-135.24 188.78,-124.33 180.09,-114.69"/>
|
|
<polygon points="182.61,-112.26 173.24,-107.31 177.47,-117.02 182.61,-112.26"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A30] bprop_u4:B</title>
|
|
<ellipse cx="212.69" cy="-234" rx="59.41" ry="18"/>
|
|
<text text-anchor="middle" x="212.69" y="-231.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A30] bprop_u4:B</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A30] bprop_u4:B->[A31] bprop_f1:Q</title>
|
|
<path d="M212.69,-215.7C212.69,-207.98 212.69,-198.71 212.69,-190.11"/>
|
|
<polygon points="216.19,-190.1 212.69,-180.1 209.19,-190.1 216.19,-190.1"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A29] bprop_u2:A</title>
|
|
<ellipse cx="486.69" cy="-234" rx="59.41" ry="18"/>
|
|
<text text-anchor="middle" x="486.69" y="-231.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A29] bprop_u2:A</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A29] bprop_u2:A->[A31] bprop_f1:Q</title>
|
|
<path d="M442.67,-221.75C394.59,-209.47 317.59,-189.8 266.09,-176.64"/>
|
|
<polygon points="266.71,-173.19 256.15,-174.1 264.97,-179.97 266.71,-173.19"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A28] bprop_u2:Y</title>
|
|
<ellipse cx="486.69" cy="-306" rx="58.73" ry="18"/>
|
|
<text text-anchor="middle" x="486.69" y="-303.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A28] bprop_u2:Y</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A28] bprop_u2:Y->[A29] bprop_u2:A</title>
|
|
<path d="M480.81,-288.05C479.99,-280.35 479.75,-271.03 480.08,-262.36"/>
|
|
<polygon points="483.58,-262.49 480.78,-252.28 476.6,-262.01 483.58,-262.49"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A28] bprop_u2:Y->[A29] bprop_u2:A</title>
|
|
<path d="M492.57,-288.05C493.39,-280.35 493.63,-271.03 493.29,-262.36"/>
|
|
<polygon points="496.78,-262.01 492.6,-252.28 489.79,-262.49 496.78,-262.01"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A27] bprop_u3:A</title>
|
|
<ellipse cx="481.69" cy="-378" rx="59.41" ry="18"/>
|
|
<text text-anchor="middle" x="481.69" y="-375.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A27] bprop_u3:A</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A27] bprop_u3:A->[A28] bprop_u2:Y</title>
|
|
<path d="M482.92,-359.7C483.48,-351.98 484.14,-342.71 484.75,-334.11"/>
|
|
<polygon points="488.25,-334.33 485.47,-324.1 481.26,-333.83 488.25,-334.33"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A26] bprop_u3:Y</title>
|
|
<ellipse cx="481.69" cy="-450" rx="58.73" ry="18"/>
|
|
<text text-anchor="middle" x="481.69" y="-447.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A26] bprop_u3:Y</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A26] bprop_u3:Y->[A27] bprop_u3:A</title>
|
|
<path d="M475.81,-432.05C474.99,-424.35 474.75,-415.03 475.08,-406.36"/>
|
|
<polygon points="478.58,-406.49 475.78,-396.28 471.6,-406.01 478.58,-406.49"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A26] bprop_u3:Y->[A27] bprop_u3:A</title>
|
|
<path d="M487.57,-432.05C488.39,-424.35 488.63,-415.03 488.29,-406.36"/>
|
|
<polygon points="491.78,-406.01 487.6,-396.28 484.79,-406.49 491.78,-406.01"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A25] bprop_out</title>
|
|
<ellipse cx="470.69" cy="-522" rx="55.85" ry="18"/>
|
|
<text text-anchor="middle" x="470.69" y="-519.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A25] bprop_out</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A25] bprop_out->[A26] bprop_u3:Y</title>
|
|
<path d="M473.41,-503.7C474.62,-495.98 476.08,-486.71 477.43,-478.11"/>
|
|
<polygon points="480.91,-478.53 479,-468.1 473.99,-477.44 480.91,-478.53"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A24] bprop_inp2</title>
|
|
<ellipse cx="330.69" cy="-18" rx="58.73" ry="18"/>
|
|
<text text-anchor="middle" x="330.69" y="-15.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A24] bprop_inp2</text>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A23] bprop_u1:B</title>
|
|
<ellipse cx="330.69" cy="-90" rx="59.41" ry="18"/>
|
|
<text text-anchor="middle" x="330.69" y="-87.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A23] bprop_u1:B</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A23] bprop_u1:B->[A24] bprop_inp2</title>
|
|
<path d="M330.69,-71.7C330.69,-63.98 330.69,-54.71 330.69,-46.11"/>
|
|
<polygon points="334.19,-46.1 330.69,-36.1 327.19,-46.1 334.19,-46.1"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A22] bprop_inp1</title>
|
|
<ellipse cx="467.69" cy="-18" rx="58.73" ry="18"/>
|
|
<text text-anchor="middle" x="467.69" y="-15.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A22] bprop_inp1</text>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A21] bprop_u1:A</title>
|
|
<ellipse cx="467.69" cy="-90" rx="59.41" ry="18"/>
|
|
<text text-anchor="middle" x="467.69" y="-87.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A21] bprop_u1:A</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A21] bprop_u1:A->[A22] bprop_inp1</title>
|
|
<path d="M467.69,-71.7C467.69,-63.98 467.69,-54.71 467.69,-46.11"/>
|
|
<polygon points="471.19,-46.1 467.69,-36.1 464.19,-46.1 471.19,-46.1"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A20] bprop_u1:Y</title>
|
|
<ellipse cx="349.69" cy="-162" rx="58.73" ry="18"/>
|
|
<text text-anchor="middle" x="349.69" y="-159.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A20] bprop_u1:Y</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A20] bprop_u1:Y->[A23] bprop_u1:B</title>
|
|
<path d="M339.21,-144.05C336.27,-136.26 333.47,-126.82 331.45,-118.08"/>
|
|
<polygon points="334.88,-117.38 329.47,-108.28 328.01,-118.77 334.88,-117.38"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A20] bprop_u1:Y->[A23] bprop_u1:B</title>
|
|
<path d="M350.91,-143.7C349.6,-135.9 347.27,-126.51 344.55,-117.83"/>
|
|
<polygon points="347.78,-116.43 341.23,-108.1 341.15,-118.7 347.78,-116.43"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A20] bprop_u1:Y->[A21] bprop_u1:A</title>
|
|
<path d="M370.7,-145.12C386.78,-134.88 409.22,-121.49 428.53,-110.6"/>
|
|
<polygon points="430.4,-113.56 437.42,-105.63 426.98,-107.45 430.4,-113.56"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A20] bprop_u1:Y->[A21] bprop_u1:A</title>
|
|
<path d="M379.73,-146.5C397.55,-136.67 419.94,-123.53 437.73,-112.5"/>
|
|
<polygon points="439.96,-115.23 446.57,-106.95 436.24,-109.3 439.96,-115.23"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A19] bprop_u4:A</title>
|
|
<ellipse cx="349.69" cy="-234" rx="59.41" ry="18"/>
|
|
<text text-anchor="middle" x="349.69" y="-231.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A19] bprop_u4:A</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A19] bprop_u4:A->[A20] bprop_u1:Y</title>
|
|
<path d="M349.69,-215.7C349.69,-207.98 349.69,-198.71 349.69,-190.11"/>
|
|
<polygon points="353.19,-190.1 349.69,-180.1 346.19,-190.1 353.19,-190.1"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A18] bprop_u4:Y</title>
|
|
<ellipse cx="212.69" cy="-306" rx="58.73" ry="18"/>
|
|
<text text-anchor="middle" x="212.69" y="-303.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A18] bprop_u4:Y</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A18] bprop_u4:Y->[A30] bprop_u4:B</title>
|
|
<path d="M206.81,-288.05C205.99,-280.35 205.75,-271.03 206.08,-262.36"/>
|
|
<polygon points="209.58,-262.49 206.78,-252.28 202.6,-262.01 209.58,-262.49"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A18] bprop_u4:Y->[A30] bprop_u4:B</title>
|
|
<path d="M218.57,-288.05C219.39,-280.35 219.63,-271.03 219.29,-262.36"/>
|
|
<polygon points="222.78,-262.01 218.6,-252.28 215.79,-262.49 222.78,-262.01"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A18] bprop_u4:Y->[A19] bprop_u4:A</title>
|
|
<path d="M237.37,-289.46C256.9,-278.84 284.44,-264.72 307.42,-253.51"/>
|
|
<polygon points="309.14,-256.57 316.63,-249.07 306.1,-250.27 309.14,-256.57"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A18] bprop_u4:Y->[A19] bprop_u4:A</title>
|
|
<path d="M245.61,-291C267.07,-280.74 294.86,-266.65 316.39,-255.17"/>
|
|
<polygon points="318.05,-258.25 325.19,-250.43 314.73,-252.09 318.05,-258.25"/>
|
|
</g>
|
|
<g class="m-node">
|
|
<title>[A17] bprop_f1:D</title>
|
|
<ellipse cx="139.69" cy="-378" rx="58.06" ry="18"/>
|
|
<text text-anchor="middle" x="139.69" y="-375.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="white">[A17] bprop_f1:D</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A17] bprop_f1:D->[A32] bprop_f1:CLK</title>
|
|
<path d="M134.7,-360C129.92,-321.48 129.59,-224.62 136.69,-144 137.43,-135.53 138.67,-126.35 140.35,-118.05"/>
|
|
<polygon points="143.81,-118.66 142.73,-108.12 137,-117.03 143.81,-118.66"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A17] bprop_f1:D->[A32] bprop_f1:CLK</title>
|
|
<path d="M144.11,-360C147.92,-321.48 147.59,-224.62 154.69,-144 155.43,-135.62 156.64,-126.55 157.51,-118.32"/>
|
|
<polygon points="161.01,-118.38 158.37,-108.12 154.04,-117.79 161.01,-118.38"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A17] bprop_f1:D->[A18] bprop_u4:Y</title>
|
|
<path d="M156.62,-360.76C166.04,-351.73 177.93,-340.33 188.34,-330.35"/>
|
|
<polygon points="190.8,-332.84 195.6,-323.39 185.96,-327.78 190.8,-332.84"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A16] fprop_f1:D</title>
|
|
<ellipse cx="277.69" cy="-738" rx="57.2" ry="18"/>
|
|
<text text-anchor="middle" x="277.69" y="-735.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A16] fprop_f1:D</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A16] fprop_f1:D->[A17] bprop_f1:D</title>
|
|
<path d="M258.18,-720.87C231.17,-696.6 185.69,-647.87 185.69,-595 185.69,-595 185.69,-595 185.69,-521 185.69,-478.81 167.08,-432.85 153.54,-404.98"/>
|
|
<polygon points="156.61,-403.29 149,-395.91 150.35,-406.42 156.61,-403.29"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A15] fprop_u4:Y</title>
|
|
<ellipse cx="249.69" cy="-810" rx="57.88" ry="18"/>
|
|
<text text-anchor="middle" x="249.69" y="-807.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A15] fprop_u4:Y</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A15] fprop_u4:Y->[A16] fprop_f1:D</title>
|
|
<path d="M256.47,-792.05C259.62,-784.18 263.44,-774.62 266.97,-765.79"/>
|
|
<polygon points="270.31,-766.86 270.78,-756.28 263.82,-764.26 270.31,-766.86"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A14] fprop_u4:A</title>
|
|
<ellipse cx="123.69" cy="-882" rx="57.88" ry="18"/>
|
|
<text text-anchor="middle" x="123.69" y="-879.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A14] fprop_u4:A</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A14] fprop_u4:A->[A15] fprop_u4:Y</title>
|
|
<path d="M146.23,-865.29C163.84,-854.83 188.58,-841.02 209.51,-829.95"/>
|
|
<polygon points="211.28,-832.97 218.52,-825.23 208.04,-826.77 211.28,-832.97"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A14] fprop_u4:A->[A15] fprop_u4:Y</title>
|
|
<path d="M155.06,-866.67C174.39,-856.65 198.97,-843.12 218.29,-831.91"/>
|
|
<polygon points="220.18,-834.86 227.04,-826.78 216.64,-828.82 220.18,-834.86"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A13] fprop_u1:Y</title>
|
|
<ellipse cx="123.69" cy="-954" rx="57.88" ry="18"/>
|
|
<text text-anchor="middle" x="123.69" y="-951.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A13] fprop_u1:Y</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A13] fprop_u1:Y->[A14] fprop_u4:A</title>
|
|
<path d="M123.69,-935.7C123.69,-927.98 123.69,-918.71 123.69,-910.11"/>
|
|
<polygon points="127.19,-910.1 123.69,-900.1 120.19,-910.1 127.19,-910.1"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A12] fprop_u1:A</title>
|
|
<ellipse cx="57.69" cy="-1026" rx="57.88" ry="18"/>
|
|
<text text-anchor="middle" x="57.69" y="-1023.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A12] fprop_u1:A</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A12] fprop_u1:A->[A13] fprop_u1:Y</title>
|
|
<path d="M67.79,-1008.05C75.34,-999.03 85.77,-987.79 95.63,-977.99"/>
|
|
<polygon points="98.27,-980.3 103.01,-970.83 93.4,-975.28 98.27,-980.3"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A12] fprop_u1:A->[A13] fprop_u1:Y</title>
|
|
<path d="M78.43,-1009.12C87.72,-1000.33 98.43,-989.23 107.18,-979.37"/>
|
|
<polygon points="109.83,-981.65 113.71,-971.8 104.53,-977.08 109.83,-981.65"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A11] fprop_inp1</title>
|
|
<ellipse cx="57.69" cy="-1098" rx="57.88" ry="18"/>
|
|
<text text-anchor="middle" x="57.69" y="-1095.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A11] fprop_inp1</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A11] fprop_inp1->[A12] fprop_u1:A</title>
|
|
<path d="M57.69,-1079.7C57.69,-1071.98 57.69,-1062.71 57.69,-1054.11"/>
|
|
<polygon points="61.19,-1054.1 57.69,-1044.1 54.19,-1054.1 61.19,-1054.1"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A10] fprop_u1:B</title>
|
|
<ellipse cx="190.69" cy="-1026" rx="57.88" ry="18"/>
|
|
<text text-anchor="middle" x="190.69" y="-1023.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A10] fprop_u1:B</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A10] fprop_u1:B->[A13] fprop_u1:Y</title>
|
|
<path d="M169.72,-1009.12C160.3,-1000.33 149.44,-989.23 140.55,-979.37"/>
|
|
<polygon points="143.13,-977.01 133.9,-971.8 137.87,-981.62 143.13,-977.01"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A10] fprop_u1:B->[A13] fprop_u1:Y</title>
|
|
<path d="M180.35,-1008.05C172.67,-999.03 162.08,-987.79 152.07,-977.99"/>
|
|
<polygon points="154.24,-975.21 144.59,-970.83 149.4,-980.27 154.24,-975.21"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A9] fprop_inp2</title>
|
|
<ellipse cx="190.69" cy="-1098" rx="54.31" ry="18"/>
|
|
<text text-anchor="middle" x="190.69" y="-1095.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A9] fprop_inp2</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A9] fprop_inp2->[A10] fprop_u1:B</title>
|
|
<path d="M190.69,-1079.7C190.69,-1071.98 190.69,-1062.71 190.69,-1054.11"/>
|
|
<polygon points="194.19,-1054.1 190.69,-1044.1 187.19,-1054.1 194.19,-1054.1"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A8] fprop_out</title>
|
|
<ellipse cx="464.69" cy="-594" rx="50.75" ry="18"/>
|
|
<text text-anchor="middle" x="464.69" y="-591.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A8] fprop_out</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A8] fprop_out->[A25] bprop_out</title>
|
|
<path d="M466.17,-575.7C466.83,-567.98 467.63,-558.71 468.37,-550.11"/>
|
|
<polygon points="471.86,-550.37 469.22,-540.1 464.88,-549.77 471.86,-550.37"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A7] fprop_u3:Y</title>
|
|
<ellipse cx="460.69" cy="-666" rx="54.31" ry="18"/>
|
|
<text text-anchor="middle" x="460.69" y="-663.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A7] fprop_u3:Y</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A7] fprop_u3:Y->[A8] fprop_out</title>
|
|
<path d="M461.68,-647.7C462.12,-639.98 462.65,-630.71 463.14,-622.11"/>
|
|
<polygon points="466.64,-622.29 463.71,-612.1 459.65,-621.89 466.64,-622.29"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A6] fprop_u3:A</title>
|
|
<ellipse cx="460.69" cy="-738" rx="54.31" ry="18"/>
|
|
<text text-anchor="middle" x="460.69" y="-735.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A6] fprop_u3:A</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A6] fprop_u3:A->[A7] fprop_u3:Y</title>
|
|
<path d="M454.81,-720.05C453.99,-712.35 453.75,-703.03 454.08,-694.36"/>
|
|
<polygon points="457.58,-694.49 454.78,-684.28 450.6,-694.01 457.58,-694.49"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A6] fprop_u3:A->[A7] fprop_u3:Y</title>
|
|
<path d="M466.57,-720.05C467.39,-712.35 467.63,-703.03 467.29,-694.36"/>
|
|
<polygon points="470.78,-694.01 466.6,-684.28 463.79,-694.49 470.78,-694.01"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A5] fprop_u2:Y</title>
|
|
<ellipse cx="452.69" cy="-810" rx="54.31" ry="18"/>
|
|
<text text-anchor="middle" x="452.69" y="-807.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A5] fprop_u2:Y</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A5] fprop_u2:Y->[A6] fprop_u3:A</title>
|
|
<path d="M454.67,-791.7C455.55,-783.98 456.61,-774.71 457.59,-766.11"/>
|
|
<polygon points="461.08,-766.44 458.73,-756.1 454.12,-765.64 461.08,-766.44"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A4] fprop_u2:A</title>
|
|
<ellipse cx="452.69" cy="-882" rx="54.31" ry="18"/>
|
|
<text text-anchor="middle" x="452.69" y="-879.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A4] fprop_u2:A</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A4] fprop_u2:A->[A5] fprop_u2:Y</title>
|
|
<path d="M446.81,-864.05C445.99,-856.35 445.75,-847.03 446.08,-838.36"/>
|
|
<polygon points="449.58,-838.49 446.78,-828.28 442.6,-838.01 449.58,-838.49"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A4] fprop_u2:A->[A5] fprop_u2:Y</title>
|
|
<path d="M458.57,-864.05C459.39,-856.35 459.63,-847.03 459.29,-838.36"/>
|
|
<polygon points="462.78,-838.01 458.6,-828.28 455.79,-838.49 462.78,-838.01"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A3] fprop_u4:B</title>
|
|
<ellipse cx="253.69" cy="-882" rx="54.31" ry="18"/>
|
|
<text text-anchor="middle" x="253.69" y="-879.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A3] fprop_u4:B</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A3] fprop_u4:B->[A15] fprop_u4:Y</title>
|
|
<path d="M246.84,-864.05C245.58,-856.35 244.81,-847.03 244.65,-838.36"/>
|
|
<polygon points="248.15,-838.31 244.76,-828.28 241.15,-838.23 248.15,-838.31"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A3] fprop_u4:B->[A15] fprop_u4:Y</title>
|
|
<path d="M258.6,-864.05C258.98,-856.35 258.69,-847.03 257.86,-838.36"/>
|
|
<polygon points="261.31,-837.76 256.59,-828.28 254.36,-838.63 261.31,-837.76"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A2] fprop_f1:Q</title>
|
|
<ellipse cx="435.69" cy="-954" rx="53.64" ry="18"/>
|
|
<text text-anchor="middle" x="435.69" y="-951.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A2] fprop_f1:Q</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A2] fprop_f1:Q->[A4] fprop_u2:A</title>
|
|
<path d="M439.89,-935.7C441.79,-927.9 444.07,-918.51 446.17,-909.83"/>
|
|
<polygon points="449.58,-910.65 448.54,-900.1 442.77,-909 449.58,-910.65"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A2] fprop_f1:Q->[A3] fprop_u4:B</title>
|
|
<path d="M401.88,-940C372.35,-928.64 329.3,-912.08 297.21,-899.74"/>
|
|
<polygon points="298.21,-896.37 287.62,-896.05 295.7,-902.91 298.21,-896.37"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A1] fprop_f1:CLK</title>
|
|
<ellipse cx="390.69" cy="-1026" rx="60.09" ry="18"/>
|
|
<text text-anchor="middle" x="390.69" y="-1023.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A1] fprop_f1:CLK</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A1] fprop_f1:CLK->[A16] fprop_f1:D</title>
|
|
<path d="M377.14,-1008.33C372.32,-997.91 367.66,-984.2 363.69,-972 337.77,-892.33 345.48,-866.77 307.69,-792 302.87,-782.47 296.37,-772.82 290.49,-764.43"/>
|
|
<polygon points="293.31,-762.35 284.7,-756.18 287.58,-766.38 293.31,-762.35"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A1] fprop_f1:CLK->[A16] fprop_f1:D</title>
|
|
<path d="M392.56,-1007.85C390.18,-997.49 385.6,-984.01 381.69,-972 355.77,-892.33 363.48,-866.77 325.69,-792 320.48,-781.7 313.31,-771.27 305.98,-762.42"/>
|
|
<polygon points="308.49,-759.98 299.25,-754.79 303.24,-764.6 308.49,-759.98"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A1] fprop_f1:CLK->[A2] fprop_f1:Q</title>
|
|
<path d="M395.7,-1008.05C400.29,-999.5 406.86,-988.97 413.43,-979.56"/>
|
|
<polygon points="416.37,-981.46 419.4,-971.31 410.7,-977.36 416.37,-981.46"/>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A1] fprop_f1:CLK->[A2] fprop_f1:Q</title>
|
|
<path d="M407.19,-1008.41C413.4,-1000.16 420.16,-990.01 425.66,-980.78"/>
|
|
<polygon points="428.77,-982.38 430.67,-971.96 422.68,-978.92 428.77,-982.38"/>
|
|
</g>
|
|
<g class="m-node m-flat">
|
|
<title>[A0] fprop_tau2015_clk</title>
|
|
<ellipse cx="390.69" cy="-1098" rx="76.55" ry="18"/>
|
|
<text text-anchor="middle" x="390.69" y="-1095.5" font-family="Helvetica,sans-Serif" font-size="10.00">[A0] fprop_tau2015_clk</text>
|
|
</g>
|
|
<g class="m-edge">
|
|
<title>[A0] fprop_tau2015_clk->[A1] fprop_f1:CLK</title>
|
|
<path d="M390.69,-1079.7C390.69,-1071.98 390.69,-1062.71 390.69,-1054.11"/>
|
|
<polygon points="394.19,-1054.1 390.69,-1044.1 387.19,-1054.1 394.19,-1054.1"/>
|
|
</g>
|
|
</g>
|
|
</svg>
|
|
</div></section><section id="UseCaseOpenTimerPerformanceImprovement"><h2><a href="#UseCaseOpenTimerPerformanceImprovement">Performance Improvement</a></h2><p>We compare the performance between OpenTimer v1 and v2. We evaluated the runtime versus incremental iterations under 16 CPUs on two industrial circuit designs tv80 (5.3K gates and 5.3K nets) and vga_lcd (139.5K gates and 139.6K nets) with 45nm NanGate cell libraris. Each incremental iteration refers a design modification followed by a timing query to trigger a timing update. In v1, this includes the time to reconstruct the data structure required by OpenMP to alter the task dependencies. In v2, this includes the time to create and launch a new task dependency graph</p><img class="m-image" src="opentimer_2.png" alt="Image" /><p>The scalability of Taskflow is shown in the Figure below. We used two million-scale designs, netcard (1.4M gates) and leon3mp (1.2M gates) to evaluate the runtime of v1 and v2 across different number of CPUs. There are two important observations. First, v2 is slightly slower than v1 at one CPU (3-4%), where all OpenMP's constructs are literally disabled. This shows the graph overhead of Taskflow; yet it is negligible. Second, v2 is consistently faster than v1 regardless of CPU numbers except one. This highlights that Taskflow's programming model largely improves the design of a parallel VLSI timing engine that would otherwise not be possible with OpenMP.</p><img class="m-image" src="opentimer_3.png" alt="Image" /></section><section id="UseCaseOpenTimerConclusion"><h2><a href="#UseCaseOpenTimerConclusion">Conclusion</a></h2><p>Programming models matter. Different models give different implementations. The parallel code sections may run fast, yet the data structures to support a parallel decomposition strategy may outweigh its parallelism benefits. In OpenTimer v1, loop-based OpenMP code is very fast. But it's too costly to maintain the pipeline data structure over iterations.</p></section><section id="UseCaseOpenTimerReferences"><h2><a href="#UseCaseOpenTimerReferences">References</a></h2><ul><li>Tsung-Wei Huang, Guannan Guo, Chun-Xun Lin, and Martin Wong, "<a href="https://tsung-wei-huang.github.io/papers/tcad21-ot2.pdf">OpenTimer v2: A New Parallel Incremental Timing Analysis Engine</a>," <em>IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems (TCAD)</em>, vol. 40, no. 4, pp. 776-786, April 2021</li><li>Tsung-Wei Huang, Chun-Xun Lin, Guannan Guo, and Martin Wong, "<a href="ipdps19.pdf">Cpp-Taskflow: Fast Task-based Parallel Programming using Modern C++</a>," <em>IEEE International Parallel and Distributed Processing Symposium (IPDPS)</em>, pp. 974-983, Rio de Janeiro, Brazil, 2019.</li><li>Tsung-Wei Huang and Martin Wong, "<a href="huang_15_01.pdf">OpenTimer: A High-Performance Timing Analysis Tool</a>," <em>IEEE/ACM International Conference on Computer-Aided Design (ICCAD)</em>, pp. 895-902, Austin, TX, 2015.</li></ul></section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</article></main>
|
|
<div class="m-doc-search" id="search">
|
|
<a href="#!" onclick="return hideSearch()"></a>
|
|
<div class="m-container">
|
|
<div class="m-row">
|
|
<div class="m-col-m-8 m-push-m-2">
|
|
<div class="m-doc-search-header m-text m-small">
|
|
<div><span class="m-label m-default">Tab</span> / <span class="m-label m-default">T</span> to search, <span class="m-label m-default">Esc</span> to close</div>
|
|
<div id="search-symbolcount">…</div>
|
|
</div>
|
|
<div class="m-doc-search-content">
|
|
<form>
|
|
<input type="search" name="q" id="search-input" placeholder="Loading …" disabled="disabled" autofocus="autofocus" autocomplete="off" spellcheck="false" />
|
|
</form>
|
|
<noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.</noscript>
|
|
<div id="search-help" class="m-text m-dim m-text-center">
|
|
<p class="m-noindent">Search for symbols, directories, files, pages or
|
|
modules. You can omit any prefix from the symbol or file path; adding a
|
|
<code>:</code> or <code>/</code> suffix lists all members of given symbol or
|
|
directory.</p>
|
|
<p class="m-noindent">Use <span class="m-label m-dim">↓</span>
|
|
/ <span class="m-label m-dim">↑</span> to navigate through the list,
|
|
<span class="m-label m-dim">Enter</span> to go.
|
|
<span class="m-label m-dim">Tab</span> autocompletes common prefix, you can
|
|
copy a link to the result using <span class="m-label m-dim">⌘</span>
|
|
<span class="m-label m-dim">L</span> while <span class="m-label m-dim">⌘</span>
|
|
<span class="m-label m-dim">M</span> produces a Markdown link.</p>
|
|
</div>
|
|
<div id="search-notfound" class="m-text m-warning m-text-center">Sorry, nothing was found.</div>
|
|
<ul id="search-results"></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="search-v2.js"></script>
|
|
<script src="searchdata-v2.js" async="async"></script>
|
|
<footer><nav>
|
|
<div class="m-container">
|
|
<div class="m-row">
|
|
<div class="m-col-l-10 m-push-l-1">
|
|
<p>Taskflow handbook is part of the <a href="https://taskflow.github.io">Taskflow project</a>, copyright © <a href="https://tsung-wei-huang.github.io/">Dr. Tsung-Wei Huang</a>, 2018–2024.<br />Generated by <a href="https://doxygen.org/">Doxygen</a> 1.9.1 and <a href="https://mcss.mosra.cz/">m.css</a>.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav></footer>
|
|
</body>
|
|
</html>
|