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 ee83c45 commit a85c76a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
3 changes: 3 additions & 0 deletions templates/chisel/nix/gcd/vcs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 a85c76a

Please sign in to comment.