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



Module Instance : tb.dut.gen_no_stubbed_memory.u_memory_1p.u_mem.gen_generic.u_impl_generic

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
95.24 85.71 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
95.24 85.71 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
u_mem


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
no children


Since this is the module's only instance, the coverage report is the same as for the module.
Line Coverage for Module : prim_generic_ram_1p
Line No.TotalCoveredPercent
TOTAL7685.71
CONT_ASSIGN42100.00
CONT_ASSIGN5200
CONT_ASSIGN5200
CONT_ASSIGN5200
CONT_ASSIGN5200
ALWAYS6366100.00

41 logic unused_cfg; 42 0/1 ==> assign unused_cfg = ^cfg_i; 43 44 // Width of internal write mask. Note wmask_i input into the module is always assumed 45 // to be the full bit mask 46 localparam int MaskWidth = Width / DataBitsPerMask; 47 48 logic [Width-1:0] mem [Depth]; 49 logic [MaskWidth-1:0] wmask; 50 51 for (genvar k = 0; k < MaskWidth; k++) begin : gen_wmask 52 unreachable assign wmask[k] = &wmask_i[k*DataBitsPerMask +: DataBitsPerMask]; 53 54 // Ensure that all mask bits within a group have the same value for a write 55 `ASSERT(MaskCheck_A, req_i && write_i |-> 56 wmask_i[k*DataBitsPerMask +: DataBitsPerMask] inside {{DataBitsPerMask{1'b1}}, '0}, 57 clk_i, '0) 58 end 59 60 // using always instead of always_ff to avoid 'ICPD - illegal combination of drivers' error 61 // thrown when using $readmemh system task to backdoor load an image 62 always @(posedge clk_i) begin 63 1/1 if (req_i) begin Tests: T1 T2 T3  64 1/1 if (write_i) begin Tests: T1 T28 T29  65 1/1 for (int i=0; i < MaskWidth; i = i + 1) begin Tests: T1 T28 T29  66 1/1 if (wmask[i]) begin Tests: T1 T28 T29  67 1/1 mem[addr_i][i*DataBitsPerMask +: DataBitsPerMask] <= Tests: T1 T28 T29  68 wdata_i[i*DataBitsPerMask +: DataBitsPerMask]; 69 end ==> MISSING_ELSE 70 end 71 end else begin 72 1/1 rdata_o <= mem[addr_i]; Tests: T28 T29 T30  73 end 74 end MISSING_ELSE

Branch Coverage for Module : prim_generic_ram_1p
Line No.TotalCoveredPercent
Branches 3 3 100.00
IF 63 3 3 100.00


63 if (req_i) begin -1- 64 if (write_i) begin -2- 65 for (int i=0; i < MaskWidth; i = i + 1) begin ==> 66 if (wmask[i]) begin 67 mem[addr_i][i*DataBitsPerMask +: DataBitsPerMask] <= 68 wdata_i[i*DataBitsPerMask +: DataBitsPerMask]; 69 end 70 end 71 end else begin 72 rdata_o <= mem[addr_i]; ==> 73 end 74 end MISSING_ELSE ==>

Branches:
-1--2-StatusTests
1 1 Covered T1,T28,T29
1 0 Covered T28,T29,T30
0 - Covered T1,T2,T3


Assert Coverage for Module : prim_generic_ram_1p
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 5 5 100.00 5 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 5 5 100.00 5 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
DataBitsPerMaskCheck_A 3670 3670 0 0
gen_wmask[0].MaskCheck_A 580384169 997865 0 0
gen_wmask[1].MaskCheck_A 580384169 997865 0 0
gen_wmask[2].MaskCheck_A 580384169 997865 0 0
gen_wmask[3].MaskCheck_A 580384169 997865 0 0


DataBitsPerMaskCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
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

gen_wmask[0].MaskCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 580384169 997865 0 0
T1 7293 3 0 0
T2 7698 0 0 0
T3 6346 0 0 0
T28 8471 3 0 0
T29 21708 73 0 0
T30 38925 88 0 0
T31 7561 6 0 0
T32 48746 133 0 0
T34 0 82 0 0
T35 0 7 0 0
T41 7600 0 0 0
T42 1581 0 0 0
T87 0 14 0 0
T88 0 8 0 0

gen_wmask[1].MaskCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 580384169 997865 0 0
T1 7293 3 0 0
T2 7698 0 0 0
T3 6346 0 0 0
T28 8471 3 0 0
T29 21708 73 0 0
T30 38925 88 0 0
T31 7561 6 0 0
T32 48746 133 0 0
T34 0 82 0 0
T35 0 7 0 0
T41 7600 0 0 0
T42 1581 0 0 0
T87 0 14 0 0
T88 0 8 0 0

gen_wmask[2].MaskCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 580384169 997865 0 0
T1 7293 3 0 0
T2 7698 0 0 0
T3 6346 0 0 0
T28 8471 3 0 0
T29 21708 73 0 0
T30 38925 88 0 0
T31 7561 6 0 0
T32 48746 133 0 0
T34 0 82 0 0
T35 0 7 0 0
T41 7600 0 0 0
T42 1581 0 0 0
T87 0 14 0 0
T88 0 8 0 0

gen_wmask[3].MaskCheck_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 580384169 997865 0 0
T1 7293 3 0 0
T2 7698 0 0 0
T3 6346 0 0 0
T28 8471 3 0 0
T29 21708 73 0 0
T30 38925 88 0 0
T31 7561 6 0 0
T32 48746 133 0 0
T34 0 82 0 0
T35 0 7 0 0
T41 7600 0 0 0
T42 1581 0 0 0
T87 0 14 0 0
T88 0 8 0 0

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