Line Coverage for Module :
prim_generic_ram_1r1w
| Line No. | Total | Covered | Percent |
TOTAL | | 11 | 10 | 90.91 |
CONT_ASSIGN | 45 | 1 | 0 | 0.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
ALWAYS | 66 | 4 | 4 | 100.00 |
ALWAYS | 77 | 2 | 2 | 100.00 |
44 logic unused_cfg;
45 0/1 ==> assign unused_cfg = ^cfg_i;
46
47 // Width of internal write mask. Note *_wmask_i input into the module is always assumed
48 // to be the full bit mask.
49 localparam int MaskWidth = Width / DataBitsPerMask;
50
51 logic [Width-1:0] mem [Depth];
52 logic [MaskWidth-1:0] a_wmask;
53 for (genvar k = 0; k < MaskWidth; k++) begin : gen_wmask
54 4/4 assign a_wmask[k] = &a_wmask_i[k*DataBitsPerMask +: DataBitsPerMask];
Tests: T1 T2 T3 | T1 T2 T3 | T1 T2 T3 | T1 T2 T3
55
56 // Ensure that all mask bits within a group have the same value for a write
57 `ASSERT(MaskCheckPortA_A, a_req_i |->
58 a_wmask_i[k*DataBitsPerMask +: DataBitsPerMask] inside {{DataBitsPerMask{1'b1}}, '0},
59 clk_a_i, '0)
60 end
61
62 // Xilinx FPGA specific Two-port RAM coding style
63 // using always instead of always_ff to avoid 'ICPD - illegal combination of drivers' error
64 // thrown due to 'mem' being driven by two always processes below
65 always @(posedge clk_a_i) begin
66 1/1 if (a_req_i) begin
Tests: T1 T2 T3
67 1/1 for (int i=0; i < MaskWidth; i = i + 1) begin
Tests: T1 T3 T4
68 1/1 if (a_wmask[i]) begin
Tests: T1 T3 T4
69 1/1 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <=
Tests: T1 T3 T4
70 a_wdata_i[i*DataBitsPerMask +: DataBitsPerMask];
71 end
MISSING_ELSE
72 end
73 end
MISSING_ELSE
74 end
75
76 always @(posedge clk_b_i) begin
77 1/1 if (b_req_i) begin
Tests: T1 T2 T3
78 1/1 b_rdata_o <= mem[b_addr_i];
Tests: T1 T3 T4
79 end
MISSING_ELSE
Branch Coverage for Module :
prim_generic_ram_1r1w
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
66 |
2 |
2 |
100.00 |
IF |
77 |
2 |
2 |
100.00 |
66 if (a_req_i) begin
-1-
67 for (int i=0; i < MaskWidth; i = i + 1) begin
==>
68 if (a_wmask[i]) begin
69 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <=
70 a_wdata_i[i*DataBitsPerMask +: DataBitsPerMask];
71 end
72 end
73 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T3,T4 |
0 |
Covered |
T1,T2,T3 |
77 if (b_req_i) begin
-1-
78 b_rdata_o <= mem[b_addr_i];
==>
79 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T3,T4 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Module :
prim_generic_ram_1r1w
Assertion Details
gen_wmask[0].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
626944160 |
3361887 |
0 |
0 |
T1 |
18125 |
832 |
0 |
0 |
T2 |
1597 |
0 |
0 |
0 |
T3 |
11309 |
832 |
0 |
0 |
T4 |
35387 |
502 |
0 |
0 |
T5 |
20902 |
832 |
0 |
0 |
T6 |
252929 |
2176 |
0 |
0 |
T7 |
52915 |
832 |
0 |
0 |
T8 |
32725 |
832 |
0 |
0 |
T9 |
35846 |
832 |
0 |
0 |
T10 |
84079 |
832 |
0 |
0 |
T11 |
8976 |
832 |
0 |
0 |
T12 |
51460 |
0 |
0 |
0 |
T23 |
0 |
102 |
0 |
0 |
T26 |
1042 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
570 |
0 |
0 |
T31 |
0 |
217 |
0 |
0 |
T37 |
0 |
34 |
0 |
0 |
T41 |
0 |
442 |
0 |
0 |
T44 |
0 |
191 |
0 |
0 |
T45 |
0 |
1353 |
0 |
0 |
gen_wmask[1].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
626944160 |
3361887 |
0 |
0 |
T1 |
18125 |
832 |
0 |
0 |
T2 |
1597 |
0 |
0 |
0 |
T3 |
11309 |
832 |
0 |
0 |
T4 |
35387 |
502 |
0 |
0 |
T5 |
20902 |
832 |
0 |
0 |
T6 |
252929 |
2176 |
0 |
0 |
T7 |
52915 |
832 |
0 |
0 |
T8 |
32725 |
832 |
0 |
0 |
T9 |
35846 |
832 |
0 |
0 |
T10 |
84079 |
832 |
0 |
0 |
T11 |
8976 |
832 |
0 |
0 |
T12 |
51460 |
0 |
0 |
0 |
T23 |
0 |
102 |
0 |
0 |
T26 |
1042 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
570 |
0 |
0 |
T31 |
0 |
217 |
0 |
0 |
T37 |
0 |
34 |
0 |
0 |
T41 |
0 |
442 |
0 |
0 |
T44 |
0 |
191 |
0 |
0 |
T45 |
0 |
1353 |
0 |
0 |
gen_wmask[2].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
626944160 |
3361887 |
0 |
0 |
T1 |
18125 |
832 |
0 |
0 |
T2 |
1597 |
0 |
0 |
0 |
T3 |
11309 |
832 |
0 |
0 |
T4 |
35387 |
502 |
0 |
0 |
T5 |
20902 |
832 |
0 |
0 |
T6 |
252929 |
2176 |
0 |
0 |
T7 |
52915 |
832 |
0 |
0 |
T8 |
32725 |
832 |
0 |
0 |
T9 |
35846 |
832 |
0 |
0 |
T10 |
84079 |
832 |
0 |
0 |
T11 |
8976 |
832 |
0 |
0 |
T12 |
51460 |
0 |
0 |
0 |
T23 |
0 |
102 |
0 |
0 |
T26 |
1042 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
570 |
0 |
0 |
T31 |
0 |
217 |
0 |
0 |
T37 |
0 |
34 |
0 |
0 |
T41 |
0 |
442 |
0 |
0 |
T44 |
0 |
191 |
0 |
0 |
T45 |
0 |
1353 |
0 |
0 |
gen_wmask[3].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
626944160 |
3361887 |
0 |
0 |
T1 |
18125 |
832 |
0 |
0 |
T2 |
1597 |
0 |
0 |
0 |
T3 |
11309 |
832 |
0 |
0 |
T4 |
35387 |
502 |
0 |
0 |
T5 |
20902 |
832 |
0 |
0 |
T6 |
252929 |
2176 |
0 |
0 |
T7 |
52915 |
832 |
0 |
0 |
T8 |
32725 |
832 |
0 |
0 |
T9 |
35846 |
832 |
0 |
0 |
T10 |
84079 |
832 |
0 |
0 |
T11 |
8976 |
832 |
0 |
0 |
T12 |
51460 |
0 |
0 |
0 |
T23 |
0 |
102 |
0 |
0 |
T26 |
1042 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
570 |
0 |
0 |
T31 |
0 |
217 |
0 |
0 |
T37 |
0 |
34 |
0 |
0 |
T41 |
0 |
442 |
0 |
0 |
T44 |
0 |
191 |
0 |
0 |
T45 |
0 |
1353 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_spid_dpram.gen_ram1r1w.u_sys2spi_mem.u_mem.gen_generic.u_impl_generic
| Line No. | Total | Covered | Percent |
TOTAL | | 11 | 10 | 90.91 |
CONT_ASSIGN | 45 | 1 | 0 | 0.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
ALWAYS | 66 | 4 | 4 | 100.00 |
ALWAYS | 77 | 2 | 2 | 100.00 |
44 logic unused_cfg;
45 0/1 ==> assign unused_cfg = ^cfg_i;
46
47 // Width of internal write mask. Note *_wmask_i input into the module is always assumed
48 // to be the full bit mask.
49 localparam int MaskWidth = Width / DataBitsPerMask;
50
51 logic [Width-1:0] mem [Depth];
52 logic [MaskWidth-1:0] a_wmask;
53 for (genvar k = 0; k < MaskWidth; k++) begin : gen_wmask
54 4/4 assign a_wmask[k] = &a_wmask_i[k*DataBitsPerMask +: DataBitsPerMask];
Tests: T1 T2 T3 | T1 T2 T3 | T1 T2 T3 | T1 T2 T3
55
56 // Ensure that all mask bits within a group have the same value for a write
57 `ASSERT(MaskCheckPortA_A, a_req_i |->
58 a_wmask_i[k*DataBitsPerMask +: DataBitsPerMask] inside {{DataBitsPerMask{1'b1}}, '0},
59 clk_a_i, '0)
60 end
61
62 // Xilinx FPGA specific Two-port RAM coding style
63 // using always instead of always_ff to avoid 'ICPD - illegal combination of drivers' error
64 // thrown due to 'mem' being driven by two always processes below
65 always @(posedge clk_a_i) begin
66 1/1 if (a_req_i) begin
Tests: T1 T2 T3
67 1/1 for (int i=0; i < MaskWidth; i = i + 1) begin
Tests: T1 T3 T4
68 1/1 if (a_wmask[i]) begin
Tests: T1 T3 T4
69 1/1 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <=
Tests: T1 T3 T4
70 a_wdata_i[i*DataBitsPerMask +: DataBitsPerMask];
71 end
==> MISSING_ELSE
72 end
73 end
MISSING_ELSE
74 end
75
76 always @(posedge clk_b_i) begin
77 1/1 if (b_req_i) begin
Tests: T1 T3 T4
78 1/1 b_rdata_o <= mem[b_addr_i];
Tests: T1 T3 T4
79 end
MISSING_ELSE
Branch Coverage for Instance : tb.dut.u_spid_dpram.gen_ram1r1w.u_sys2spi_mem.u_mem.gen_generic.u_impl_generic
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
66 |
2 |
2 |
100.00 |
IF |
77 |
2 |
2 |
100.00 |
66 if (a_req_i) begin
-1-
67 for (int i=0; i < MaskWidth; i = i + 1) begin
==>
68 if (a_wmask[i]) begin
69 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <=
70 a_wdata_i[i*DataBitsPerMask +: DataBitsPerMask];
71 end
72 end
73 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T3,T4 |
0 |
Covered |
T1,T2,T3 |
77 if (b_req_i) begin
-1-
78 b_rdata_o <= mem[b_addr_i];
==>
79 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T1,T3,T4 |
0 |
Covered |
T1,T3,T4 |
Assert Coverage for Instance : tb.dut.u_spid_dpram.gen_ram1r1w.u_sys2spi_mem.u_mem.gen_generic.u_impl_generic
Assertion Details
gen_wmask[0].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
480500434 |
2079107 |
0 |
0 |
T1 |
18125 |
832 |
0 |
0 |
T2 |
1597 |
0 |
0 |
0 |
T3 |
11309 |
832 |
0 |
0 |
T4 |
24683 |
80 |
0 |
0 |
T5 |
9341 |
832 |
0 |
0 |
T6 |
88558 |
897 |
0 |
0 |
T7 |
14577 |
832 |
0 |
0 |
T8 |
21533 |
832 |
0 |
0 |
T9 |
27558 |
832 |
0 |
0 |
T10 |
67823 |
832 |
0 |
0 |
T11 |
0 |
832 |
0 |
0 |
gen_wmask[1].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
480500434 |
2079107 |
0 |
0 |
T1 |
18125 |
832 |
0 |
0 |
T2 |
1597 |
0 |
0 |
0 |
T3 |
11309 |
832 |
0 |
0 |
T4 |
24683 |
80 |
0 |
0 |
T5 |
9341 |
832 |
0 |
0 |
T6 |
88558 |
897 |
0 |
0 |
T7 |
14577 |
832 |
0 |
0 |
T8 |
21533 |
832 |
0 |
0 |
T9 |
27558 |
832 |
0 |
0 |
T10 |
67823 |
832 |
0 |
0 |
T11 |
0 |
832 |
0 |
0 |
gen_wmask[2].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
480500434 |
2079107 |
0 |
0 |
T1 |
18125 |
832 |
0 |
0 |
T2 |
1597 |
0 |
0 |
0 |
T3 |
11309 |
832 |
0 |
0 |
T4 |
24683 |
80 |
0 |
0 |
T5 |
9341 |
832 |
0 |
0 |
T6 |
88558 |
897 |
0 |
0 |
T7 |
14577 |
832 |
0 |
0 |
T8 |
21533 |
832 |
0 |
0 |
T9 |
27558 |
832 |
0 |
0 |
T10 |
67823 |
832 |
0 |
0 |
T11 |
0 |
832 |
0 |
0 |
gen_wmask[3].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
480500434 |
2079107 |
0 |
0 |
T1 |
18125 |
832 |
0 |
0 |
T2 |
1597 |
0 |
0 |
0 |
T3 |
11309 |
832 |
0 |
0 |
T4 |
24683 |
80 |
0 |
0 |
T5 |
9341 |
832 |
0 |
0 |
T6 |
88558 |
897 |
0 |
0 |
T7 |
14577 |
832 |
0 |
0 |
T8 |
21533 |
832 |
0 |
0 |
T9 |
27558 |
832 |
0 |
0 |
T10 |
67823 |
832 |
0 |
0 |
T11 |
0 |
832 |
0 |
0 |
Line Coverage for Instance : tb.dut.u_spid_dpram.gen_ram1r1w.u_spi2sys_mem.u_mem.gen_generic.u_impl_generic
| Line No. | Total | Covered | Percent |
TOTAL | | 11 | 10 | 90.91 |
CONT_ASSIGN | 45 | 1 | 0 | 0.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
ALWAYS | 66 | 4 | 4 | 100.00 |
ALWAYS | 77 | 2 | 2 | 100.00 |
44 logic unused_cfg;
45 0/1 ==> assign unused_cfg = ^cfg_i;
46
47 // Width of internal write mask. Note *_wmask_i input into the module is always assumed
48 // to be the full bit mask.
49 localparam int MaskWidth = Width / DataBitsPerMask;
50
51 logic [Width-1:0] mem [Depth];
52 logic [MaskWidth-1:0] a_wmask;
53 for (genvar k = 0; k < MaskWidth; k++) begin : gen_wmask
54 4/4 assign a_wmask[k] = &a_wmask_i[k*DataBitsPerMask +: DataBitsPerMask];
Tests: T1 T2 T3 | T1 T2 T3 | T1 T2 T3 | T1 T2 T3
55
56 // Ensure that all mask bits within a group have the same value for a write
57 `ASSERT(MaskCheckPortA_A, a_req_i |->
58 a_wmask_i[k*DataBitsPerMask +: DataBitsPerMask] inside {{DataBitsPerMask{1'b1}}, '0},
59 clk_a_i, '0)
60 end
61
62 // Xilinx FPGA specific Two-port RAM coding style
63 // using always instead of always_ff to avoid 'ICPD - illegal combination of drivers' error
64 // thrown due to 'mem' being driven by two always processes below
65 always @(posedge clk_a_i) begin
66 1/1 if (a_req_i) begin
Tests: T1 T3 T4
67 1/1 for (int i=0; i < MaskWidth; i = i + 1) begin
Tests: T4 T6 T27
68 1/1 if (a_wmask[i]) begin
Tests: T4 T6 T27
69 1/1 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <=
Tests: T4 T6 T27
70 a_wdata_i[i*DataBitsPerMask +: DataBitsPerMask];
71 end
MISSING_ELSE
72 end
73 end
MISSING_ELSE
74 end
75
76 always @(posedge clk_b_i) begin
77 1/1 if (b_req_i) begin
Tests: T1 T2 T3
78 1/1 b_rdata_o <= mem[b_addr_i];
Tests: T4 T6 T27
79 end
MISSING_ELSE
Branch Coverage for Instance : tb.dut.u_spid_dpram.gen_ram1r1w.u_spi2sys_mem.u_mem.gen_generic.u_impl_generic
| Line No. | Total | Covered | Percent |
Branches |
|
4 |
4 |
100.00 |
IF |
66 |
2 |
2 |
100.00 |
IF |
77 |
2 |
2 |
100.00 |
66 if (a_req_i) begin
-1-
67 for (int i=0; i < MaskWidth; i = i + 1) begin
==>
68 if (a_wmask[i]) begin
69 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <=
70 a_wdata_i[i*DataBitsPerMask +: DataBitsPerMask];
71 end
72 end
73 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T4,T6,T27 |
0 |
Covered |
T1,T3,T4 |
77 if (b_req_i) begin
-1-
78 b_rdata_o <= mem[b_addr_i];
==>
79 end
MISSING_ELSE
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T4,T6,T27 |
0 |
Covered |
T1,T2,T3 |
Assert Coverage for Instance : tb.dut.u_spid_dpram.gen_ram1r1w.u_spi2sys_mem.u_mem.gen_generic.u_impl_generic
Assertion Details
gen_wmask[0].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
146443726 |
1282780 |
0 |
0 |
T4 |
10704 |
422 |
0 |
0 |
T5 |
11561 |
0 |
0 |
0 |
T6 |
164371 |
1279 |
0 |
0 |
T7 |
38338 |
0 |
0 |
0 |
T8 |
11192 |
0 |
0 |
0 |
T9 |
8288 |
0 |
0 |
0 |
T10 |
16256 |
0 |
0 |
0 |
T11 |
8976 |
0 |
0 |
0 |
T12 |
51460 |
0 |
0 |
0 |
T23 |
0 |
102 |
0 |
0 |
T26 |
1042 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
570 |
0 |
0 |
T31 |
0 |
217 |
0 |
0 |
T37 |
0 |
34 |
0 |
0 |
T41 |
0 |
442 |
0 |
0 |
T44 |
0 |
191 |
0 |
0 |
T45 |
0 |
1353 |
0 |
0 |
gen_wmask[1].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
146443726 |
1282780 |
0 |
0 |
T4 |
10704 |
422 |
0 |
0 |
T5 |
11561 |
0 |
0 |
0 |
T6 |
164371 |
1279 |
0 |
0 |
T7 |
38338 |
0 |
0 |
0 |
T8 |
11192 |
0 |
0 |
0 |
T9 |
8288 |
0 |
0 |
0 |
T10 |
16256 |
0 |
0 |
0 |
T11 |
8976 |
0 |
0 |
0 |
T12 |
51460 |
0 |
0 |
0 |
T23 |
0 |
102 |
0 |
0 |
T26 |
1042 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
570 |
0 |
0 |
T31 |
0 |
217 |
0 |
0 |
T37 |
0 |
34 |
0 |
0 |
T41 |
0 |
442 |
0 |
0 |
T44 |
0 |
191 |
0 |
0 |
T45 |
0 |
1353 |
0 |
0 |
gen_wmask[2].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
146443726 |
1282780 |
0 |
0 |
T4 |
10704 |
422 |
0 |
0 |
T5 |
11561 |
0 |
0 |
0 |
T6 |
164371 |
1279 |
0 |
0 |
T7 |
38338 |
0 |
0 |
0 |
T8 |
11192 |
0 |
0 |
0 |
T9 |
8288 |
0 |
0 |
0 |
T10 |
16256 |
0 |
0 |
0 |
T11 |
8976 |
0 |
0 |
0 |
T12 |
51460 |
0 |
0 |
0 |
T23 |
0 |
102 |
0 |
0 |
T26 |
1042 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
570 |
0 |
0 |
T31 |
0 |
217 |
0 |
0 |
T37 |
0 |
34 |
0 |
0 |
T41 |
0 |
442 |
0 |
0 |
T44 |
0 |
191 |
0 |
0 |
T45 |
0 |
1353 |
0 |
0 |
gen_wmask[3].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
146443726 |
1282780 |
0 |
0 |
T4 |
10704 |
422 |
0 |
0 |
T5 |
11561 |
0 |
0 |
0 |
T6 |
164371 |
1279 |
0 |
0 |
T7 |
38338 |
0 |
0 |
0 |
T8 |
11192 |
0 |
0 |
0 |
T9 |
8288 |
0 |
0 |
0 |
T10 |
16256 |
0 |
0 |
0 |
T11 |
8976 |
0 |
0 |
0 |
T12 |
51460 |
0 |
0 |
0 |
T23 |
0 |
102 |
0 |
0 |
T26 |
1042 |
0 |
0 |
0 |
T27 |
0 |
3 |
0 |
0 |
T28 |
0 |
570 |
0 |
0 |
T31 |
0 |
217 |
0 |
0 |
T37 |
0 |
34 |
0 |
0 |
T41 |
0 |
442 |
0 |
0 |
T44 |
0 |
191 |
0 |
0 |
T45 |
0 |
1353 |
0 |
0 |