From 4a2f6413486368e8a78949cdf26095bc408e7816 Mon Sep 17 00:00:00 2001 From: David Harris Date: Fri, 7 Apr 2023 21:56:49 -0700 Subject: [PATCH] Waived coverage on BTB memory with byte write enables tied high --- src/generic/mem/ram2p1r1wbe.sv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/generic/mem/ram2p1r1wbe.sv b/src/generic/mem/ram2p1r1wbe.sv index 4c72095b..51e2871b 100644 --- a/src/generic/mem/ram2p1r1wbe.sv +++ b/src/generic/mem/ram2p1r1wbe.sv @@ -122,11 +122,14 @@ module ram2p1r1wbe #(parameter DEPTH=1024, WIDTH=68) ( if(ce1) rd1 <= #1 mem[ra1]; */ // Write divided into part for bytes and part for extra msbs + // coverage off + // when byte write enables are tied high, the last IF is always taken if(WIDTH >= 8) always @(posedge clk) if (ce2 & we2) for(i = 0; i < WIDTH/8; i++) if(bwe2[i]) mem[wa2][i*8 +: 8] <= #1 wd2[i*8 +: 8]; + // coverage on if (WIDTH%8 != 0) // handle msbs if width not a multiple of 8 always @(posedge clk)