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

Module : spi_device
SCORELINECONDTOGGLEFSMBRANCHASSERT
91.61 93.86 84.31 96.94 87.50 95.45

Source File(s) :
/workspace/default/sim-vcs/../src/lowrisc_ip_spi_device_0.1/rtl/spi_device.sv

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut 91.61 93.86 84.31 96.94 87.50 95.45



Module Instance : tb.dut

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
91.61 93.86 84.31 96.94 87.50 95.45


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
95.58 98.35 94.20 98.61 89.36 97.14 95.81


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
tb


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
gen_alert_tx[0].u_prim_alert_sender 100.00 100.00
spi_device_csr_assert 100.00 100.00
tlul_assert_device 100.00 100.00 100.00 100.00
u_clk_csb_buf 100.00 100.00
u_clk_csb_mux 64.81 100.00 44.44 50.00
u_clk_spi 85.19 100.00 55.56 100.00
u_clk_spi_in_buf 100.00 100.00
u_clk_spi_in_mux 64.81 100.00 44.44 50.00
u_clk_spi_out_buf 100.00 100.00
u_clk_spi_out_mux 64.81 100.00 44.44 50.00
u_cmdparse 96.74 100.00 87.80 100.00 95.92 100.00
u_csb_buf 100.00 100.00
u_csb_rst_scan_mux 64.81 100.00 44.44 50.00
u_flash_readbuf_flip_pulse_sync 100.00 100.00 100.00 100.00 100.00
u_flash_readbuf_watermark_pulse_sync 100.00 100.00 100.00 100.00 100.00
u_intr_cmdfifo_not_empty 100.00 100.00 100.00 100.00 100.00
u_intr_payload_not_empty 100.00 100.00 100.00 100.00 100.00
u_intr_payload_overflow 100.00 100.00 100.00 100.00 100.00
u_intr_readbuf_flip 100.00 100.00 100.00 100.00 100.00
u_intr_readbuf_watermark 100.00 100.00 100.00 100.00 100.00
u_intr_tpm_cmdaddr_notempty 100.00 100.00 100.00 100.00 100.00
u_intr_tpm_rdfifo_cmd_end 100.00 100.00 100.00 100.00 100.00
u_intr_tpm_rdfifo_drop 97.92 100.00 91.67 100.00 100.00
u_intr_upload_edge 100.00 100.00 100.00
u_jedec 99.38 100.00 100.00 100.00 96.88 100.00
u_p2s 84.73 100.00 71.43 67.50 100.00
u_passthrough 89.62 92.20 89.22 75.00 91.67 100.00
u_read_en_pipe_stg1 100.00 100.00 100.00
u_read_en_pipe_stg2 100.00 100.00 100.00
u_read_intercept_pipe_stg1 100.00 100.00 100.00
u_read_intercept_pipe_stg2 100.00 100.00 100.00
u_read_pipe_stg1 100.00 100.00 100.00
u_read_pipe_stg2 100.00 100.00 100.00
u_readcmd 89.30 93.62 90.32 87.50 84.15 90.91
u_reg 99.64 99.53 99.33 100.00 99.35 100.00
u_s2p 86.75 100.00 78.57 68.42 100.00
u_scanmode_sync 100.00 100.00
u_spi_tpm 92.74 99.28 85.25 91.67 95.32 92.16
u_spid_addr_4b 86.34 97.59 77.78 95.00 75.00
u_spid_csb_sync 96.97 100.00 100.00 90.91
u_spid_dpram 95.45 100.00 81.82 100.00 100.00
u_spid_status 99.11 100.00 97.83 98.63 100.00
u_sys_csb_syncd 100.00 100.00 100.00
u_sys_sram_arbiter 89.65 100.00 76.47 96.43 85.71
u_sys_tpm_csb_sync 100.00 100.00 100.00
u_tlul2sram_egress 71.25 81.97 59.04 63.33 80.65
u_tlul2sram_ingress 86.59 88.11 73.80 84.44 100.00
u_tpm_csb_buf 100.00 100.00
u_tpm_csb_rst_scan_mux 64.81 100.00 44.44 50.00
u_tpm_csb_rst_sync 70.83 88.89 44.44 100.00 50.00
u_upload 90.79 98.60 71.95 100.00 94.12 89.29


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : spi_device
Line No.TotalCoveredPercent
TOTAL22821493.86
CONT_ASSIGN17311100.00
CONT_ASSIGN30811100.00
CONT_ASSIGN37111100.00
CONT_ASSIGN37211100.00
CONT_ASSIGN37511100.00
CONT_ASSIGN37611100.00
CONT_ASSIGN37811100.00
CONT_ASSIGN39311100.00
CONT_ASSIGN52611100.00
CONT_ASSIGN53311100.00
CONT_ASSIGN53511100.00
ALWAYS53844100.00
CONT_ASSIGN54611100.00
CONT_ASSIGN55211100.00
CONT_ASSIGN55311100.00
CONT_ASSIGN55811100.00
CONT_ASSIGN55911100.00
CONT_ASSIGN56311100.00
ALWAYS56800
ALWAYS56822100.00
CONT_ASSIGN57311100.00
CONT_ASSIGN57411100.00
ALWAYS58200
ALWAYS5821212100.00
CONT_ASSIGN64611100.00
CONT_ASSIGN64711100.00
CONT_ASSIGN64811100.00
ALWAYS78433100.00
ALWAYS79088100.00
ALWAYS82899100.00
ALWAYS8522424100.00
CONT_ASSIGN92011100.00
CONT_ASSIGN92111100.00
ALWAYS9847457.14
ALWAYS9971313100.00
ALWAYS103433100.00
CONT_ASSIGN117011100.00
CONT_ASSIGN117311100.00
CONT_ASSIGN117711100.00
CONT_ASSIGN117811100.00
CONT_ASSIGN117911100.00
CONT_ASSIGN118111100.00
CONT_ASSIGN118211100.00
CONT_ASSIGN118511100.00
CONT_ASSIGN1231100.00
CONT_ASSIGN1261100.00
CONT_ASSIGN134411100.00
CONT_ASSIGN134511100.00
CONT_ASSIGN134611100.00
CONT_ASSIGN134711100.00
CONT_ASSIGN134811100.00
CONT_ASSIGN135011100.00
CONT_ASSIGN135411100.00
CONT_ASSIGN136111100.00
CONT_ASSIGN136211100.00
CONT_ASSIGN136411100.00
CONT_ASSIGN136811100.00
CONT_ASSIGN137111100.00
CONT_ASSIGN137411100.00
CONT_ASSIGN137711100.00
CONT_ASSIGN138011100.00
CONT_ASSIGN138311100.00
CONT_ASSIGN139011100.00
CONT_ASSIGN139111100.00
CONT_ASSIGN143011100.00
CONT_ASSIGN1531100.00
CONT_ASSIGN153911100.00
CONT_ASSIGN154011100.00
CONT_ASSIGN154111100.00
CONT_ASSIGN154211100.00
CONT_ASSIGN154311100.00
CONT_ASSIGN154611100.00
CONT_ASSIGN155311100.00
CONT_ASSIGN156011100.00
CONT_ASSIGN156011100.00
CONT_ASSIGN156011100.00
CONT_ASSIGN156011100.00
CONT_ASSIGN156011100.00
CONT_ASSIGN156311100.00
CONT_ASSIGN156411100.00
CONT_ASSIGN156511100.00
CONT_ASSIGN156611100.00
CONT_ASSIGN156711100.00
CONT_ASSIGN156811100.00
CONT_ASSIGN157011100.00
CONT_ASSIGN157411100.00
CONT_ASSIGN157611100.00
CONT_ASSIGN157711100.00
CONT_ASSIGN158411100.00
CONT_ASSIGN158611100.00
CONT_ASSIGN158711100.00
CONT_ASSIGN159611100.00
CONT_ASSIGN159711100.00
CONT_ASSIGN159811100.00
CONT_ASSIGN159911100.00
CONT_ASSIGN165411100.00
CONT_ASSIGN165611100.00
ALWAYS166144100.00
ALWAYS167000
ALWAYS167099100.00
CONT_ASSIGN168711100.00
CONT_ASSIGN168711100.00
CONT_ASSIGN168711100.00
CONT_ASSIGN168711100.00
CONT_ASSIGN168711100.00
CONT_ASSIGN168811100.00
CONT_ASSIGN168811100.00
CONT_ASSIGN1688100.00
CONT_ASSIGN1688100.00
CONT_ASSIGN1688100.00
CONT_ASSIGN168911100.00
CONT_ASSIGN168911100.00
CONT_ASSIGN1689100.00
CONT_ASSIGN1689100.00
CONT_ASSIGN168911100.00
CONT_ASSIGN169011100.00
CONT_ASSIGN169011100.00
CONT_ASSIGN1690100.00
CONT_ASSIGN1690100.00
CONT_ASSIGN1690100.00
CONT_ASSIGN169211100.00
CONT_ASSIGN169211100.00
CONT_ASSIGN169211100.00
CONT_ASSIGN169211100.00
CONT_ASSIGN169211100.00
CONT_ASSIGN169311100.00
CONT_ASSIGN169311100.00
CONT_ASSIGN169311100.00
CONT_ASSIGN169311100.00
CONT_ASSIGN169311100.00
CONT_ASSIGN169411100.00
CONT_ASSIGN169411100.00
CONT_ASSIGN169411100.00
CONT_ASSIGN169411100.00
CONT_ASSIGN169411100.00
CONT_ASSIGN173511100.00
CONT_ASSIGN173711100.00
CONT_ASSIGN173811100.00
CONT_ASSIGN173911100.00
CONT_ASSIGN174011100.00
CONT_ASSIGN174111100.00
CONT_ASSIGN174311100.00
CONT_ASSIGN174411100.00
CONT_ASSIGN174511100.00
CONT_ASSIGN180111100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_spi_device_0.1/rtl/spi_device.sv' or '../src/lowrisc_ip_spi_device_0.1/rtl/spi_device.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
173 1 1
308 1 1
371 1 1
372 1 1
375 1 1
376 1 1
378 1 1
393 1 1
526 1 1
533 1 1
535 1 1
538 1 1
539 1 1
540 1 1
541 1 1
MISSING_ELSE
546 1 1
552 1 1
553 1 1
558 1 1
559 1 1
563 1 1
568 1 1
569 1 1
573 1 1
574 1 1
582 1 1
583 1 1
602 1 1
603 1 1
607 1 1
608 1 1
610 1 1
611 1 1
613 1 1
614 1 1
616 1 1
617 1 1
646 1 1
647 1 1
648 1 1
784 2 2
785 1 1
790 1 1
792 1 1
793 1 1
800 1 1
804 1 1
805 1 1
809 1 1
810 1 1
828 1 1
830 1 1
835 1 1
841 1 1
842 1 1
843 1 1
844 1 1
845 1 1
846 1 1
MISSING_ELSE
852 1 1
853 1 1
854 1 1
855 1 1
857 1 1
859 1 1
861 1 1
863 1 1
867 1 1
869 1 1
870 1 1
871 1 1
874 1 1
876 1 1
877 1 1
878 1 1
883 1 1
885 1 1
886 1 1
887 1 1
891 1 1
893 1 1
894 1 1
895 1 1
920 1 1
921 1 1
984 1 1
985 0 1
986 0 1
987 0 1
989 1 1
990 1 1
991 1 1
997 1 1
998 1 1
1000 1 1
1002 1 1
1003 1 1
1007 1 1
1009 1 1
1010 1 1
1014 1 1
1015 1 1
1016 1 1
1018 1 1
1019 1 1
1034 2 2
1035 1 1
1170 1 1
1173 1 1
1177 1 1
1178 1 1
1179 1 1
1181 1 1
1182 1 1
1185 1 1
1231 0 1
1261 0 1
1344 1 1
1345 1 1
1346 1 1
1347 1 1
1348 1 1
1350 1 1
1354 1 1
1361 1 1
1362 1 1
1364 1 1
1368 1 1
1371 1 1
1374 1 1
1377 1 1
1380 1 1
1383 1 1
1390 1 1
1391 1 1
1430 1 1
1531 0 1
1539 1 1
1540 1 1
1541 1 1
1542 1 1
1543 1 1
1546 1 1
1553 1 1
1560 5 5
1563 1 1
1564 1 1
1565 1 1
1566 1 1
1567 1 1
1568 1 1
1570 1 1
1574 1 1
1576 1 1
1577 1 1
1584 1 1
1586 1 1
1587 1 1
1596 1 1
1597 1 1
1598 1 1
1599 1 1
1654 1 1
1656 1 1
1661 1 1
1662 1 1
1663 1 1
1664 1 1
MISSING_ELSE
1670 1 1
1671 1 1
1673 1 1
1676 1 1
1677 1 1
1678 1 1
1679 1 1
1681 1 1
1682 1 1
1687 5 5
1688 2 5
1689 3 5
1690 2 5
1692 5 5
1693 5 5
1694 5 5
1735 1 1
1737 1 1
1738 1 1
1739 1 1
1740 1 1
1741 1 1
1743 1 1
1744 1 1
1745 1 1
1801 1 1


