From: Luke Kenneth Casson Leighton Date: Thu, 8 Apr 2021 12:17:30 +0000 (+0100) Subject: check the output is correct X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7be141297a292a66d57a0382fcfe61906b4e92c3;p=soc-cxxrtl-sim.git check the output is correct --- diff --git a/small_jtag_test/main.cpp b/small_jtag_test/main.cpp index ef1e523..3ffa6a3 100644 --- a/small_jtag_test/main.cpp +++ b/small_jtag_test/main.cpp @@ -18,15 +18,14 @@ int main() top.p_clk.set(true); top.step(); -/* - bool cur_led = top.p_led.get(); - uint32_t counter = top.p_counter.get(); - - if (cur_led != prev_led){ - cout << "cycle " << cycle << " - led: " << cur_led << ", counter: " << counter << endl; - } - prev_led = cur_led; -*/ + // check that the output is correct + /* + top.p_a.set(5); + top.p_b.set(3); + uint32_t f = top.p_f.get(); + + cout << "f " << f << endl; + */ } }