aboutsummaryrefslogtreecommitdiff
path: root/src/tb
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-05-21 10:25:29 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-05-21 10:25:29 +0200
commit3e8d9c71f4d15be7f1aac3bba94a0964e122f255 (patch)
tree78527bc781dfb8c492974d8f315435116eb88629 /src/tb
parentb4c31416f033e03f0d4baf006163c5e7bb033294 (diff)
Added internal cycle counter. Added API addresses to extract cycle counter value. Moved reset of start reg to beginning of FSM.
Diffstat (limited to 'src/tb')
-rw-r--r--src/tb/tb_modexp.v3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tb/tb_modexp.v b/src/tb/tb_modexp.v
index 6f9ea19..4b3029e 100644
--- a/src/tb/tb_modexp.v
+++ b/src/tb/tb_modexp.v
@@ -204,7 +204,8 @@ module tb_modexp();
#(CLK_PERIOD);
if (DISPLAY_TEST_CYCLES)
- $display("*** Number of cycles performed during test: 0x%016x", test_cycle_ctr);
+ $display("*** Number of cycles performed during test: 0x%016x",
+ {dut.cycle_ctr_high_reg, dut.cycle_ctr_low_reg});
end
endtask // stop_test_cycle_ctr()