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

Module : spi_readcmd
SCORELINECONDTOGGLEFSMBRANCHASSERT
0.00 0.00 0.00 0.00 0.00

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

Module self-instances :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
tb.dut.u_readcmd 0.00 0.00 0.00 0.00 0.00



Module Instance : tb.dut.u_readcmd

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
0.00 0.00 0.00 0.00 0.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
0.00 0.00 0.00 0.00 0.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
19.21 0.00 0.00 76.82 0.00 dut


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
u_addr_latch_pulse 0.00 0.00 0.00 0.00
u_readbuffer 0.00 0.00 0.00 0.00
u_readsram 0.00 0.00 0.00 0.00 0.00


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : spi_readcmd
Line No.TotalCoveredPercent
TOTAL13600.00
CONT_ASSIGN179100.00
CONT_ASSIGN182100.00
CONT_ASSIGN185100.00
CONT_ASSIGN188100.00
CONT_ASSIGN328100.00
CONT_ASSIGN335100.00
ALWAYS348400.00
ALWAYS364400.00
CONT_ASSIGN373100.00
ALWAYS3761200.00
CONT_ASSIGN399100.00
CONT_ASSIGN400100.00
CONT_ASSIGN403100.00
CONT_ASSIGN419100.00
ALWAYS422300.00
ALWAYS430700.00
ALWAYS451600.00
CONT_ASSIGN460100.00
ALWAYS4641200.00
CONT_ASSIGN491100.00
CONT_ASSIGN492100.00
CONT_ASSIGN495100.00
CONT_ASSIGN496100.00
ALWAYS508800.00
CONT_ASSIGN524100.00
ALWAYS529500.00
ALWAYS547400.00
CONT_ASSIGN560100.00
ALWAYS570300.00
ALWAYS5784800.00
CONT_ASSIGN715100.00
CONT_ASSIGN716100.00
WARNING: The source file '/workspace/default/sim-vcs/../src/lowrisc_ip_spi_device_0.1/rtl/spi_readcmd.sv' or '../src/lowrisc_ip_spi_device_0.1/rtl/spi_readcmd.sv' was not found, so annotated line coverage report could not be generated.
Line No.CoveredStatements
179 0 1
182 0 1
185 0 1
188 0 1
328 0 1
335 0 1
348 0 1
349 0 1
350 0 1
351 0 1
==> MISSING_ELSE
364 0 1
365 0 1
366 0 1
369 0 1
==> MISSING_ELSE
373 0 1
376 0 1
377 0 1
379 0 1
381 0 1
382 0 1
385 0 1
386 0 1
388 0 1
389 0 1
390 0 1
392 0 1
393 0 1
==> MISSING_ELSE
399 0 1
400 0 1
403 0 1
419 0 1
422 0 1
423 0 1
425 0 1
430 0 1
431 0 1
438 0 1
440 0 1
441 0 1
442 0 1
444 0 1
==> MISSING_ELSE
451 0 1
452 0 1
453 0 1
455 0 1
456 0 1
457 0 1
==> MISSING_ELSE
460 0 1
464 0 1
465 0 1
466 0 1
467 0 1
468 0 1
469 0 1
470 0 1
473 0 1
474 0 1
475 0 1
476 0 1
477 0 1
==> MISSING_ELSE
491 0 1
492 0 1
495 0 1
496 0 1
508 0 2
509 0 1
511 0 1
512 0 1
515 0 1
516 0 1
518 0 1
==> MISSING_ELSE
524 0 1
529 0 1
530 0 1
531 0 1
533 0 1
534 0 1
547 0 1
548 0 1
549 0 1
555 0 1
==> MISSING_ELSE
560 0 1
570 0 1
571 0 1
573 0 1
578 0 1
580 0 1
583 0 1
584 0 1
585 0 1
586 0 1
588 0 1
589 0 1
591 0 1
592 0 1
594 0 1
596 0 1
597 0 1
599 0 1
601 0 1
604 0 1
606 0 1
==> MISSING_ELSE
611 0 1
613 0 1
614 0 1
==> MISSING_ELSE
617 0 1
620 0 1
626 0 1
629 0 1
630 0 1
631 0 1
636 0 1
638 0 1
643 0 1
==> MISSING_ELSE
654 0 1
655 0 1
657 0 1
==> MISSING_ELSE
662 0 1
663 0 1
664 0 1
665 0 1
==> MISSING_ELSE
670 0 1
674 0 1
679 0 1
680 0 1
681 0 1
682 0 1
686 0 1
688 0 1
691 0 1
694 0 1
695 0 1
==> MISSING_ELSE
700 0 1
715 0 1
716 0 1


