3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-09 12:50:33 +00:00

tests: test cxxrtl against iverilog (and uncover bug!)

This commit is contained in:
Charlotte 2023-06-28 11:51:18 +10:00 committed by Marcelina Kościelnicka
parent 095b093f4a
commit b0f69f2cd5
5 changed files with 276 additions and 1 deletions

View file

@ -0,0 +1,15 @@
#include <iostream>
#include "yosys-always_full.cc"
int main()
{
cxxrtl_design::p_always__full uut;
while (true) {
uut.p_clk.set(!uut.p_clk);
uut.step();
if (uut.p_fin.get<bool>())
return 0;
}
}