From 7be141297a292a66d57a0382fcfe61906b4e92c3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 8 Apr 2021 13:17:30 +0100 Subject: [PATCH] check the output is correct --- small_jtag_test/main.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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; + */ } } -- 2.30.2