mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 12:11:24 +00:00
cxxrtl: WIP: adjust comb display cells to only fire on change
Naming and use of statics to be possibly revised.
This commit is contained in:
parent
7f7c61c9f0
commit
843ad9331b
8 changed files with 95 additions and 16 deletions
14
tests/fmt/always_comb_tb.cc
Normal file
14
tests/fmt/always_comb_tb.cc
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <iostream>
|
||||
#include "yosys-always_comb.cc"
|
||||
|
||||
int main()
|
||||
{
|
||||
cxxrtl_design::p_top uut;
|
||||
|
||||
for (int i = 0; i < 20; ++i) {
|
||||
uut.p_clk.set(!uut.p_clk);
|
||||
uut.step();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue