Skip to content

Commit

Permalink
Deploying to docs from @ b8ee7c4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorbel1 committed Sep 25, 2023
1 parent 00dfdf2 commit 32fbf18
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rohd_vf/LogicWaiter/waitCycles.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ <h1><span class="kind-method">waitCycles</span> method
<p>Returns a <a href="https://api.dart.dev/stable/3.1.2/dart-async/Future-class.html">Future</a> which completes after the specified <code>numCycles</code>,
where each cycle is defined as the next occurence of the specified <code>edge</code>.</p>
<p><a href="https://pub.dev/documentation/rohd/0.4.2/rohd/Logic/width.html">width</a> must be 1 or an <a href="https://api.dart.dev/stable/3.1.2/dart-core/Exception-class.html">Exception</a> will be thrown.</p>
<p>Like <a href="https://pub.dev/documentation/rohd/0.4.2/rohd/Logic/nextNegedge.html">nextNegedge</a> and <a href="https://pub.dev/documentation/rohd/0.4.2/rohd/Logic/nextPosedge.html">nextPosedge</a>, this will only detect valid edge
transitions. If the value is invalid (<code>x</code> or <code>z</code>) before or after the
transition, it will not count as a cycle.</p>
</section>


Expand All @@ -96,7 +99,10 @@ <h2><span>Implementation</span></h2>
await nextNegedge;
break;
case Edge.any:
await nextChanged;
await Future.any([
nextPosedge,
nextNegedge,
]);
break;
}
}
Expand Down

0 comments on commit 32fbf18

Please sign in to comment.