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



Module Instance : tb.dut.u_spid_dpram.gen_ram1r1w.u_sys2spi_mem.u_mem.gen_generic.u_impl_generic

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
u_mem


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
no children



Module Instance : tb.dut.u_spid_dpram.gen_ram1r1w.u_spi2sys_mem.u_mem.gen_generic.u_impl_generic

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
u_mem


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
no children

Line Coverage for Module : prim_generic_ram_1r1w
Line No.TotalCoveredPercent
TOTAL1111100.00
CONT_ASSIGN4511100.00
CONT_ASSIGN5411100.00
CONT_ASSIGN5411100.00
CONT_ASSIGN5411100.00
CONT_ASSIGN5411100.00
ALWAYS6644100.00
ALWAYS7722100.00

44 logic unused_cfg; 45 1/1 assign unused_cfg = ^cfg_i; Tests: T1  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: T3 T6 T9  68 1/1 if (a_wmask[i]) begin Tests: T3 T6 T9  69 1/1 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <= Tests: T3 T6 T9  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: T3 T6 T9  79 end MISSING_ELSE

Branch Coverage for Module : prim_generic_ram_1r1w
Line No.TotalCoveredPercent
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-StatusTests
1 Covered T3,T6,T9
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-StatusTests
1 Covered T3,T6,T9
0 Covered T1,T2,T3


Assert Coverage for Module : prim_generic_ram_1r1w
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 4 4 100.00 4 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 4 4 100.00 4 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
gen_wmask[0].MaskCheckPortA_A 638519808 3369020 0 0
gen_wmask[1].MaskCheckPortA_A 638519808 3369020 0 0
gen_wmask[2].MaskCheckPortA_A 638519808 3369020 0 0
gen_wmask[3].MaskCheckPortA_A 638519808 3369020 0 0


gen_wmask[0].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 638519808 3369020 0 0
T3 463556 832 0 0
T4 999 0 0 0
T5 3420 0 0 0
T6 298837 2206 0 0
T7 52415 0 0 0
T8 1281 0 0 0
T9 364894 3575 0 0
T10 917 0 0 0
T11 1162 0 0 0
T12 7532 0 0 0
T13 4208 832 0 0
T14 864 0 0 0
T15 13132 834 0 0
T16 20820 832 0 0
T17 4176 832 0 0
T18 15134 1856 0 0
T19 0 832 0 0
T20 0 832 0 0
T23 0 2010 0 0
T26 52526 0 0 0
T29 0 74 0 0
T45 0 143 0 0
T46 0 2429 0 0
T47 0 2804 0 0
T48 0 3367 0 0
T57 0 2 0 0

gen_wmask[1].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 638519808 3369020 0 0
T3 463556 832 0 0
T4 999 0 0 0
T5 3420 0 0 0
T6 298837 2206 0 0
T7 52415 0 0 0
T8 1281 0 0 0
T9 364894 3575 0 0
T10 917 0 0 0
T11 1162 0 0 0
T12 7532 0 0 0
T13 4208 832 0 0
T14 864 0 0 0
T15 13132 834 0 0
T16 20820 832 0 0
T17 4176 832 0 0
T18 15134 1856 0 0
T19 0 832 0 0
T20 0 832 0 0
T23 0 2010 0 0
T26 52526 0 0 0
T29 0 74 0 0
T45 0 143 0 0
T46 0 2429 0 0
T47 0 2804 0 0
T48 0 3367 0 0
T57 0 2 0 0

gen_wmask[2].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 638519808 3369020 0 0
T3 463556 832 0 0
T4 999 0 0 0
T5 3420 0 0 0
T6 298837 2206 0 0
T7 52415 0 0 0
T8 1281 0 0 0
T9 364894 3575 0 0
T10 917 0 0 0
T11 1162 0 0 0
T12 7532 0 0 0
T13 4208 832 0 0
T14 864 0 0 0
T15 13132 834 0 0
T16 20820 832 0 0
T17 4176 832 0 0
T18 15134 1856 0 0
T19 0 832 0 0
T20 0 832 0 0
T23 0 2010 0 0
T26 52526 0 0 0
T29 0 74 0 0
T45 0 143 0 0
T46 0 2429 0 0
T47 0 2804 0 0
T48 0 3367 0 0
T57 0 2 0 0

