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

Module : i2c
SCORELINECONDTOGGLEFSMBRANCHASSERT
98.48 100.00 100.00 93.91 100.00

Source File(s) :
/workspaces/repo/scratch/os_regression_2024_08_24/i2c-sim-vcs/default/sim-vcs/../src/lowrisc_ip_i2c_0.1/rtl/i2c.sv

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut 98.48 100.00 100.00 93.91 100.00



Module Instance : tb.dut

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
98.48 100.00 100.00 93.91 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
91.44 97.21 89.46 97.22 72.02 94.26 98.44


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
tb


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
gen_alert_tx[0].u_prim_alert_sender 100.00 100.00
i2c_core 87.65 96.20 83.75 72.02 91.56 94.69
i2c_csr_assert 93.75 93.75
tlul_assert_device 100.00 100.00 100.00 100.00
u_reg 98.67 98.59 97.16 100.00 97.58 100.00


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : i2c
Line No.TotalCoveredPercent
TOTAL33100.00
CONT_ASSIGN6911100.00
CONT_ASSIGN13211100.00
CONT_ASSIGN13311100.00

68 69 1/1 assign alert_test = { Tests: T1 T2 T3  70 reg2hw.alert_test.q & 71 reg2hw.alert_test.qe 72 }; 73 74 for (genvar i = 0; i < NumAlerts; i++) begin : gen_alert_tx 75 prim_alert_sender #( 76 .AsyncOn(AlertAsyncOn[i]), 77 .IsFatal(1'b1) 78 ) u_prim_alert_sender ( 79 .clk_i, 80 .rst_ni, 81 .alert_test_i ( alert_test[i] ), 82 .alert_req_i ( alerts[0] ), 83 .alert_ack_o ( ), 84 .alert_state_o ( ), 85 .alert_rx_i ( alert_rx_i[i] ), 86 .alert_tx_o ( alert_tx_o[i] ) 87 ); 88 end 89 90 logic scl_int; 91 logic sda_int; 92 93 i2c_core #( 94 .InputDelayCycles(InputDelayCycles) 95 ) i2c_core ( 96 .clk_i, 97 .rst_ni, 98 .ram_cfg_i, 99 100 .reg2hw, 101 .hw2reg, 102 103 .scl_i(cio_scl_i), 104 .scl_o(scl_int), 105 .sda_i(cio_sda_i), 106 .sda_o(sda_int), 107 108 .intr_fmt_threshold_o, 109 .intr_rx_threshold_o, 110 .intr_acq_threshold_o, 111 .intr_rx_overflow_o, 112 .intr_controller_halt_o, 113 .intr_scl_interference_o, 114 .intr_sda_interference_o, 115 .intr_stretch_timeout_o, 116 .intr_sda_unstable_o, 117 .intr_cmd_complete_o, 118 .intr_tx_stretch_o, 119 .intr_tx_threshold_o, 120 .intr_acq_stretch_o, 121 .intr_unexp_stop_o, 122 .intr_host_timeout_o 123 ); 124 125 // For I2C, in standard, fast and fast-plus modes, outputs simulated as open-drain outputs. 126 // Asserting scl or sda high should be equivalent to a tri-state output. 127 // The output, when enabled, should only assert low. 128 129 assign cio_scl_o = 1'b0; 130 assign cio_sda_o = 1'b0; 131 132 1/1 assign cio_scl_en_o = ~scl_int; Tests: T1 T2 T3  133 1/1 assign cio_sda_en_o = ~sda_int; Tests: T1 T2 T3 

Cond Coverage for Module : i2c
TotalCoveredPercent
Conditions33100.00
Logical33100.00
Non-Logical00
Event00

 LINE       69
 SUB-EXPRESSION (reg2hw.alert_test.q & reg2hw.alert_test.qe)
                 ---------1---------   ----------2---------
-1--2-StatusTests
01CoveredT100,T101,T102
10CoveredT1,T2,T3
11CoveredT100,T101,T201

Toggle Coverage for Module : i2c
TotalCoveredPercent
Totals 51 45 88.24
Total Bits 394 370 93.91
Total Bits 0->1 197 185 93.91
Total Bits 1->0 197 185 93.91

Ports 51 45 88.24
Port Bits 394 370 93.91
Port Bits 0->1 197 185 93.91
Port Bits 1->0 197 185 93.91

Port Details
NameToggleToggle 1->0TestsToggle 0->1TestsDirection
clk_i Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
rst_ni Yes Yes T3,T10,T75 Yes T1,T2,T3 INPUT
ram_cfg_i.rf_cfg.cfg[3:0] No No No INPUT
ram_cfg_i.rf_cfg.cfg_en No No No INPUT
ram_cfg_i.rf_cfg.test No No No INPUT
ram_cfg_i.ram_cfg.cfg[3:0] No No No INPUT
ram_cfg_i.ram_cfg.cfg_en No No No INPUT
ram_cfg_i.ram_cfg.test No No No INPUT
tl_i.d_ready Yes Yes T3,T4,T5 Yes T1,T2,T3 INPUT
tl_i.a_user.data_intg[6:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_user.cmd_intg[6:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_user.instr_type[3:0] Yes Yes T1,T7,T45 Yes T1,T7,T45 INPUT
tl_i.a_user.rsvd[4:0] Unreachable Unreachable Unreachable INPUT
tl_i.a_data[31:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_mask[3:0] Yes Yes T1,T2,T3 Yes T1,T3,T4 INPUT
tl_i.a_address[31:0] Yes Yes T1,T3,T4 Yes T1,T2,T3 INPUT
tl_i.a_source[7:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_size[1:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_param[2:0] Unreachable Unreachable Unreachable INPUT
tl_i.a_opcode[2:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_i.a_valid Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
tl_o.a_ready Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_error Yes Yes T107,T108,T202 Yes T107,T108,T202 OUTPUT
tl_o.d_user.data_intg[6:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_user.rsp_intg[5:0] Yes Yes *T1,*T2,*T3 Yes T1,T2,T3 OUTPUT
tl_o.d_user.rsp_intg[6] Unreachable Unreachable Unreachable OUTPUT
tl_o.d_data[31:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_sink Unreachable Unreachable Unreachable OUTPUT
tl_o.d_source[7:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_size[1:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
tl_o.d_param[2:0] Unreachable Unreachable Unreachable OUTPUT
tl_o.d_opcode[0] Yes Yes *T1,*T2,*T3 Yes T1,T2,T3 OUTPUT
tl_o.d_opcode[2:1] Unreachable Unreachable Unreachable OUTPUT
tl_o.d_valid Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_rx_i[0].ack_n Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
alert_rx_i[0].ack_p Yes Yes T75,T100,T101 Yes T75,T100,T101 INPUT
alert_rx_i[0].ping_n Unreachable Unreachable Unreachable INPUT
alert_rx_i[0].ping_p Unreachable Unreachable Unreachable INPUT
alert_tx_o[0].alert_n Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
alert_tx_o[0].alert_p Yes Yes T75,T100,T101 Yes T75,T100,T101 OUTPUT
cio_scl_i Yes Yes T1,T2,T3 Yes T1,T3,T4 INPUT
cio_scl_o Unreachable Unreachable Unreachable OUTPUT
cio_scl_en_o Yes Yes T1,T3,T4 Yes T1,T2,T3 OUTPUT
cio_sda_i Yes Yes T1,T2,T3 Yes T1,T3,T4 INPUT
cio_sda_o Unreachable Unreachable Unreachable OUTPUT
cio_sda_en_o Yes Yes T1,T3,T4 Yes T1,T2,T3 OUTPUT
intr_fmt_threshold_o Yes Yes T3,T10,T58 Yes T3,T4,T5 OUTPUT
intr_rx_threshold_o Yes Yes T11,T203,T83 Yes T11,T203,T83 OUTPUT
intr_acq_threshold_o Yes Yes T45,T70,T49 Yes T45,T70,T49 OUTPUT
intr_rx_overflow_o Yes Yes T104,T105,T106 Yes T104,T105,T106 OUTPUT
intr_controller_halt_o Yes Yes T3,T18,T12 Yes T3,T18,T12 OUTPUT
intr_scl_interference_o Yes Yes T3,T18,T21 Yes T3,T18,T21 OUTPUT
intr_sda_interference_o Yes Yes T3,T18,T21 Yes T3,T18,T21 OUTPUT
intr_stretch_timeout_o Yes Yes T3,T10,T11 Yes T3,T10,T11 OUTPUT
intr_sda_unstable_o Yes Yes T3,T21,T23 Yes T3,T21,T23 OUTPUT
intr_cmd_complete_o Yes Yes T3,T4,T5 Yes T3,T4,T5 OUTPUT
intr_tx_stretch_o Yes Yes T4,T6,T7 Yes T4,T6,T7 OUTPUT
intr_tx_threshold_o Yes Yes T3,T5,T8 Yes T3,T4,T5 OUTPUT
intr_acq_stretch_o Yes Yes T4,T7,T9 Yes T4,T7,T9 OUTPUT
intr_unexp_stop_o Yes Yes T49,T50,T134 Yes T49,T50,T134 OUTPUT
intr_host_timeout_o Yes Yes T74,T76,T77 Yes T74,T76,T77 OUTPUT

*Tests covering at least one bit in the range

Assert Coverage for Module : i2c
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 23 23 100.00 23 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 23 23 100.00 23 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
AlertKnownO_A 439097793 438925761 0 0
CioSclEnKnownO_A 439097793 438925761 0 0
CioSclKnownO_A 439097793 438925761 0 0
CioSdaEnKnownO_A 439097793 438925761 0 0
CioSdaKnownO_A 439097793 438925761 0 0
FpvSecCmRegWeOnehotCheck_A 439097793 70 0 0
IntrAcqStretchKnownO_A 439097793 438925761 0 0
IntrAcqWtmkKnownO_A 439097793 438925761 0 0
IntrCommandCompleteKnownO_A 439097793 438925761 0 0
IntrControllerHaltKnownO_A 439097793 438925761 0 0
IntrFmtWtmkKnownO_A 439097793 438925761 0 0
IntrHostTimeoutKnownO_A 439097793 438925761 0 0
IntrRxOflwKnownO_A 439097793 438925761 0 0
IntrRxWtmkKnownO_A 439097793 438925761 0 0
IntrSclInterfKnownO_A 439097793 438925761 0 0
IntrSdaInterfKnownO_A 439097793 438925761 0 0
IntrSdaUnstableKnownO_A 439097793 438925761 0 0
IntrStretchTimeoutKnownO_A 439097793 438925761 0 0
IntrTxStretchKnownO_A 439097793 438925761 0 0
IntrTxWtmkKnownO_A 439097793 438925761 0 0
IntrUnexpStopKnownO_A 439097793 438925761 0 0
TlAReadyKnownO_A 439097793 438925761 0 0
TlDValidKnownO_A 439097793 438925761 0 0


AlertKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

CioSclEnKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

CioSclKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

CioSdaEnKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

CioSdaKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

FpvSecCmRegWeOnehotCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 70 0 0
T19 36176 0 0 0
T25 60272 0 0 0
T36 10071 0 0 0
T58 12965 0 0 0
T61 48363 0 0 0
T69 65505 0 0 0
T72 49282 0 0 0
T75 2837 10 0 0
T82 1879 0 0 0
T100 1300 0 0 0
T204 0 20 0 0
T205 0 10 0 0
T206 0 10 0 0
T207 0 20 0 0

IntrAcqStretchKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrAcqWtmkKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrCommandCompleteKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrControllerHaltKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrFmtWtmkKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrHostTimeoutKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrRxOflwKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrRxWtmkKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrSclInterfKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrSdaInterfKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrSdaUnstableKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrStretchTimeoutKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrTxStretchKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrTxWtmkKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

IntrUnexpStopKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

TlAReadyKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

TlDValidKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 439097793 438925761 0 0
T1 2248 2197 0 0
T2 10398 10317 0 0
T3 14453 13693 0 0
T4 10979 10900 0 0
T5 59436 59355 0 0
T6 45098 45020 0 0
T7 14681 14589 0 0
T8 13626 13553 0 0
T9 17568 17509 0 0
T10 6201 6057 0 0

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