3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 01:24:10 +00:00
yosys/tests/fmt/always_comb_tb.cc
Charlotte 4ffdee65e0 cxxrtl: store comb $print cell last EN/ARGS in module
statics were obviously wrong -- may be multiple instantiations of any
given module.  Extend test to cover this.
2023-08-11 04:46:52 +02:00

18 lines
243 B
C++

#include <iostream>
#include "yosys-always_comb.cc"
int main()
{
cxxrtl_design::p_top uut1, uut2;
for (int i = 0; i < 20; ++i) {
uut1.p_clk.set(!uut1.p_clk);
uut1.step();
uut2.p_clk.set(!uut2.p_clk);
uut2.step();
}
return 0;
}