Line Coverage for Module :
prim_generic_ram_1r1w
| Line No. | Total | Covered | Percent |
TOTAL | | 11 | 11 | 100.00 |
CONT_ASSIGN | 45 | 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 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
ALWAYS | 66 | 4 | 4 | 100.00 |
ALWAYS | 77 | 2 | 2 | 100.00 |
44 logic unused_cfg;
45 1/1 assign unused_cfg = ^cfg_i;
Tests: T2
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: T4 T5 T6
68 1/1 if (a_wmask[i]) begin
Tests: T4 T5 T6
69 1/1 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <=
Tests: T4 T5 T6
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 T5 T8
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 |
T4,T5,T6 |
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 |
T4,T5,T8 |
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 |
586610815 |
3333450 |
0 |
0 |
T4 |
2960 |
65 |
0 |
0 |
T5 |
67012 |
832 |
0 |
0 |
T6 |
57211 |
832 |
0 |
0 |
T7 |
478717 |
0 |
0 |
0 |
T8 |
82759 |
832 |
0 |
0 |
T9 |
15624 |
832 |
0 |
0 |
T10 |
97822 |
832 |
0 |
0 |
T11 |
387905 |
3962 |
0 |
0 |
T12 |
184593 |
832 |
0 |
0 |
T13 |
132114 |
832 |
0 |
0 |
T14 |
0 |
2368 |
0 |
0 |
T15 |
0 |
2674 |
0 |
0 |
T17 |
0 |
5190 |
0 |
0 |
T26 |
0 |
181 |
0 |
0 |
T28 |
0 |
3306 |
0 |
0 |
T41 |
0 |
132 |
0 |
0 |
T42 |
0 |
3584 |
0 |
0 |
T43 |
0 |
2411 |
0 |
0 |
T46 |
0 |
8 |
0 |
0 |
gen_wmask[1].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
586610815 |
3333450 |
0 |
0 |
T4 |
2960 |
65 |
0 |
0 |
T5 |
67012 |
832 |
0 |
0 |
T6 |
57211 |
832 |
0 |
0 |
T7 |
478717 |
0 |
0 |
0 |
T8 |
82759 |
832 |
0 |
0 |
T9 |
15624 |
832 |
0 |
0 |
T10 |
97822 |
832 |
0 |
0 |
T11 |
387905 |
3962 |
0 |
0 |
T12 |
184593 |
832 |
0 |
0 |
T13 |
132114 |
832 |
0 |
0 |
T14 |
0 |
2368 |
0 |
0 |
T15 |
0 |
2674 |
0 |
0 |
T17 |
0 |
5190 |
0 |
0 |
T26 |
0 |
181 |
0 |
0 |
T28 |
0 |
3306 |
0 |
0 |
T41 |
0 |
132 |
0 |
0 |
T42 |
0 |
3584 |
0 |
0 |
T43 |
0 |
2411 |
0 |
0 |
T46 |
0 |
8 |
0 |
0 |
gen_wmask[2].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
586610815 |
3333450 |
0 |
0 |
T4 |
2960 |
65 |
0 |
0 |
T5 |
67012 |
832 |
0 |
0 |
T6 |
57211 |
832 |
0 |
0 |
T7 |
478717 |
0 |
0 |
0 |
T8 |
82759 |
832 |
0 |
0 |
T9 |
15624 |
832 |
0 |
0 |
T10 |
97822 |
832 |
0 |
0 |
T11 |
387905 |
3962 |
0 |
0 |
T12 |
184593 |
832 |
0 |
0 |
T13 |
132114 |
832 |
0 |
0 |
T14 |
0 |
2368 |
0 |
0 |
T15 |
0 |
2674 |
0 |
0 |
T17 |
0 |
5190 |
0 |
0 |
T26 |
0 |
181 |
0 |
0 |
T28 |
0 |
3306 |
0 |
0 |
T41 |
0 |
132 |
0 |
0 |
T42 |
0 |
3584 |
0 |
0 |
T43 |
0 |
2411 |
0 |
0 |
T46 |
0 |
8 |
0 |
0 |
gen_wmask[3].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
586610815 |
3333450 |
0 |
0 |
T4 |
2960 |
65 |
0 |
0 |
T5 |
67012 |
832 |
0 |
0 |
T6 |
57211 |
832 |
0 |
0 |
T7 |
478717 |
0 |
0 |
0 |
T8 |
82759 |
832 |
0 |
0 |
T9 |
15624 |
832 |
0 |
0 |
T10 |
97822 |
832 |
0 |
0 |
T11 |
387905 |
3962 |
0 |
0 |
T12 |
184593 |
832 |
0 |
0 |
T13 |
132114 |
832 |
0 |
0 |
T14 |
0 |
2368 |
0 |
0 |
T15 |
0 |
2674 |
0 |
0 |
T17 |
0 |
5190 |
0 |
0 |
T26 |
0 |
181 |
0 |
0 |
T28 |
0 |
3306 |
0 |
0 |
T41 |
0 |
132 |
0 |
0 |
T42 |
0 |
3584 |
0 |
0 |
T43 |
0 |
2411 |
0 |
0 |
T46 |
0 |
8 |
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 | 11 | 100.00 |
CONT_ASSIGN | 45 | 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 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
ALWAYS | 66 | 4 | 4 | 100.00 |
ALWAYS | 77 | 2 | 2 | 100.00 |
44 logic unused_cfg;
45 1/1 assign unused_cfg = ^cfg_i;
Tests: T2
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: T4 T5 T6
68 1/1 if (a_wmask[i]) begin
Tests: T4 T5 T6
69 1/1 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <=
Tests: T4 T5 T6
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: T3 T4 T5
78 1/1 b_rdata_o <= mem[b_addr_i];
Tests: T4 T5 T8
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 |
T4,T5,T6 |
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 |
T4,T5,T8 |
0 |
Covered |
T3,T4,T5 |
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 |
435012153 |
2109488 |
0 |
0 |
T4 |
2169 |
1 |
0 |
0 |
T5 |
45620 |
832 |
0 |
0 |
T6 |
32159 |
832 |
0 |
0 |
T7 |
418369 |
0 |
0 |
0 |
T8 |
56192 |
832 |
0 |
0 |
T9 |
13544 |
832 |
0 |
0 |
T10 |
82696 |
832 |
0 |
0 |
T11 |
174372 |
1299 |
0 |
0 |
T12 |
39977 |
832 |
0 |
0 |
T13 |
115981 |
832 |
0 |
0 |
T14 |
0 |
2368 |
0 |
0 |
gen_wmask[1].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
435012153 |
2109488 |
0 |
0 |
T4 |
2169 |
1 |
0 |
0 |
T5 |
45620 |
832 |
0 |
0 |
T6 |
32159 |
832 |
0 |
0 |
T7 |
418369 |
0 |
0 |
0 |
T8 |
56192 |
832 |
0 |
0 |
T9 |
13544 |
832 |
0 |
0 |
T10 |
82696 |
832 |
0 |
0 |
T11 |
174372 |
1299 |
0 |
0 |
T12 |
39977 |
832 |
0 |
0 |
T13 |
115981 |
832 |
0 |
0 |
T14 |
0 |
2368 |
0 |
0 |
gen_wmask[2].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
435012153 |
2109488 |
0 |
0 |
T4 |
2169 |
1 |
0 |
0 |
T5 |
45620 |
832 |
0 |
0 |
T6 |
32159 |
832 |
0 |
0 |
T7 |
418369 |
0 |
0 |
0 |
T8 |
56192 |
832 |
0 |
0 |
T9 |
13544 |
832 |
0 |
0 |
T10 |
82696 |
832 |
0 |
0 |
T11 |
174372 |
1299 |
0 |
0 |
T12 |
39977 |
832 |
0 |
0 |
T13 |
115981 |
832 |
0 |
0 |
T14 |
0 |
2368 |
0 |
0 |
gen_wmask[3].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
435012153 |
2109488 |
0 |
0 |
T4 |
2169 |
1 |
0 |
0 |
T5 |
45620 |
832 |
0 |
0 |
T6 |
32159 |
832 |
0 |
0 |
T7 |
418369 |
0 |
0 |
0 |
T8 |
56192 |
832 |
0 |
0 |
T9 |
13544 |
832 |
0 |
0 |
T10 |
82696 |
832 |
0 |
0 |
T11 |
174372 |
1299 |
0 |
0 |
T12 |
39977 |
832 |
0 |
0 |
T13 |
115981 |
832 |
0 |
0 |
T14 |
0 |
2368 |
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 | 11 | 100.00 |
CONT_ASSIGN | 45 | 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 |
CONT_ASSIGN | 54 | 1 | 1 | 100.00 |
ALWAYS | 66 | 4 | 4 | 100.00 |
ALWAYS | 77 | 2 | 2 | 100.00 |
44 logic unused_cfg;
45 1/1 assign unused_cfg = ^cfg_i;
Tests: T2
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: T3 T4 T5
67 1/1 for (int i=0; i < MaskWidth; i = i + 1) begin
Tests: T4 T11 T15
68 1/1 if (a_wmask[i]) begin
Tests: T4 T11 T15
69 1/1 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <=
Tests: T4 T11 T15
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 T11 T15
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,T11,T15 |
0 |
Covered |
T3,T4,T5 |
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,T11,T15 |
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 |
151598662 |
1223962 |
0 |
0 |
T4 |
791 |
64 |
0 |
0 |
T5 |
21392 |
0 |
0 |
0 |
T6 |
25052 |
0 |
0 |
0 |
T7 |
60348 |
0 |
0 |
0 |
T8 |
26567 |
0 |
0 |
0 |
T9 |
2080 |
0 |
0 |
0 |
T10 |
15126 |
0 |
0 |
0 |
T11 |
213533 |
2663 |
0 |
0 |
T12 |
144616 |
0 |
0 |
0 |
T13 |
16133 |
0 |
0 |
0 |
T15 |
0 |
2674 |
0 |
0 |
T17 |
0 |
5190 |
0 |
0 |
T26 |
0 |
181 |
0 |
0 |
T28 |
0 |
3306 |
0 |
0 |
T41 |
0 |
132 |
0 |
0 |
T42 |
0 |
3584 |
0 |
0 |
T43 |
0 |
2411 |
0 |
0 |
T46 |
0 |
8 |
0 |
0 |
gen_wmask[1].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
151598662 |
1223962 |
0 |
0 |
T4 |
791 |
64 |
0 |
0 |
T5 |
21392 |
0 |
0 |
0 |
T6 |
25052 |
0 |
0 |
0 |
T7 |
60348 |
0 |
0 |
0 |
T8 |
26567 |
0 |
0 |
0 |
T9 |
2080 |
0 |
0 |
0 |
T10 |
15126 |
0 |
0 |
0 |
T11 |
213533 |
2663 |
0 |
0 |
T12 |
144616 |
0 |
0 |
0 |
T13 |
16133 |
0 |
0 |
0 |
T15 |
0 |
2674 |
0 |
0 |
T17 |
0 |
5190 |
0 |
0 |
T26 |
0 |
181 |
0 |
0 |
T28 |
0 |
3306 |
0 |
0 |
T41 |
0 |
132 |
0 |
0 |
T42 |
0 |
3584 |
0 |
0 |
T43 |
0 |
2411 |
0 |
0 |
T46 |
0 |
8 |
0 |
0 |
gen_wmask[2].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
151598662 |
1223962 |
0 |
0 |
T4 |
791 |
64 |
0 |
0 |
T5 |
21392 |
0 |
0 |
0 |
T6 |
25052 |
0 |
0 |
0 |
T7 |
60348 |
0 |
0 |
0 |
T8 |
26567 |
0 |
0 |
0 |
T9 |
2080 |
0 |
0 |
0 |
T10 |
15126 |
0 |
0 |
0 |
T11 |
213533 |
2663 |
0 |
0 |
T12 |
144616 |
0 |
0 |
0 |
T13 |
16133 |
0 |
0 |
0 |
T15 |
0 |
2674 |
0 |
0 |
T17 |
0 |
5190 |
0 |
0 |
T26 |
0 |
181 |
0 |
0 |
T28 |
0 |
3306 |
0 |
0 |
T41 |
0 |
132 |
0 |
0 |
T42 |
0 |
3584 |
0 |
0 |
T43 |
0 |
2411 |
0 |
0 |
T46 |
0 |
8 |
0 |
0 |
gen_wmask[3].MaskCheckPortA_A
Name | Attempts | Real Successes | Failures | Incomplete |
Total |
151598662 |
1223962 |
0 |
0 |
T4 |
791 |
64 |
0 |
0 |
T5 |
21392 |
0 |
0 |
0 |
T6 |
25052 |
0 |
0 |
0 |
T7 |
60348 |
0 |
0 |
0 |
T8 |
26567 |
0 |
0 |
0 |
T9 |
2080 |
0 |
0 |
0 |
T10 |
15126 |
0 |
0 |
0 |
T11 |
213533 |
2663 |
0 |
0 |
T12 |
144616 |
0 |
0 |
0 |
T13 |
16133 |
0 |
0 |
0 |
T15 |
0 |
2674 |
0 |
0 |
T17 |
0 |
5190 |
0 |
0 |
T26 |
0 |
181 |
0 |
0 |
T28 |
0 |
3306 |
0 |
0 |
T41 |
0 |
132 |
0 |
0 |
T42 |
0 |
3584 |
0 |
0 |
T43 |
0 |
2411 |
0 |
0 |
T46 |
0 |
8 |
0 |
0 |