Line Coverage for Module :
prim_intr_hw ( parameter Width=1,FlopOutput=1,IntrT="Status" )
Line Coverage for Module self-instances :
| Line No. | Total | Covered | Percent |
TOTAL | | 10 | 9 | 90.00 |
ALWAYS | 75 | 4 | 3 | 75.00 |
CONT_ASSIGN | 81 | 1 | 1 | 100.00 |
CONT_ASSIGN | 83 | 1 | 1 | 100.00 |
CONT_ASSIGN | 88 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 2/2 if (!rst_ni) test_q <= '0;
Tests: T1 T2 T3 | T1 T2 T3
76 1/2 ==> else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
Tests: T1 T2 T3
MISSING_ELSE
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 1/1 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
Tests: T1 T2 T3
82
83 1/1 assign status = event_intr_i | test_q;
Tests: T1 T2 T3
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 1/1 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
Tests: T1 T2 T3
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Line Coverage for Module :
prim_intr_hw ( parameter Width=1,FlopOutput=1,IntrT="Event" )
Line Coverage for Module self-instances :
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Module :
prim_intr_hw ( parameter Width=1,FlopOutput=1,IntrT="Status" )
Cond Coverage for Module self-instances :
| Total | Covered | Percent |
Conditions | 9 | 7 | 77.78 |
Logical | 9 | 7 | 77.78 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 81
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T1,T2,T3 |
LINE 83
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T32,T36,T7 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T32,T36,T7 |
Cond Coverage for Module :
prim_intr_hw ( parameter Width=1,FlopOutput=1,IntrT="Event" )
Cond Coverage for Module self-instances :
| Total | Covered | Percent |
Conditions | 12 | 9 | 75.00 |
Logical | 12 | 9 | 75.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T41,T48,T49 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T41,T48,T49 |
Branch Coverage for Module :
prim_intr_hw ( parameter Width=1,FlopOutput=1,IntrT="Status" )
Branch Coverage for Module self-instances :
| Line No. | Total | Covered | Percent |
Branches |
|
5 |
4 |
80.00 |
IF |
75 |
3 |
2 |
66.67 |
IF |
95 |
2 |
2 |
100.00 |
75 if (!rst_ni) test_q <= '0;
-1-
==>
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
-2-
==>
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T1,T2,T3 |
0 |
1 |
Not Covered |
|
0 |
0 |
Covered |
T1,T2,T3 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Branch Coverage for Module :
prim_intr_hw ( parameter Width=1,FlopOutput=1,IntrT="Event" )
Branch Coverage for Module self-instances :
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Module :
prim_intr_hw
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
66060 |
66060 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
66060 |
66060 |
0 |
0 |
T1 |
18 |
18 |
0 |
0 |
T2 |
18 |
18 |
0 |
0 |
T3 |
18 |
18 |
0 |
0 |
T28 |
18 |
18 |
0 |
0 |
T29 |
18 |
18 |
0 |
0 |
T30 |
18 |
18 |
0 |
0 |
T31 |
18 |
18 |
0 |
0 |
T32 |
18 |
18 |
0 |
0 |
T41 |
18 |
18 |
0 |
0 |
T42 |
18 |
18 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_hw_pkt_received
| Line No. | Total | Covered | Percent |
TOTAL | | 10 | 9 | 90.00 |
ALWAYS | 75 | 4 | 3 | 75.00 |
CONT_ASSIGN | 81 | 1 | 1 | 100.00 |
CONT_ASSIGN | 83 | 1 | 1 | 100.00 |
CONT_ASSIGN | 88 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 2/2 if (!rst_ni) test_q <= '0;
Tests: T1 T2 T3 | T1 T2 T3
76 1/2 ==> else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
Tests: T1 T2 T3
MISSING_ELSE
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 1/1 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
Tests: T1 T2 T3
82
83 1/1 assign status = event_intr_i | test_q;
Tests: T1 T2 T3
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 1/1 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
Tests: T1 T2 T3
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_hw_pkt_received
| Total | Covered | Percent |
Conditions | 9 | 7 | 77.78 |
Logical | 9 | 7 | 77.78 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 81
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T1,T28,T29 |
LINE 83
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T1,T28,T29 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T24,T50,T51 |
1 | 0 | Covered | T1,T28,T29 |
1 | 1 | Covered | T24,T50,T51 |
Branch Coverage for Instance : tb.dut.intr_hw_pkt_received
| Line No. | Total | Covered | Percent |
Branches |
|
5 |
4 |
80.00 |
IF |
75 |
3 |
2 |
66.67 |
IF |
95 |
2 |
2 |
100.00 |
75 if (!rst_ni) test_q <= '0;
-1-
==>
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
-2-
==>
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T1,T2,T3 |
0 |
1 |
Not Covered |
|
0 |
0 |
Covered |
T1,T2,T3 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_hw_pkt_received
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_hw_pkt_sent
| Line No. | Total | Covered | Percent |
TOTAL | | 10 | 9 | 90.00 |
ALWAYS | 75 | 4 | 3 | 75.00 |
CONT_ASSIGN | 81 | 1 | 1 | 100.00 |
CONT_ASSIGN | 83 | 1 | 1 | 100.00 |
CONT_ASSIGN | 88 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 2/2 if (!rst_ni) test_q <= '0;
Tests: T1 T2 T3 | T1 T2 T3
76 1/2 ==> else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
Tests: T1 T2 T3
MISSING_ELSE
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 1/1 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
Tests: T1 T2 T3
82
83 1/1 assign status = event_intr_i | test_q;
Tests: T1 T2 T3
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 1/1 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
Tests: T1 T2 T3
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_hw_pkt_sent
| Total | Covered | Percent |
Conditions | 9 | 7 | 77.78 |
Logical | 9 | 7 | 77.78 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 81
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T29,T30,T32 |
LINE 83
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T29,T30,T32 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T32,T36,T7 |
1 | 0 | Covered | T29,T30,T35 |
1 | 1 | Covered | T32,T36,T7 |
Branch Coverage for Instance : tb.dut.intr_hw_pkt_sent
| Line No. | Total | Covered | Percent |
Branches |
|
5 |
4 |
80.00 |
IF |
75 |
3 |
2 |
66.67 |
IF |
95 |
2 |
2 |
100.00 |
75 if (!rst_ni) test_q <= '0;
-1-
==>
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
-2-
==>
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T1,T2,T3 |
0 |
1 |
Not Covered |
|
0 |
0 |
Covered |
T1,T2,T3 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_hw_pkt_sent
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_av_out_empty
| Line No. | Total | Covered | Percent |
TOTAL | | 10 | 9 | 90.00 |
ALWAYS | 75 | 4 | 3 | 75.00 |
CONT_ASSIGN | 81 | 1 | 1 | 100.00 |
CONT_ASSIGN | 83 | 1 | 1 | 100.00 |
CONT_ASSIGN | 88 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 2/2 if (!rst_ni) test_q <= '0;
Tests: T1 T2 T3 | T1 T2 T3
76 1/2 ==> else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
Tests: T1 T2 T3
MISSING_ELSE
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 1/1 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
Tests: T1 T2 T3
82
83 1/1 assign status = event_intr_i | test_q;
Tests: T1 T2 T3
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 1/1 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
Tests: T1 T2 T3
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_av_out_empty
| Total | Covered | Percent |
Conditions | 9 | 7 | 77.78 |
Logical | 9 | 7 | 77.78 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 81
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T1,T2,T3 |
LINE 83
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T52 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T52 |
Branch Coverage for Instance : tb.dut.intr_av_out_empty
| Line No. | Total | Covered | Percent |
Branches |
|
5 |
4 |
80.00 |
IF |
75 |
3 |
2 |
66.67 |
IF |
95 |
2 |
2 |
100.00 |
75 if (!rst_ni) test_q <= '0;
-1-
==>
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
-2-
==>
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T1,T2,T3 |
0 |
1 |
Not Covered |
|
0 |
0 |
Covered |
T1,T2,T3 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_av_out_empty
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_rx_full
| Line No. | Total | Covered | Percent |
TOTAL | | 10 | 9 | 90.00 |
ALWAYS | 75 | 4 | 3 | 75.00 |
CONT_ASSIGN | 81 | 1 | 1 | 100.00 |
CONT_ASSIGN | 83 | 1 | 1 | 100.00 |
CONT_ASSIGN | 88 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 2/2 if (!rst_ni) test_q <= '0;
Tests: T1 T2 T3 | T1 T2 T3
76 1/2 ==> else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
Tests: T1 T2 T3
MISSING_ELSE
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 1/1 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
Tests: T1 T2 T3
82
83 1/1 assign status = event_intr_i | test_q;
Tests: T1 T2 T3
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 1/1 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
Tests: T1 T2 T3
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_rx_full
| Total | Covered | Percent |
Conditions | 9 | 7 | 77.78 |
Logical | 9 | 7 | 77.78 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 81
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T53,T54,T55 |
LINE 83
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T53,T54,T55 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T56,T54,T57 |
1 | 0 | Covered | T53,T55,T58 |
1 | 1 | Covered | T54,T57,T59 |
Branch Coverage for Instance : tb.dut.intr_rx_full
| Line No. | Total | Covered | Percent |
Branches |
|
5 |
4 |
80.00 |
IF |
75 |
3 |
2 |
66.67 |
IF |
95 |
2 |
2 |
100.00 |
75 if (!rst_ni) test_q <= '0;
-1-
==>
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
-2-
==>
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T1,T2,T3 |
0 |
1 |
Not Covered |
|
0 |
0 |
Covered |
T1,T2,T3 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_rx_full
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_av_setup_empty
| Line No. | Total | Covered | Percent |
TOTAL | | 10 | 9 | 90.00 |
ALWAYS | 75 | 4 | 3 | 75.00 |
CONT_ASSIGN | 81 | 1 | 1 | 100.00 |
CONT_ASSIGN | 83 | 1 | 1 | 100.00 |
CONT_ASSIGN | 88 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 2/2 if (!rst_ni) test_q <= '0;
Tests: T1 T2 T3 | T1 T2 T3
76 1/2 ==> else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
Tests: T1 T2 T3
MISSING_ELSE
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 1/1 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
Tests: T1 T2 T3
82
83 1/1 assign status = event_intr_i | test_q;
Tests: T1 T2 T3
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 1/1 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
Tests: T1 T2 T3
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_av_setup_empty
| Total | Covered | Percent |
Conditions | 9 | 7 | 77.78 |
Logical | 9 | 7 | 77.78 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 81
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T1,T2,T3 |
LINE 83
EXPRESSION (event_intr_i | g_intr_status.test_q)
------1----- ----------2---------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Not Covered | |
1 | 0 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T60,T61 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T1,T60,T61 |
Branch Coverage for Instance : tb.dut.intr_av_setup_empty
| Line No. | Total | Covered | Percent |
Branches |
|
5 |
4 |
80.00 |
IF |
75 |
3 |
2 |
66.67 |
IF |
95 |
2 |
2 |
100.00 |
75 if (!rst_ni) test_q <= '0;
-1-
==>
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
-2-
==>
MISSING_ELSE
==>
Branches:
-1- | -2- | Status | Tests |
1 |
- |
Covered |
T1,T2,T3 |
0 |
1 |
Not Covered |
|
0 |
0 |
Covered |
T1,T2,T3 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_av_setup_empty
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_powered
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_powered
| Total | Covered | Percent |
Conditions | 12 | 7 | 58.33 |
Logical | 12 | 7 | 58.33 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Not Covered | |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Not Covered | |
Branch Coverage for Instance : tb.dut.intr_powered
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_powered
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_link_suspend
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_link_suspend
| Total | Covered | Percent |
Conditions | 12 | 7 | 58.33 |
Logical | 12 | 7 | 58.33 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T7,T8,T62 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T7,T8,T62 |
1 | 0 | Covered | T7,T8,T62 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Not Covered | |
1 | 0 | Covered | T7,T8,T62 |
1 | 1 | Not Covered | |
Branch Coverage for Instance : tb.dut.intr_link_suspend
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_link_suspend
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_link_in_err
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_link_in_err
| Total | Covered | Percent |
Conditions | 12 | 7 | 58.33 |
Logical | 12 | 7 | 58.33 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T30,T37,T40 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T3,T28 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T30,T37,T40 |
1 | 0 | Covered | T30,T37,T40 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Not Covered | |
1 | 0 | Covered | T30,T37,T40 |
1 | 1 | Not Covered | |
Branch Coverage for Instance : tb.dut.intr_link_in_err
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_link_in_err
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_frame
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_frame
| Total | Covered | Percent |
Conditions | 12 | 7 | 58.33 |
Logical | 12 | 7 | 58.33 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T41,T7,T8 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T41,T7,T8 |
1 | 0 | Covered | T41,T7,T8 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Not Covered | |
1 | 0 | Covered | T41,T7,T8 |
1 | 1 | Not Covered | |
Branch Coverage for Instance : tb.dut.intr_frame
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_frame
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_av_overflow
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T3 T31 T63
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_av_overflow
| Total | Covered | Percent |
Conditions | 12 | 8 | 66.67 |
Logical | 12 | 8 | 66.67 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T3,T64,T65 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T3,T64,T65 |
1 | 0 | Covered | T3,T64,T65 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T3,T64,T65 |
1 | 0 | Not Covered | |
1 | 1 | Covered | T3,T64,T65 |
Branch Coverage for Instance : tb.dut.intr_av_overflow
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_av_overflow
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_disconnected
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_disconnected
| Total | Covered | Percent |
Conditions | 12 | 9 | 75.00 |
Logical | 12 | 9 | 75.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T41,T66,T67 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T41,T66,T67 |
Branch Coverage for Instance : tb.dut.intr_disconnected
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_disconnected
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_host_lost
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_host_lost
| Total | Covered | Percent |
Conditions | 12 | 9 | 75.00 |
Logical | 12 | 9 | 75.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T49,T68,T69 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T49,T68,T69 |
1 | 0 | Covered | T49,T68,T69 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T49 |
1 | 0 | Covered | T49,T68,T69 |
1 | 1 | Covered | T49 |
Branch Coverage for Instance : tb.dut.intr_host_lost
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_host_lost
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_link_reset
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_link_reset
| Total | Covered | Percent |
Conditions | 12 | 9 | 75.00 |
Logical | 12 | 9 | 75.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Covered | T1,T2,T3 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T48 |
1 | 0 | Covered | T1,T2,T3 |
1 | 1 | Covered | T48 |
Branch Coverage for Instance : tb.dut.intr_link_reset
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_link_reset
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_link_resume
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_link_resume
| Total | Covered | Percent |
Conditions | 12 | 9 | 75.00 |
Logical | 12 | 9 | 75.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T8,T68,T70 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T8,T68,T70 |
1 | 0 | Covered | T8,T68,T70 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T71,T72,T73 |
1 | 0 | Covered | T8,T68,T70 |
1 | 1 | Covered | T71,T72,T73 |
Branch Coverage for Instance : tb.dut.intr_link_resume
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_link_resume
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_link_out_err
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_link_out_err
| Total | Covered | Percent |
Conditions | 12 | 9 | 75.00 |
Logical | 12 | 9 | 75.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T30,T34,T38 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T30,T34,T38 |
1 | 0 | Covered | T30,T34,T38 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T34,T38,T22 |
1 | 0 | Covered | T30,T17,T19 |
1 | 1 | Covered | T34,T38,T22 |
Branch Coverage for Instance : tb.dut.intr_link_out_err
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_link_out_err
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_rx_crc_err
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_rx_crc_err
| Total | Covered | Percent |
Conditions | 12 | 9 | 75.00 |
Logical | 12 | 9 | 75.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T2,T34,T38 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T2,T34,T38 |
1 | 0 | Covered | T2,T34,T38 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T74,T75,T76 |
1 | 0 | Covered | T2,T34,T38 |
1 | 1 | Covered | T74,T75,T76 |
Branch Coverage for Instance : tb.dut.intr_rx_crc_err
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_rx_crc_err
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_rx_pid_err
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_rx_pid_err
| Total | Covered | Percent |
Conditions | 12 | 9 | 75.00 |
Logical | 12 | 9 | 75.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T77,T78,T79 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T77,T78,T79 |
1 | 0 | Covered | T77,T78,T79 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T77,T78,T80 |
1 | 0 | Covered | T79,T81,T82 |
1 | 1 | Covered | T77,T78,T80 |
Branch Coverage for Instance : tb.dut.intr_rx_pid_err
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_rx_pid_err
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |
Line Coverage for Instance : tb.dut.intr_rx_bitstuff_err
| Line No. | Total | Covered | Percent |
TOTAL | | 7 | 7 | 100.00 |
CONT_ASSIGN | 62 | 1 | 1 | 100.00 |
CONT_ASSIGN | 64 | 1 | 1 | 100.00 |
CONT_ASSIGN | 67 | 1 | 1 | 100.00 |
CONT_ASSIGN | 69 | 1 | 1 | 100.00 |
ALWAYS | 95 | 3 | 3 | 100.00 |
61 logic [Width-1:0] new_event;
62 1/1 assign new_event =
Tests: T1 T2 T3
63 (({Width{reg2hw_intr_test_qe_i}} & reg2hw_intr_test_q_i) | event_intr_i);
64 1/1 assign hw2reg_intr_state_de_o = |new_event;
Tests: T1 T2 T3
65 // for scalar interrupts, this resolves to '1' with new event
66 // for vector interrupts, new events are OR'd in to existing interrupt state
67 1/1 assign hw2reg_intr_state_d_o = new_event | reg2hw_intr_state_q_i;
Tests: T1 T2 T3
68
69 1/1 assign status = reg2hw_intr_state_q_i ;
Tests: T1 T2 T3
70 end : g_intr_event
71 else if (IntrT == "Status") begin : g_intr_status
72 logic [Width-1:0] test_q; // Storing test. Cleared by SW
73
74 always_ff @(posedge clk_i or negedge rst_ni) begin
75 if (!rst_ni) test_q <= '0;
76 else if (reg2hw_intr_test_qe_i) test_q <= reg2hw_intr_test_q_i;
77 end
78
79 // TODO: In Status type, INTR_STATE is better to be external type and RO.
80 assign hw2reg_intr_state_de_o = 1'b 1; // always represent the status
81 assign hw2reg_intr_state_d_o = event_intr_i | test_q;
82
83 assign status = event_intr_i | test_q;
84
85 // To make the timing same to event type, status signal does not use CSR.q,
86 // rather the input of the CSR.
87 logic unused_reg2hw;
88 assign unused_reg2hw = ^reg2hw_intr_state_q_i;
89 end : g_intr_status
90
91
92 if (FlopOutput == 1) begin : gen_flop_intr_output
93 // flop the interrupt output
94 always_ff @(posedge clk_i or negedge rst_ni) begin
95 1/1 if (!rst_ni) begin
Tests: T1 T2 T3
96 1/1 intr_o <= '0;
Tests: T1 T2 T3
97 end else begin
98 1/1 intr_o <= status & reg2hw_intr_enable_q_i;
Tests: T1 T2 T3
Cond Coverage for Instance : tb.dut.intr_rx_bitstuff_err
| Total | Covered | Percent |
Conditions | 12 | 9 | 75.00 |
Logical | 12 | 9 | 75.00 |
Non-Logical | 0 | 0 | |
Event | 0 | 0 | |
LINE 62
EXPRESSION ((({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i) | event_intr_i)
-----------------------------1---------------------------- ------2-----
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T2,T83,T84 |
1 | 0 | Not Covered | |
LINE 62
SUB-EXPRESSION (({Width {reg2hw_intr_test_qe_i}}) & reg2hw_intr_test_q_i)
----------------1---------------- ----------2---------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T1,T2,T3 |
1 | 0 | Not Covered | |
1 | 1 | Not Covered | |
LINE 67
EXPRESSION (g_intr_event.new_event | reg2hw_intr_state_q_i)
-----------1---------- ----------2----------
-1- | -2- | Status | Tests |
0 | 0 | Covered | T1,T2,T3 |
0 | 1 | Covered | T2,T83,T84 |
1 | 0 | Covered | T2,T83,T84 |
LINE 98
EXPRESSION (status & reg2hw_intr_enable_q_i)
---1-- -----------2----------
-1- | -2- | Status | Tests |
0 | 1 | Covered | T2,T83,T84 |
1 | 0 | Covered | T81,T82,T85 |
1 | 1 | Covered | T2,T83,T84 |
Branch Coverage for Instance : tb.dut.intr_rx_bitstuff_err
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
95 |
2 |
2 |
100.00 |
95 if (!rst_ni) begin
-1-
96 intr_o <= '0;
==>
97 end else begin
98 intr_o <= status & reg2hw_intr_enable_q_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T2,T3 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.intr_rx_bitstuff_err
Assertion Details
Name | Attempts | Real Successes | Failures | Incomplete |
IntrTKind_A |
3670 |
3670 |
0 |
0 |
IntrTKind_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
3670 |
3670 |
0 |
0 |
T1 |
1 |
1 |
0 |
0 |
T2 |
1 |
1 |
0 |
0 |
T3 |
1 |
1 |
0 |
0 |
T28 |
1 |
1 |
0 |
0 |
T29 |
1 |
1 |
0 |
0 |
T30 |
1 |
1 |
0 |
0 |
T31 |
1 |
1 |
0 |
0 |
T32 |
1 |
1 |
0 |
0 |
T41 |
1 |
1 |
0 |
0 |
T42 |
1 |
1 |
0 |
0 |