From 436ba397ce7f54f0d5848553dca2274ff303a373 Mon Sep 17 00:00:00 2001 From: David Harris Date: Wed, 31 May 2023 06:30:21 -0700 Subject: [PATCH 1/3] Support all testfloat tests with parameterized design --- testbench/testbench-fp.sv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testbench/testbench-fp.sv b/testbench/testbench-fp.sv index 497557f58..aaf280626 100644 --- a/testbench/testbench-fp.sv +++ b/testbench/testbench-fp.sv @@ -679,7 +679,7 @@ module testbenchfp; // instantiate devices under test if (TEST === "fma"| TEST === "mul" | TEST === "add" | TEST === "sub" | TEST === "all") begin : fma - fma fma(.Xs(Xs), .Ys(Ys), .Zs(Zs), + fma #(P) fma(.Xs(Xs), .Ys(Ys), .Zs(Zs), .Xe(Xe), .Ye(Ye), .Ze(Ze), .Xm(Xm), .Ym(Ym), .Zm(Zm), .XZero, .YZero, .ZZero, .Ss, .Se, @@ -699,13 +699,13 @@ module testbenchfp; .PostProcFlg(Flg), .PostProcRes(FpRes), .FCvtIntRes(IntRes)); if (TEST === "cvtfp" | TEST === "cvtint" | TEST === "all") begin : fcvt - fcvt fcvt (.Xs(Xs), .Xe(Xe), .Xm(Xm), .Int(SrcA), .ToInt(WriteIntVal), + fcvt #(P) fcvt (.Xs(Xs), .Xe(Xe), .Xm(Xm), .Int(SrcA), .ToInt(WriteIntVal), .XZero(XZero), .OpCtrl(OpCtrlVal), .IntZero, .Fmt(ModFmt), .Ce(CvtCalcExpE), .ShiftAmt(CvtShiftAmtE), .ResSubnormUf(CvtResSubnormUfE), .Cs(CvtResSgnE), .LzcIn(CvtLzcInE)); end if (TEST === "cmp" | TEST === "all") begin: fcmp - fcmp fcmp (.Fmt(ModFmt), .OpCtrl(OpCtrlVal), .Xs, .Ys, .Xe, .Ye, + fcmp #(P) fcmp (.Fmt(ModFmt), .OpCtrl(OpCtrlVal), .Xs, .Ys, .Xe, .Ye, .Xm, .Ym, .XZero, .YZero, .CmpIntRes(CmpRes), .XNaN, .YNaN, .XSNaN, .YSNaN, .X, .Y, .CmpNV(CmpFlg[4]), .CmpFpRes(FpCmpRes)); end From c1e7332abfd4bff1a37605a299b1048dcc2862bd Mon Sep 17 00:00:00 2001 From: David Harris Date: Wed, 31 May 2023 06:30:41 -0700 Subject: [PATCH 2/3] Fixed paths in creating division test vectors --- tests/fp/create_all_vectors.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fp/create_all_vectors.sh b/tests/fp/create_all_vectors.sh index e338d4789..bbade6d11 100755 --- a/tests/fp/create_all_vectors.sh +++ b/tests/fp/create_all_vectors.sh @@ -1,8 +1,8 @@ #!/bin/sh mkdir -p vectors -#./create_vectors.sh -#./remove_spaces.sh +./create_vectors.sh +./remove_spaces.sh # to create tvs for evaluation of combined IFdivsqrt -./combined_IF_vectors/create_IF_vectors.sh \ No newline at end of file +cd combined_IF_vectors; ./create_IF_vectors.sh \ No newline at end of file From 753ec9a11c35ee32ed2ab20b4fc64098ba7b6149 Mon Sep 17 00:00:00 2001 From: David Harris Date: Tue, 6 Jun 2023 08:46:44 -0700 Subject: [PATCH 3/3] Modified benchmarks/coremark/Makefile to clean addins/coremark as well --- benchmarks/coremark/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/benchmarks/coremark/Makefile b/benchmarks/coremark/Makefile index 7b30dcd3e..4295b5584 100644 --- a/benchmarks/coremark/Makefile +++ b/benchmarks/coremark/Makefile @@ -40,6 +40,7 @@ $(work_dir)/coremark.bare.riscv: $(sources) Makefile .PHONY: clean clean: + make -C $(cmbase) clean rm -f $(work_dir)/*