Skip to content

Commit

Permalink
[nix] Fix the cover type reference by using emulator.coverType
Browse files Browse the repository at this point in the history
Signed-off-by: Clo91eaf <[email protected]>
  • Loading branch information
Clo91eaf committed Jan 16, 2025
1 parent 9546c44 commit 21fc171
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nix/t1/run/run-vcs-emu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -50,7 +49,7 @@ stdenvNoCC.mkDerivation (rec {
]
++ lib.optionals emulator.enableCover [
"-cm"
"${coverType}"
"${emulator.coverType}"
"-assert"
"hier=${testCase}/${testCase.pname}.cover"
]
Expand Down Expand Up @@ -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/
Expand Down

0 comments on commit 21fc171

Please sign in to comment.