Cond Coverage for Module : spi_device
TotalCoveredPercent
Conditions514384.31
Logical514384.31
Non-Logical00
Event00

 LINE       173
 EXPRESSION (payload_depth != '0)
            ----------1----------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T24,T32

 LINE       701
 EXPRESSION (rst_ni & ((~rst_csb_buf)))
             ---1--   --------2-------
-1--2-StatusTests
01Not Covered
10CoveredT1,T2,T3
11CoveredT1,T3,T6

 LINE       712
 EXPRESSION (rst_ni & ((~rst_tpm_csb_buf)))
             ---1--   ----------2---------
-1--2-StatusTests
01Not Covered
10CoveredT1,T2,T3
11CoveredT2,T3,T7

 LINE       814
 EXPRESSION (cmd_only_dp_sel == DpUpload)
            --------------1--------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T24,T32

 LINE       841
 EXPRESSION (((!sck_csb)) && ((spi_mode == FlashMode) || (spi_mode == PassThrough)))
             ------1-----    ---------------------------2--------------------------
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT1,T3,T6

 LINE       841
 SUB-EXPRESSION ((spi_mode == FlashMode) || (spi_mode == PassThrough))
                 -----------1-----------    ------------2------------
-1--2-StatusTests
00Not Covered
01CoveredT1,T6,T8
10CoveredT1,T2,T3

 LINE       841
 SUB-EXPRESSION (spi_mode == FlashMode)
                -----------1-----------
-1-StatusTests
0CoveredT1,T6,T8
1CoveredT1,T2,T3

 LINE       841
 SUB-EXPRESSION (spi_mode == PassThrough)
                ------------1------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T6,T8

 LINE       1000
 EXPRESSION (cfg_tpm_en && ((!sck_tpm_csb_buf)))
             -----1----    ----------2---------
-1--2-StatusTests
01CoveredT18,T19,T21
10CoveredT2,T3,T7
11CoveredT2,T3,T7

 LINE       1170
 EXPRESSION (reg2hw.flash_status.busy.qe && reg2hw.flash_status.wel.qe && reg2hw.flash_status.status.qe)
             -------------1-------------    -------------2------------    --------------3--------------
-1--2--3-StatusTests
011Not Covered
101Not Covered
110Not Covered
111CoveredT3,T14,T16

 LINE       1181
 EXPRESSION (cmd_only_dp_sel == DpWrEn)
            -------------1-------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T74,T47

 LINE       1182
 EXPRESSION (cmd_only_dp_sel == DpWrDi)
            -------------1-------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T14,T32

 LINE       1390
 EXPRESSION (cmd_only_dp_sel == DpEn4B)
            -------------1-------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T16,T23

 LINE       1391
 EXPRESSION (cmd_only_dp_sel == DpEx4B)
            -------------1-------------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT3,T13,T16

 LINE       1553
 EXPRESSION (reg2hw.tpm_status.wrfifo_pending.qe & ((~reg2hw.tpm_status.wrfifo_pending.q)))
             -----------------1-----------------   -------------------2-------------------
-1--2-StatusTests
01CoveredT1,T2,T3
10Not Covered
11CoveredT3,T7,T17

 LINE       1663
 EXPRESSION ((i != SysSramFwEgress) && (i != SysSramFwIngress))
             -----------1----------    -----------2-----------
-1--2-StatusTests
01CoveredT1,T2,T3
10CoveredT1,T2,T3
11CoveredT1,T2,T3

 LINE       1663
 SUB-EXPRESSION (i != SysSramFwEgress)
                -----------1----------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       1663
 SUB-EXPRESSION (i != SysSramFwIngress)
                -----------1-----------
-1-StatusTests
0CoveredT1,T2,T3
1CoveredT1,T2,T3

 LINE       1735
 EXPRESSION (tpm_rst_n | rst_spi_n)
             ----1----   ----2----
-1--2-StatusTests
00CoveredT1,T2,T3
01CoveredT1,T3,T6
10CoveredT2,T3,T7

 LINE       1801
 SUB-EXPRESSION (reg2hw.alert_test.q & reg2hw.alert_test.qe)
                 ---------1---------   ----------2---------
-1--2-StatusTests
01CoveredT5,T75,T76
10CoveredT1,T2,T3
11CoveredT5,T75,T76

Toggle Coverage for Module : spi_device
TotalCoveredPercent
Totals 59 54 91.53
Total Bits 458 444 96.94
Total Bits 0->1 229 222 96.94
Total Bits 1->0 229 222 96.94

Ports 59 54 91.53
Port Bits 458 444 96.94
Port Bits 0->1 229 222 96.94
Port Bits 1->0 229 222 96.94

Port Details
NameToggleToggle 1->0TestsToggle 0->1TestsDirection
clk_i Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
rst_ni Yes Yes T18,T77,T78 Yes T1,T2,T3 INPUT
tl_i.d_ready Yes Yes T1,T3,T4 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,T2,T3 Yes T1,T2,T3 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,T2,T3 INPUT
tl_i.a_address[31:0] Yes Yes T1,T2,T3 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 T4,T9,T28 Yes T4,T9,T28 OUTPUT
tl_o.d_user.data_intg[6:0] Yes Yes T3,T7,T17 Yes T3,T7,T17 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,T3,T4 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 T5,T75,T76 Yes T5,T75,T76 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 T5,T75,T76 Yes T5,T75,T76 OUTPUT
cio_sck_i Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
cio_csb_i Yes Yes T1,T3,T6 Yes T1,T3,T6 INPUT
cio_sd_o[3:0] Yes Yes T1,T3,T6 Yes T1,T3,T6 OUTPUT
cio_sd_en_o[3:0] Yes Yes T1,T3,T6 Yes T1,T3,T6 OUTPUT
cio_sd_i[3:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
cio_tpm_csb_i Yes Yes T2,T3,T7 Yes T2,T3,T7 INPUT
passthrough_o.s_en[0] Yes Yes *T1,*T6,*T8 Yes T1,T6,T8 OUTPUT
passthrough_o.s_en[3:1] No No No OUTPUT
passthrough_o.s[3:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
passthrough_o.csb_en No No No OUTPUT
passthrough_o.csb Yes Yes T1,T3,T6 Yes T1,T3,T6 OUTPUT
passthrough_o.sck_en No No No OUTPUT
passthrough_o.sck Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
passthrough_o.passthrough_en Yes Yes T24,T32,T35 Yes T1,T6,T8 OUTPUT
passthrough_i.s[3:0] Yes Yes T1,T2,T3 Yes T1,T2,T3 INPUT
intr_upload_cmdfifo_not_empty_o Yes Yes T18,T77,T78 Yes T18,T77,T78 OUTPUT
intr_upload_payload_not_empty_o Yes Yes T18,T77,T78 Yes T18,T77,T78 OUTPUT
intr_upload_payload_overflow_o Yes Yes T18,T77,T78 Yes T18,T77,T78 OUTPUT
intr_readbuf_watermark_o Yes Yes T18,T77,T78 Yes T18,T77,T78 OUTPUT
intr_readbuf_flip_o Yes Yes T18,T77,T78 Yes T18,T77,T78 OUTPUT
intr_tpm_header_not_empty_o Yes Yes T18,T77,T78 Yes T18,T77,T78 OUTPUT
intr_tpm_rdfifo_cmd_end_o Yes Yes T18,T77,T78 Yes T18,T77,T78 OUTPUT
intr_tpm_rdfifo_drop_o Yes Yes T18,T77,T78 Yes T18,T77,T78 OUTPUT
ram_cfg_i.b_ram_lcfg.cfg[3:0] Yes Yes T79 Yes T79 INPUT
ram_cfg_i.b_ram_lcfg.cfg_en Yes Yes T79 Yes T79 INPUT
ram_cfg_i.a_ram_lcfg.cfg[3:0] Yes Yes T79 Yes T79 INPUT
ram_cfg_i.a_ram_lcfg.cfg_en Yes Yes T79 Yes T79 INPUT
ram_cfg_i.b_ram_fcfg.cfg[3:0] Yes Yes T79 Yes T79 INPUT
ram_cfg_i.b_ram_fcfg.cfg_en Yes Yes T79 Yes T79 INPUT
ram_cfg_i.a_ram_fcfg.cfg[3:0] Yes Yes T79 Yes T79 INPUT
ram_cfg_i.a_ram_fcfg.cfg_en Yes Yes T79 Yes T79 INPUT
sck_monitor_o Yes Yes T1,T2,T3 Yes T1,T2,T3 OUTPUT
mbist_en_i Unreachable Unreachable Unreachable INPUT
scan_clk_i No No No INPUT
scan_rst_ni No No No INPUT
scanmode_i[3:0] Unreachable Unreachable Unreachable INPUT

*Tests covering at least one bit in the range

Branch Coverage for Module : spi_device
Line No.TotalCoveredPercent
Branches 32 28 87.50
IF 538 3 3 100.00
IF 784 2 2 100.00
CASE 800 4 4 100.00
IF 841 3 3 100.00
CASE 857 7 5 71.43
IF 984 2 1 50.00
IF 1000 5 4 80.00
IF 1034 2 2 100.00
IF 1663 2 2 100.00
IF 1673 2 2 100.00

WARNING: The source file /workspace/default/sim-vcs/../src/lowrisc_ip_spi_device_0.1/rtl/spi_device.sv' or '../src/lowrisc_ip_spi_device_0.1/rtl/spi_device.sv was not found/opened, so annotated branch coverage report could not be generated.

LineNo. Expression -1-: 538 if ((!rst_ni)) -2-: 540 if (sys_csb_deasserted_pulse)

Branches:
-1--2-StatusTests
1 - Covered T1,T2,T3
0 1 Covered T1,T3,T6
0 0 Covered T1,T2,T3


LineNo. Expression -1-: 784 if ((!rst_spi_n))

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Covered T1,T3,T6


LineNo. Expression -1-: 800 case (cmd_dp_sel) -2-: 814 if ((cmd_only_dp_sel == DpUpload))

Branches:
-1--2-StatusTests
DpReadCmd DpReadSFDP - Covered T1,T3,T6
DpUpload - Covered T3,T24,T32
default 1 Covered T3,T24,T32
default 0 Covered T1,T2,T3


LineNo. Expression -1-: 841 if (((!sck_csb) && ((spi_mode == FlashMode) || (spi_mode == PassThrough)))) -2-: 844 if (cfg_tpm_en)

Branches:
-1--2-StatusTests
1 - Covered T1,T3,T6
0 1 Covered T2,T3,T7
0 0 Covered T1,T2,T3


LineNo. Expression -1-: 857 case (spi_mode) -2-: 859 case (cmd_dp_sel)

Branches:
-1--2-StatusTests
FlashMode PassThrough DpNone Covered T1,T2,T3
FlashMode PassThrough DpReadCmd DpReadSFDP Covered T1,T3,T6
FlashMode PassThrough DpReadStatus Covered T3,T12,T23
FlashMode PassThrough DpReadJEDEC Covered T3,T47,T35
FlashMode PassThrough DpUpload Covered T3,T24,T32
FlashMode PassThrough default Not Covered
default - Not Covered


LineNo. Expression -1-: 984 if (cmd_read_pipeline_sel)

Branches:
-1-StatusTests
1 Not Covered
0 Covered T1,T2,T3


LineNo. Expression -1-: 1000 if ((cfg_tpm_en && (!sck_tpm_csb_buf))) -2-: 1007 case (spi_mode) -3-: 1014 if (intercept_en_out)

Branches:
-1--2--3-StatusTests
1 - - Covered T2,T3,T7
0 FlashMode - Covered T1,T2,T3
0 PassThrough 1 Covered T12,T23,T24
0 PassThrough 0 Covered T1,T6,T8
0 default - Not Covered


LineNo. Expression -1-: 1034 if ((!rst_spi_n))

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Covered T1,T3,T6


LineNo. Expression -1-: 1663 if (((i != SysSramFwEgress) && (i != SysSramFwIngress)))

Branches:
-1-StatusTests
1 Covered T1,T2,T3
0 Covered T1,T2,T3


LineNo. Expression -1-: 1673 if (sys_sram_hw_req)

Branches:
-1-StatusTests
1 Covered T3,T7,T17
0 Covered T1,T2,T3


Assert Coverage for Module : spi_device
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 22 22 100.00 21 95.45
Cover properties 0 0 0
Cover sequences 0 0 0
Total 22 22 100.00 21 95.45




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
AlertKnownO_A 429730063 429645282 0 0
CioSdoEnOKnown 429730063 429645282 0 0
CioSdoEnOffWhenInactive 429730063 429645282 0 0
FpvSecCmRegWeOnehotCheck_A 429730063 100 0 0
InterceptLevel_M 128992430 0 0 0
IntrReadbufFlipOKnown 429730063 429645282 0 0
IntrReadbufWatermarkOKnown 429730063 429645282 0 0
IntrTpmHeaderNotEmptyOKnown 429730063 429645282 0 0
IntrTpmRdfifoCmdEndOKnown 429730063 429645282 0 0
IntrTpmRdfifoDropOKnown 429730063 429645282 0 0
IntrUploadCmdfifoNotEmptyOKnown 429730063 429645282 0 0
IntrUploadPayloadNotEmptyOKnown 429730063 429645282 0 0
IntrUploadPayloadOverflowOKnown 429730063 429645282 0 0
PayloadStartIdxWidthMatch_A 926 926 0 0
SpiModeKnown_A 429730063 429645282 0 0
TpmEnableWhenTpmCsbIdle_M 429730063 343 0 0
g_sram_connect[0].ReqAlwaysAccepted_A 429730063 1592976 0 0
g_sram_connect[1].ReqAlwaysAccepted_A 429730063 154681 0 0
g_sram_connect[2].ReqAlwaysAccepted_A 429730063 1737 0 0
g_sram_connect[3].ReqAlwaysAccepted_A 429730063 1256 0 0
g_sram_connect[4].ReqAlwaysAccepted_A 429730063 196317 0 0
scanmodeKnown 429730063 429730063 0 0


AlertKnownO_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

CioSdoEnOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

CioSdoEnOffWhenInactive
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

FpvSecCmRegWeOnehotCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 100 0 0
T34 373795 0 0 0
T40 535140 0 0 0
T80 5746 20 0 0
T81 0 20 0 0
T82 0 10 0 0
T83 0 20 0 0
T84 0 30 0 0
T85 3589 0 0 0
T86 2755 0 0 0
T87 169609 0 0 0
T88 1555 0 0 0
T89 1127 0 0 0
T90 143294 0 0 0
T91 1229 0 0 0

InterceptLevel_M
NameAttemptsReal SuccessesFailuresIncomplete
Total 128992430 0 0 0

IntrReadbufFlipOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

IntrReadbufWatermarkOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

IntrTpmHeaderNotEmptyOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

IntrTpmRdfifoCmdEndOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

IntrTpmRdfifoDropOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

IntrUploadCmdfifoNotEmptyOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

IntrUploadPayloadNotEmptyOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

IntrUploadPayloadOverflowOKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

PayloadStartIdxWidthMatch_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 926 926 0 0
T1 1 1 0 0
T2 1 1 0 0
T3 1 1 0 0
T4 1 1 0 0
T5 1 1 0 0
T6 1 1 0 0
T7 1 1 0 0
T8 1 1 0 0
T9 1 1 0 0
T10 1 1 0 0

SpiModeKnown_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429645282 0 0
T1 281162 281101 0 0
T2 11981 11890 0 0
T3 139763 139754 0 0
T4 3407 3309 0 0
T5 948 866 0 0
T6 15883 15829 0 0
T7 121950 121876 0 0
T8 26656 26561 0 0
T9 1606 1521 0 0
T10 222579 222512 0 0

TpmEnableWhenTpmCsbIdle_M
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 343 0 0
T2 11981 1 0 0
T3 139763 1 0 0
T4 3407 0 0 0
T5 948 0 0 0
T6 15883 0 0 0
T7 121950 1 0 0
T8 26656 0 0 0
T9 1606 0 0 0
T10 222579 1 0 0
T13 228469 0 0 0
T17 0 1 0 0
T20 0 1 0 0
T22 0 1 0 0
T29 0 1 0 0
T30 0 1 0 0
T31 0 1 0 0

g_sram_connect[0].ReqAlwaysAccepted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 1592976 0 0
T1 281162 832 0 0
T2 11981 0 0 0
T3 139763 8320 0 0
T4 3407 100 0 0
T5 948 0 0 0
T6 15883 832 0 0
T7 121950 0 0 0
T8 26656 832 0 0
T9 1606 100 0 0
T10 222579 0 0 0
T11 0 832 0 0
T13 0 832 0 0
T14 0 832 0 0
T28 0 100 0 0

g_sram_connect[1].ReqAlwaysAccepted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 154681 0 0
T3 139763 765 0 0
T4 3407 100 0 0
T5 948 0 0 0
T6 15883 0 0 0
T7 121950 601 0 0
T8 26656 0 0 0
T9 1606 100 0 0
T10 222579 0 0 0
T13 228469 0 0 0
T17 558862 572 0 0
T24 0 2 0 0
T28 0 100 0 0
T29 0 64 0 0
T30 0 109 0 0
T31 0 8 0 0

g_sram_connect[2].ReqAlwaysAccepted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 1737 0 0
T3 139763 20 0 0
T4 3407 0 0 0
T5 948 0 0 0
T6 15883 0 0 0
T7 121950 0 0 0
T8 26656 0 0 0
T9 1606 0 0 0
T10 222579 0 0 0
T13 228469 0 0 0
T17 558862 0 0 0
T24 0 2 0 0
T32 0 2 0 0
T35 0 22 0 0
T37 0 3 0 0
T47 0 6 0 0
T50 0 6 0 0
T59 0 3 0 0
T60 0 9 0 0
T73 0 1 0 0

g_sram_connect[3].ReqAlwaysAccepted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 1256 0 0
T3 139763 12 0 0
T4 3407 0 0 0
T5 948 0 0 0
T6 15883 0 0 0
T7 121950 0 0 0
T8 26656 0 0 0
T9 1606 0 0 0
T10 222579 0 0 0
T13 228469 0 0 0
T17 558862 0 0 0
T32 0 1 0 0
T33 0 13 0 0
T35 0 17 0 0
T37 0 3 0 0
T47 0 6 0 0
T50 0 6 0 0
T59 0 3 0 0
T60 0 6 0 0
T73 0 1 0 0

g_sram_connect[4].ReqAlwaysAccepted_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 196317 0 0
T3 139763 639 0 0
T4 3407 0 0 0
T5 948 0 0 0
T6 15883 0 0 0
T7 121950 1072 0 0
T8 26656 0 0 0
T9 1606 0 0 0
T10 222579 0 0 0
T13 228469 0 0 0
T17 558862 957 0 0
T29 0 125 0 0
T30 0 173 0 0
T31 0 19 0 0
T32 0 1953 0 0
T35 0 852 0 0
T47 0 475 0 0
T49 0 1552 0 0

scanmodeKnown
NameAttemptsReal SuccessesFailuresIncomplete
Total 429730063 429730063 0 0
T1 281162 281162 0 0
T2 11981 11981 0 0
T3 139763 139763 0 0
T4 3407 3407 0 0
T5 948 948 0 0
T6 15883 15883 0 0
T7 121950 121950 0 0
T8 26656 26656 0 0
T9 1606 1606 0 0
T10 222579 222579 0 0

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