diff options
author | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2020-02-03 22:43:48 +0300 |
---|---|---|
committer | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2020-02-03 22:43:48 +0300 |
commit | f2598e0ec96852ced07cff5a6baa91b0ff1dc00f (patch) | |
tree | 1cc1aed57c637851d218742eb84897ddf4d58a0d /rtl/modexpng_io_manager_debug.vh | |
parent | 58ad4d95d6de1f62bb3664e3782d8f6ae9c691f0 (diff) |
Improved debugging options:
* flush console after each ladder iteration for smoother progress output
* ability to truncate internal powering ladder loop at desired step (this will
only work when using simulation mode, obviously)
Diffstat (limited to 'rtl/modexpng_io_manager_debug.vh')
-rw-r--r-- | rtl/modexpng_io_manager_debug.vh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rtl/modexpng_io_manager_debug.vh b/rtl/modexpng_io_manager_debug.vh index e94ec67..3d50cc6 100644 --- a/rtl/modexpng_io_manager_debug.vh +++ b/rtl/modexpng_io_manager_debug.vh @@ -36,6 +36,8 @@ always @(posedge clk) if (opcode_is_ladder_init) begin $display("[step] | D | P | Q"); $display("-------+---+---+---"); + $fflush; end else if (opcode_is_ladder_step) $display("[%4d] | %d | %d | %d", ladder_index, ladder_d_r, ladder_p_r, ladder_q_r); + $fflush; end |