From 83e13cef46d087174a508c396cee0a638ee9dffd Mon Sep 17 00:00:00 2001 From: David Harris Date: Thu, 23 Mar 2023 17:25:27 -0700 Subject: [PATCH] 100% IEU coverage --- sim/coverage-exclusions-rv64gc.do | 19 +++++++++++++++---- tests/coverage/ieu.S | 2 ++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/sim/coverage-exclusions-rv64gc.do b/sim/coverage-exclusions-rv64gc.do index 8f79b7d5..9905c897 100644 --- a/sim/coverage-exclusions-rv64gc.do +++ b/sim/coverage-exclusions-rv64gc.do @@ -24,11 +24,22 @@ #// and limitations under the License. #//////////////////////////////////////////////////////////////////////////////////////////////// +# LZA (i<64) statement confuses coverage tool +# This is ugly to exlcude the whole file - is there a better option +coverage exclude -srcfile lzc.sv + + +###################### +# Toggle exclusions +# Not used because toggle coverage isn't measured +###################### + # Exclude DivBusyE from all design units because rv64gc uses the fdivsqrt unit for integer division -coverage exclude -togglenode DivBusyE -du * +#coverage exclude -togglenode DivBusyE -du * # Exclude QuotM and RemM from MDU because rv64gc uses the fdivsqrt rather tha div unit for integer division -coverage exclude -togglenode /dut/core/mdu/mdu/QuotM -coverage exclude -togglenode /dut/core/mdu/mdu/RemM +#coverage exclude -togglenode /dut/core/mdu/mdu/QuotM +#coverage exclude -togglenode /dut/core/mdu/mdu/RemM # StallFCause is hardwired to 0 -coverage exclude -togglenode /dut/core/hzu/StallFCause +#coverage exclude -togglenode /dut/core/hzu/StallFCause + diff --git a/tests/coverage/ieu.S b/tests/coverage/ieu.S index 8467f2d4..e1b23937 100644 --- a/tests/coverage/ieu.S +++ b/tests/coverage/ieu.S @@ -33,6 +33,8 @@ main: clz t1, t0 li t0, -1 clz t1, t0 + li t0, 1 + clz t1, t0 # Test forwarding from store conditional lr.w t0, 0(a0)