ef1e52323f895fad56bf1134830f44d976fed9c9
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);
22 bool cur_led = top.p_led.get<bool>();
23 uint32_t counter = top.p_counter.get<uint32_t>();
25 if (cur_led != prev_led){
26 cout << "cycle " << cycle << " - led: " << cur_led << ", counter: " << counter << endl;