gen_wmask[3].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 638519808 3369020 0 0
T3 463556 832 0 0
T4 999 0 0 0
T5 3420 0 0 0
T6 298837 2206 0 0
T7 52415 0 0 0
T8 1281 0 0 0
T9 364894 3575 0 0
T10 917 0 0 0
T11 1162 0 0 0
T12 7532 0 0 0
T13 4208 832 0 0
T14 864 0 0 0
T15 13132 834 0 0
T16 20820 832 0 0
T17 4176 832 0 0
T18 15134 1856 0 0
T19 0 832 0 0
T20 0 832 0 0
T23 0 2010 0 0
T26 52526 0 0 0
T29 0 74 0 0
T45 0 143 0 0
T46 0 2429 0 0
T47 0 2804 0 0
T48 0 3367 0 0
T57 0 2 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.TotalCoveredPercent
TOTAL1111100.00
CONT_ASSIGN4511100.00
CONT_ASSIGN5411100.00
CONT_ASSIGN5411100.00
CONT_ASSIGN5411100.00
CONT_ASSIGN5411100.00
ALWAYS6644100.00
ALWAYS7722100.00

44 logic unused_cfg; 45 1/1 assign unused_cfg = ^cfg_i; Tests: T1  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: T3 T6 T9  68 1/1 if (a_wmask[i]) begin Tests: T3 T6 T9  69 1/1 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <= Tests: T3 T6 T9  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 T5 T6  78 1/1 b_rdata_o <= mem[b_addr_i]; Tests: T3 T6 T9  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.TotalCoveredPercent
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-StatusTests
1 Covered T3,T6,T9
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-StatusTests
1 Covered T3,T6,T9
0 Covered T3,T5,T6


Assert Coverage for Instance : tb.dut.u_spid_dpram.gen_ram1r1w.u_sys2spi_mem.u_mem.gen_generic.u_impl_generic
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 4 4 100.00 4 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 4 4 100.00 4 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
gen_wmask[0].MaskCheckPortA_A 488392848 2123791 0 0
gen_wmask[1].MaskCheckPortA_A 488392848 2123791 0 0
gen_wmask[2].MaskCheckPortA_A 488392848 2123791 0 0
gen_wmask[3].MaskCheckPortA_A 488392848 2123791 0 0


gen_wmask[0].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 488392848 2123791 0 0
T3 463556 832 0 0
T4 999 0 0 0
T5 3420 0 0 0
T6 239225 809 0 0
T7 30356 0 0 0
T8 1281 0 0 0
T9 273011 1094 0 0
T10 917 0 0 0
T11 1162 0 0 0
T12 7532 0 0 0
T13 0 832 0 0
T15 0 832 0 0
T16 0 832 0 0
T17 0 832 0 0
T18 0 1856 0 0
T19 0 832 0 0
T20 0 832 0 0

gen_wmask[1].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 488392848 2123791 0 0
T3 463556 832 0 0
T4 999 0 0 0
T5 3420 0 0 0
T6 239225 809 0 0
T7 30356 0 0 0
T8 1281 0 0 0
T9 273011 1094 0 0
T10 917 0 0 0
T11 1162 0 0 0
T12 7532 0 0 0
T13 0 832 0 0
T15 0 832 0 0
T16 0 832 0 0
T17 0 832 0 0
T18 0 1856 0 0
T19 0 832 0 0
T20 0 832 0 0

gen_wmask[2].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 488392848 2123791 0 0
T3 463556 832 0 0
T4 999 0 0 0
T5 3420 0 0 0
T6 239225 809 0 0
T7 30356 0 0 0
T8 1281 0 0 0
T9 273011 1094 0 0
T10 917 0 0 0
T11 1162 0 0 0
T12 7532 0 0 0
T13 0 832 0 0
T15 0 832 0 0
T16 0 832 0 0
T17 0 832 0 0
T18 0 1856 0 0
T19 0 832 0 0
T20 0 832 0 0

