<p><span class="h-card" translate="no"><a href="https://mastodon.social/@tef" class="u-url mention">@<span>tef</span></a></span> realized this problem is exactly identical to writing a HDL simulator (i implemented both of these strategies in cxxrtl... ish)</p>