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
18.78 0.00 0.00 75.11 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_ASSIGN184100.00
CONT_ASSIGN187100.00
CONT_ASSIGN190100.00
CONT_ASSIGN193100.00
CONT_ASSIGN334100.00
CONT_ASSIGN341100.00
ALWAYS354400.00
ALWAYS370400.00
CONT_ASSIGN379100.00
ALWAYS3821200.00
CONT_ASSIGN405100.00
CONT_ASSIGN406100.00
CONT_ASSIGN409100.00
CONT_ASSIGN425100.00
ALWAYS428300.00
ALWAYS436700.00
ALWAYS457600.00
CONT_ASSIGN466100.00
ALWAYS4701200.00
CONT_ASSIGN497100.00
CONT_ASSIGN498100.00
CONT_ASSIGN501100.00
CONT_ASSIGN502100.00
ALWAYS514800.00
CONT_ASSIGN530100.00
ALWAYS535500.00
ALWAYS553400.00
CONT_ASSIGN566100.00
ALWAYS576300.00
ALWAYS5844800.00
CONT_ASSIGN721100.00
CONT_ASSIGN722100.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
184 0 1
187 0 1
190 0 1
193 0 1
334 0 1
341 0 1
354 0 1
355 0 1
356 0 1
357 0 1
==> MISSING_ELSE
370 0 1
371 0 1
372 0 1
375 0 1
==> MISSING_ELSE
379 0 1
382 0 1
383 0 1
385 0 1
387 0 1
388 0 1
391 0 1
392 0 1
394 0 1
395 0 1
396 0 1
398 0 1
399 0 1
==> MISSING_ELSE
405 0 1
406 0 1
409 0 1
425 0 1
428 0 1
429 0 1
431 0 1
436 0 1
437 0 1
444 0 1
446 0 1
447 0 1
448 0 1
450 0 1
==> MISSING_ELSE
457 0 1
458 0 1
459 0 1
461 0 1
462 0 1
463 0 1
==> MISSING_ELSE
466 0 1
470 0 1
471 0 1
472 0 1
473 0 1
474 0 1
475 0 1
476 0 1
479 0 1
480 0 1
481 0 1
482 0 1
483 0 1
==> MISSING_ELSE
497 0 1
498 0 1
501 0 1
502 0 1
514 0 2
515 0 1
517 0 1
518 0 1
521 0 1
522 0 1
524 0 1
==> MISSING_ELSE
530 0 1
535 0 1
536 0 1
537 0 1
539 0 1
540 0 1
553 0 1
554 0 1
555 0 1
561 0 1
==> MISSING_ELSE
566 0 1
576 0 1
577 0 1
579 0 1
584 0 1
586 0 1
589 0 1
590 0 1
591 0 1
592 0 1
594 0 1
595 0 1
597 0 1
598 0 1
600 0 1
602 0 1
603 0 1
605 0 1
607 0 1
610 0 1
612 0 1
==> MISSING_ELSE
617 0 1
619 0 1
620 0 1
==> MISSING_ELSE
623 0 1
626 0 1
632 0 1
635 0 1
636 0 1
637 0 1
642 0 1
644 0 1
649 0 1
==> MISSING_ELSE
660 0 1
661 0 1
663 0 1
==> MISSING_ELSE
668 0 1
669 0 1
670 0 1
671 0 1
==> MISSING_ELSE
676 0 1
680 0 1
685 0 1
686 0 1
687 0 1
688 0 1
692 0 1
694 0 1
697 0 1
700 0 1
701 0 1
==> MISSING_ELSE
706 0 1
721 0 1
722 0 1


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

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

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

 LINE       372
 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       372
 SUB-EXPRESSION (main_st == MainOutput)
                -----------1-----------
-1-StatusTests
0Not Covered
1Not Covered

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

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

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

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

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

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

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

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

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

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

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

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

 LINE       515
 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       518
 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       518
 SUB-EXPRESSION (bitcnt == 3'b0)
                --------1-------
-1-StatusTests
0Not Covered
1Not Covered

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

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

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

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

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

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

 LINE       735
 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
states   Line No.   Covered   Tests   
MainAddress 610 Not Covered
MainDummy 642 Not Covered
MainError 653 Not Covered
MainMByte 649 Excluded
MainOutput 635 Not Covered
MainReset 606 Not Covered


transitions   Line No.   Covered   Tests   
MainAddress->MainDummy 642 Not Covered
MainAddress->MainError 653 Not Covered
MainAddress->MainMByte 649 Excluded
MainAddress->MainOutput 635 Not Covered
MainDummy->MainOutput 669 Not Covered
MainMByte->MainDummy 661 Excluded
MainReset->MainAddress 610 Not Covered



Branch Coverage for Module : spi_readcmd
Line No.TotalCoveredPercent
Branches 65 0 0.00
IF 354 3 0 0.00
IF 370 3 0 0.00
IF 385 5 0 0.00
IF 428 2 0 0.00
IF 437 5 0 0.00
IF 457 4 0 0.00
IF 470 10 0 0.00
IF 514 5 0 0.00
IF 535 2 0 0.00
IF 553 3 0 0.00
IF 576 2 0 0.00
CASE 605 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-: 354 if ((!rst_ni)) -2-: 356 if (addr_latch_en)

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


LineNo. Expression -1-: 370 if ((!sys_rst_ni)) -2-: 372 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-: 385 if (addr_ready_in_word) -2-: 388 if (addr_ready_in_halfword) -3-: 392 if ((addr_shift_en && s2p_valid_i)) -4-: 396 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-: 428 if ((!rst_ni))

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


LineNo. Expression -1-: 437 if (addr_cnt_set) -2-: 444 ((cmdinfo_addr_mode == Addr4B)) ? -3-: 446 if ((addr_cnt_q == '0)) -4-: 448 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-: 457 if ((!rst_ni)) -2-: 459 if (load_dummycnt) -3-: 462 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-: 470 if ((!rst_ni)) -2-: 472 if (bitcnt_update) -3-: 473 case (cmd_info_i.payload_en) -4-: 479 if (bitcnt_dec) -5-: 480 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-: 514 if ((!rst_ni)) -2-: 515 if ((((sram_req && mailbox_en_i) && cfg_intercept_en_mbx_i) && addr_d_in_mailbox)) -3-: 518 if ((((mailbox_en_i && cfg_intercept_en_mbx_i) && addr_d_in_mailbox) && (bitcnt == 3'b0))) -4-: 522 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-: 535 if ((!rst_out_ni))

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


LineNo. Expression -1-: 553 if ((!sys_rst_ni)) -2-: 555 if (readbuf_flip)

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


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

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


LineNo. Expression -1-: 605 case (main_st) -2-: 607 if ((sel_dp_i inside {DpReadCmd, DpReadSFDP})) -3-: 619 if (addr_ready_in_word) -4-: 623 if (addr_latched) -5-: 632 case ({cmd_info_i.mbyte_en, cmd_info_i.dummy_en}) -6-: 660 if (s2p_valid_i) -7-: 668 if (dummycnt_eq_zero) -8-: 685 case (cmd_info_i.payload_en) -9-: 692 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