Module Definition
dashboard | hierarchy | modlist | groups | tests | asserts

Module : timer_core
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00

Source File(s) :
/workspaces/repo/scratch/os_regression_2024_08_28/rv_timer-sim-vcs/default/sim-vcs/../src/lowrisc_ip_rv_timer_0.1/rtl/timer_core.sv

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.gen_harts[0].u_core 100.00 100.00 100.00 100.00



Module Instance : tb.dut.gen_harts[0].u_core

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
95.83 100.00 83.33 100.00 100.00 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
no children


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : timer_core
Line No.TotalCoveredPercent
TOTAL1010100.00
ALWAYS2877100.00
CONT_ASSIGN3911100.00
CONT_ASSIGN4111100.00
CONT_ASSIGN4511100.00

27 always_ff @(posedge clk_i or negedge rst_ni) begin : generate_tick 28 1/1 if (!rst_ni) begin Tests: T1 T2 T3  29 1/1 tick_count <= 12'h0; Tests: T1 T2 T3  30 1/1 end else if (!active) begin Tests: T1 T2 T3  31 1/1 tick_count <= 12'h0; Tests: T1 T2 T3  32 1/1 end else if (tick_count == prescaler) begin Tests: T1 T2 T8  33 1/1 tick_count <= 12'h0; Tests: T2 T8 T9  34 end else begin 35 1/1 tick_count <= tick_count + 1'b1; Tests: T1 T2 T8  36 end 37 end 38 39 1/1 assign tick = active & (tick_count >= prescaler); Tests: T1 T2 T3  40 41 1/1 assign mtime_d = mtime + 64'(step); Tests: T1 T2 T3  42 43 // interrupt is generated if mtime is greater than or equal to mtimecmp 44 for (genvar t = 0 ; t < N ; t++) begin : gen_intr 45 1/1 assign intr[t] = active & (mtime >= mtimecmp[t]); Tests: T1 T2 T3 

Cond Coverage for Module : timer_core
TotalCoveredPercent
Conditions88100.00
Logical88100.00
Non-Logical00
Event00

 LINE       32
 EXPRESSION (tick_count == prescaler)
            ------------1------------
-1-StatusTests
0CoveredT1,T2,T8
1CoveredT2,T8,T9

 LINE       39
 EXPRESSION (active & (tick_count >= prescaler))
             ---1--   ------------2------------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T8
11CoveredT2,T8,T9

 LINE       45
 EXPRESSION (active & (mtime >= mtimecmp[0]))
             ---1--   -----------2----------
-1--2-StatusTests
01CoveredT2,T8,T10
10CoveredT1,T2,T8
11CoveredT10,T14,T15

Branch Coverage for Module : timer_core
Line No.TotalCoveredPercent
Branches 4 4 100.00
IF 28 4 4 100.00


28 if (!rst_ni) begin -1- 29 tick_count <= 12'h0; ==> 30 end else if (!active) begin -2- 31 tick_count <= 12'h0; ==> 32 end else if (tick_count == prescaler) begin -3- 33 tick_count <= 12'h0; ==> 34 end else begin 35 tick_count <= tick_count + 1'b1; ==>

Branches:
-1--2--3-StatusTests
1 - - Covered T1,T2,T3
0 1 - Covered T1,T2,T3
0 0 1 Covered T2,T8,T9
0 0 0 Covered T1,T2,T8

0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%