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:
parent
095b093f4a
commit
b0f69f2cd5
5 changed files with 276 additions and 1 deletions
15
tests/fmt/always_full_tb.cc
Normal file
15
tests/fmt/always_full_tb.cc
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue