9 cxxrtl_design::p_add top
;
14 for(int cycle
=0;cycle
<1000;++cycle
){
16 top
.p_clk
.set
<bool>(false);
18 top
.p_clk
.set
<bool>(true);
21 // check that the output is correct
23 top.p_a.set<uint8_t>(5);
24 top.p_b.set<uint8_t>(3);
25 uint32_t f = top.p_f.get<uint32_t>();
27 cout << "f " << f << endl;