Cond Coverage for Module : spi_readcmd
TotalCoveredPercent
Conditions6600.00
Logical6600.00
Non-Logical00
Event00

 LINE       328
 EXPRESSION (sel_dp_i == DpReadSFDP)
            ------------1-----------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       335
 EXPRESSION (spi_mode_i == FlashMode)
            ------------1------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       366
 EXPRESSION ((main_st == MainOutput) && (sel_dp_i == DpReadCmd) && addr_latch_en && ( ! (mailbox_en_i && addr_q_in_mailbox) ) && spid_in_flashmode)
             -----------1-----------    -----------2-----------    ------3------    --------------------4--------------------    --------5--------
-1--2--3--4--5-StatusTests
01111Not Covered
10111Not Covered
11011Not Covered
11101Not Covered
11110Not Covered
11111Not Covered

 LINE       366
 SUB-EXPRESSION (main_st == MainOutput)
                -----------1-----------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       366
 SUB-EXPRESSION (sel_dp_i == DpReadCmd)
                -----------1-----------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       366
 SUB-EXPRESSION ( ! (mailbox_en_i && addr_q_in_mailbox) )
                    -----------------1-----------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       366
 SUB-EXPRESSION (mailbox_en_i && addr_q_in_mailbox)
                 ------1-----    --------2--------
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

 LINE       386
 EXPRESSION (addr_shift_en && s2p_valid_i)
             ------1------    -----2-----
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

 LINE       399
 EXPRESSION (addr_cnt_d == 5'd2)
            ----------1---------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       400
 EXPRESSION (addr_cnt_d == 5'b1)
            ----------1---------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       403
 EXPRESSION (addr_cnt_d == 5'b0)
            ----------1---------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       438
 EXPRESSION ((cmdinfo_addr_mode == Addr4B) ? 5'd31 : 5'd23)
             --------------1--------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       438
 SUB-EXPRESSION (cmdinfo_addr_mode == Addr4B)
                --------------1--------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       440
 EXPRESSION (addr_cnt_q == '0)
            ---------1--------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       495
 EXPRESSION (mailbox_masked_addr_d == mailbox_addr_i)
            --------------------1--------------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       496
 EXPRESSION (mailbox_masked_addr_q == mailbox_addr_i)
            --------------------1--------------------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       509
 EXPRESSION (sram_req && mailbox_en_i && cfg_intercept_en_mbx_i && addr_d_in_mailbox)
             ----1---    ------2-----    -----------3----------    --------4--------
-1--2--3--4-StatusTests
0111Not Covered
1011Not Covered
1101Not Covered
1110Not Covered
1111Not Covered

 LINE       512
 EXPRESSION (mailbox_en_i && cfg_intercept_en_mbx_i && addr_d_in_mailbox && (bitcnt == 3'b0))
             ------1-----    -----------2----------    --------3--------    --------4-------
-1--2--3--4-StatusTests
0111Not Covered
1011Not Covered
1101Not Covered
1110Not Covered
1111Not Covered

 LINE       512
 SUB-EXPRESSION (bitcnt == 3'b0)
                --------1-------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       516
 EXPRESSION (((!addr_d_in_mailbox)) && (bitcnt == 3'b0))
             -----------1----------    --------2-------
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

 LINE       516
 SUB-EXPRESSION (bitcnt == 3'b0)
                --------1-------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       560
 EXPRESSION ((main_st == MainOutput) && (addr_q[9:0] == '1))
             -----------1-----------    ---------2---------
-1--2-StatusTests
01Not Covered
10Not Covered
11Not Covered

 LINE       560
 SUB-EXPRESSION (main_st == MainOutput)
                -----------1-----------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       560
 SUB-EXPRESSION (addr_q[9:0] == '1)
                ---------1---------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       686
 EXPRESSION (bitcnt == 3'b0)
            --------1-------
-1-StatusTests
0Not Covered
1Not Covered

 LINE       729
 EXPRESSION (sel_dp_i == DpReadSFDP)
            ------------1-----------
-1-StatusTests
0Not Covered
1Not Covered

FSM Coverage for Module : spi_readcmd
Summary for FSM :: main_st
TotalCoveredPercent
States 5 0 0.00 (Not included in score)
Transitions 5 0 0.00
Sequences 0 0

State, Transition and Sequence Details for FSM :: main_st
statesLine No.CoveredTests
MainAddress 604 Not Covered
MainDummy 636 Not Covered
MainError 647 Not Covered
MainMByte 643 Excluded
MainOutput 629 Not Covered
MainReset 600 Not Covered


transitionsLine No.CoveredTests
MainAddress->MainDummy 636 Not Covered
MainAddress->MainError 647 Not Covered
MainAddress->MainMByte 643 Excluded
MainAddress->MainOutput 629 Not Covered
MainDummy->MainOutput 663 Not Covered
MainMByte->MainDummy 655 Excluded
MainReset->MainAddress 604 Not Covered



Branch Coverage for Module : spi_readcmd
Line No.TotalCoveredPercent
Branches 65 0 0.00
IF 348 3 0 0.00
IF 364 3 0 0.00
IF 379 5 0 0.00
IF 422 2 0 0.00
IF 431 5 0 0.00
IF 451 4 0 0.00
IF 464 10 0 0.00
IF 508 5 0 0.00
IF 529 2 0 0.00
IF 547 3 0 0.00
IF 570 2 0 0.00
CASE 599 21 0 0.00

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

LineNo. Expression -1-: 348 if ((!rst_ni)) -2-: 350 if (addr_latch_en)

Branches:
-1--2-StatusTests
1 - Not Covered
0 1 Not Covered
0 0 Not Covered


LineNo. Expression -1-: 364 if ((!sys_rst_ni)) -2-: 366 if ((((((main_st == MainOutput) && (sel_dp_i == DpReadCmd)) && addr_latch_en) && (!(mailbox_en_i && addr_q_in_mailbox))) && spid_in_flashmode))

Branches:
-1--2-StatusTests
1 - Not Covered
0 1 Not Covered
0 0 Not Covered


LineNo. Expression -1-: 379 if (addr_ready_in_word) -2-: 382 if (addr_ready_in_halfword) -3-: 386 if ((addr_shift_en && s2p_valid_i)) -4-: 390 if (addr_inc)

Branches:
-1--2--3--4-StatusTests
1 - - - Not Covered
0 1 - - Not Covered
0 0 1 - Not Covered
0 0 0 1 Not Covered
0 0 0 0 Not Covered


LineNo. Expression -1-: 422 if ((!rst_ni))

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 431 if (addr_cnt_set) -2-: 438 ((cmdinfo_addr_mode == Addr4B)) ? -3-: 440 if ((addr_cnt_q == '0)) -4-: 442 if (addr_shift_en)

Branches:
-1--2--3--4-StatusTests
1 1 - - Not Covered
1 0 - - Not Covered
0 - 1 - Not Covered
0 - 0 1 Not Covered
0 - 0 0 Not Covered


LineNo. Expression -1-: 451 if ((!rst_ni)) -2-: 453 if (load_dummycnt) -3-: 456 if ((!dummycnt_eq_zero))

Branches:
-1--2--3-StatusTests
1 - - Not Covered
0 1 - Not Covered
0 0 1 Not Covered
0 0 0 Not Covered


LineNo. Expression -1-: 464 if ((!rst_ni)) -2-: 466 if (bitcnt_update) -3-: 467 case (cmd_info_i.payload_en) -4-: 473 if (bitcnt_dec) -5-: 474 case (cmd_info_i.payload_en)

Branches:
-1--2--3--4--5-StatusTests
1 - - - - Not Covered
0 1 4'b0010 - - Not Covered
0 1 4'b0011 - - Not Covered
0 1 4'b1111 - - Not Covered
0 1 default - - Not Covered
0 0 - 1 4'b0010 Not Covered
0 0 - 1 4'b0011 Not Covered
0 0 - 1 4'b1111 Not Covered
0 0 - 1 default Not Covered
0 0 - 0 - Not Covered


LineNo. Expression -1-: 508 if ((!rst_ni)) -2-: 509 if ((((sram_req && mailbox_en_i) && cfg_intercept_en_mbx_i) && addr_d_in_mailbox)) -3-: 512 if ((((mailbox_en_i && cfg_intercept_en_mbx_i) && addr_d_in_mailbox) && (bitcnt == 3'b0))) -4-: 516 if (((!addr_d_in_mailbox) && (bitcnt == 3'b0)))

Branches:
-1--2--3--4-StatusTests
1 - - - Not Covered
0 1 - - Not Covered
0 0 1 - Not Covered
0 0 0 1 Not Covered
0 0 0 0 Not Covered


LineNo. Expression -1-: 529 if ((!rst_ni))

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 547 if ((!sys_rst_ni)) -2-: 549 if (readbuf_flip)

Branches:
-1--2-StatusTests
1 - Not Covered
0 1 Not Covered
0 0 Not Covered


LineNo. Expression -1-: 570 if ((!rst_ni))

Branches:
-1-StatusTests
1 Not Covered
0 Not Covered


LineNo. Expression -1-: 599 case (main_st) -2-: 601 if ((sel_dp_i inside {DpReadCmd, DpReadSFDP})) -3-: 613 if (addr_ready_in_word) -4-: 617 if (addr_latched) -5-: 626 case ({cmd_info_i.mbyte_en, cmd_info_i.dummy_en}) -6-: 654 if (s2p_valid_i) -7-: 662 if (dummycnt_eq_zero) -8-: 679 case (cmd_info_i.payload_en) -9-: 686 if ((bitcnt == 3'b0))

Branches:
-1--2--3--4--5--6--7--8--9-StatusTests
MainReset 1 - - - - - - - Not Covered
MainReset 0 - - - - - - - Not Covered
MainAddress - 1 - - - - - - Not Covered
MainAddress - 0 - - - - - - Not Covered
MainAddress - - 1 2'b00 - - - - Not Covered
MainAddress - - 1 2'b01 - - - - Not Covered
MainAddress - - 1 2'b1z - - - - Not Covered
MainAddress - - 1 default - - - - Not Covered
MainAddress - - 0 - - - - - Not Covered
MainMByte - - - - 1 - - - Not Covered
MainMByte - - - - 0 - - - Not Covered
MainDummy - - - - - 1 - - Not Covered
MainDummy - - - - - 0 - - Not Covered
MainOutput - - - - - - 4'b0010 - Not Covered
MainOutput - - - - - - 4'b0011 - Not Covered
MainOutput - - - - - - 4'b1111 - Not Covered
MainOutput - - - - - - default - Not Covered
MainOutput - - - - - - - 1 Not Covered
MainOutput - - - - - - - 0 Not Covered
MainError - - - - - - - - Not Covered
default - - - - - - - - Not Covered

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