gen_wmask[3].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 488392848 2123791 0 0
T3 463556 832 0 0
T4 999 0 0 0
T5 3420 0 0 0
T6 239225 809 0 0
T7 30356 0 0 0
T8 1281 0 0 0
T9 273011 1094 0 0
T10 917 0 0 0
T11 1162 0 0 0
T12 7532 0 0 0
T13 0 832 0 0
T15 0 832 0 0
T16 0 832 0 0
T17 0 832 0 0
T18 0 1856 0 0
T19 0 832 0 0
T20 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.TotalCoveredPercent
TOTAL1111100.00
CONT_ASSIGN4511100.00
CONT_ASSIGN5411100.00
CONT_ASSIGN5411100.00
CONT_ASSIGN5411100.00
CONT_ASSIGN5411100.00
ALWAYS6644100.00
ALWAYS7722100.00

44 logic unused_cfg; 45 1/1 assign unused_cfg = ^cfg_i; Tests: T1  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 T5 T6  67 1/1 for (int i=0; i < MaskWidth; i = i + 1) begin Tests: T6 T9 T15  68 1/1 if (a_wmask[i]) begin Tests: T6 T9 T15  69 1/1 mem[a_addr_i][i*DataBitsPerMask +: DataBitsPerMask] <= Tests: T6 T9 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: T6 T9 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.TotalCoveredPercent
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-StatusTests
1 Covered T6,T9,T15
0 Covered T3,T5,T6


77 if (b_req_i) begin -1- 78 b_rdata_o <= mem[b_addr_i]; ==> 79 end MISSING_ELSE ==>

Branches:
-1-StatusTests
1 Covered T6,T9,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
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 4 4 100.00 4 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 4 4 100.00 4 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
gen_wmask[0].MaskCheckPortA_A 150126960 1245229 0 0
gen_wmask[1].MaskCheckPortA_A 150126960 1245229 0 0
gen_wmask[2].MaskCheckPortA_A 150126960 1245229 0 0
gen_wmask[3].MaskCheckPortA_A 150126960 1245229 0 0


gen_wmask[0].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150126960 1245229 0 0
T6 59612 1397 0 0
T7 22059 0 0 0
T9 91883 2481 0 0
T13 4208 0 0 0
T14 864 0 0 0
T15 13132 2 0 0
T16 20820 0 0 0
T17 4176 0 0 0
T18 15134 0 0 0
T23 0 2010 0 0
T26 52526 0 0 0
T29 0 74 0 0
T45 0 143 0 0
T46 0 2429 0 0
T47 0 2804 0 0
T48 0 3367 0 0
T57 0 2 0 0

gen_wmask[1].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150126960 1245229 0 0
T6 59612 1397 0 0
T7 22059 0 0 0
T9 91883 2481 0 0
T13 4208 0 0 0
T14 864 0 0 0
T15 13132 2 0 0
T16 20820 0 0 0
T17 4176 0 0 0
T18 15134 0 0 0
T23 0 2010 0 0
T26 52526 0 0 0
T29 0 74 0 0
T45 0 143 0 0
T46 0 2429 0 0
T47 0 2804 0 0
T48 0 3367 0 0
T57 0 2 0 0

gen_wmask[2].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150126960 1245229 0 0
T6 59612 1397 0 0
T7 22059 0 0 0
T9 91883 2481 0 0
T13 4208 0 0 0
T14 864 0 0 0
T15 13132 2 0 0
T16 20820 0 0 0
T17 4176 0 0 0
T18 15134 0 0 0
T23 0 2010 0 0
T26 52526 0 0 0
T29 0 74 0 0
T45 0 143 0 0
T46 0 2429 0 0
T47 0 2804 0 0
T48 0 3367 0 0
T57 0 2 0 0

gen_wmask[3].MaskCheckPortA_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 150126960 1245229 0 0
T6 59612 1397 0 0
T7 22059 0 0 0
T9 91883 2481 0 0
T13 4208 0 0 0
T14 864 0 0 0
T15 13132 2 0 0
T16 20820 0 0 0
T17 4176 0 0 0
T18 15134 0 0 0
T23 0 2010 0 0
T26 52526 0 0 0
T29 0 74 0 0
T45 0 143 0 0
T46 0 2429 0 0
T47 0 2804 0 0
T48 0 3367 0 0
T57 0 2 0 0

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