Skip to content

Commit db33047

Browse files
committed
[ci] output urg report in vcs flow
1 parent 035908b commit db33047

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
ref: ${{ github.event.pull_request.head.sha }}
5757
- name: "Run VCS"
5858
run: |
59-
nix build '.#gcd.vcs.tests.simple-sim' --impure -L
59+
nix build '.#gcd.vcs.tests.simple-sim' --impure -L && $(exit $(cat result/urgReport/asserts.txt))
6060
6161
run-verilator:
6262
name: "Run Verilator"

templates/chisel/nix/gcd/vcs.nix

+3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@ stdenv.mkDerivation (finalAttr: {
6969
export DATA_ONLY=1
7070
${finalAttr.finalPackage}/bin/${binName}
7171
72+
${vcs-fhs-env}/bin/vcs-fhs-env -c "urg -dir "$GCD_SIM_RESULT_DIR"/result/${coverageName} -format text"
73+
7274
mkdir -p "$out"
7375
cp -vr "$GCD_SIM_RESULT_DIR"/result/* "$out/"
76+
cp -vr ./urgReport "$out/"
7477
'';
7578
};
7679

0 commit comments

Comments
 (0)