Skip to content

Commit

Permalink
[ci] output urg report in vcs flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf committed Oct 6, 2024
1 parent e87063a commit 91f1478
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- name: "Run VCS"
run: |
nix build '.#gcd.vcs.tests.simple-sim' --impure -L
nix build '.#gcd.vcs.tests.simple-sim' --impure -L && cat result/urgReport/asserts.txt
run-verilator:
name: "Run Verilator"
Expand Down
5 changes: 4 additions & 1 deletion templates/chisel/nix/gcd/vcs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ stdenv.mkDerivation (finalAttr: {
} \
${
lib.optionalString enableCover ''
-cm line+cond+fsm+tgl+branch+assert \
-cm assert \
-cm_dir ${coverageName} ''
} \
-file filelist.f \
Expand All @@ -69,8 +69,11 @@ stdenv.mkDerivation (finalAttr: {
export DATA_ONLY=1
${finalAttr.finalPackage}/bin/${binName}
${vcs-fhs-env}/bin/vcs-fhs-env -c "urg -dir "$GCD_SIM_RESULT_DIR"/result/${coverageName} -format text"
mkdir -p "$out"
cp -vr "$GCD_SIM_RESULT_DIR"/result/* "$out/"
cp -vr ./urgReport "$out/"
'';
};

Expand Down

0 comments on commit 91f1478

Please sign in to comment.