From 21fc171e607f37a9ca5e6eb5f236fb4fae3595f6 Mon Sep 17 00:00:00 2001 From: Clo91eaf Date: Fri, 17 Jan 2025 01:27:12 +0800 Subject: [PATCH] [nix] Fix the cover type reference by using emulator.coverType Signed-off-by: Clo91eaf --- nix/t1/run/run-vcs-emu.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nix/t1/run/run-vcs-emu.nix b/nix/t1/run/run-vcs-emu.nix index 19f9652977..c9c3a1d990 100644 --- a/nix/t1/run/run-vcs-emu.nix +++ b/nix/t1/run/run-vcs-emu.nix @@ -20,7 +20,6 @@ stdenvNoCC.mkDerivation (rec { name = "${testCase.pname}-vcs-result" + (lib.optionalString emulator.enableTrace "-trace"); nativeBuildInputs = [ zstd jq python3 ]; __noChroot = true; - coverType = "line+cond+fsm+tgl+branch+assert"; passthru = { caseName = testCase.pname; @@ -50,7 +49,7 @@ stdenvNoCC.mkDerivation (rec { ] ++ lib.optionals emulator.enableCover [ "-cm" - "${coverType}" + "${emulator.coverType}" "-assert" "hier=${testCase}/${testCase.pname}.cover" ] @@ -135,7 +134,7 @@ stdenvNoCC.mkDerivation (rec { fi ${lib.optionalString emulator.enableCover '' - ${snps-fhs-env}/bin/snps-fhs-env -c "urg -dir cm.vdb -format text -metric ${coverType} -show summary" + ${snps-fhs-env}/bin/snps-fhs-env -c "urg -dir cm.vdb -format text -metric ${emulator.coverType} -show summary" # TODO: add a flag to specify 'vdb only generated in ci mode' cp -vr cm.vdb $out/ cp -vr urgReport $out/