@@ -18,23 +18,38 @@ jobs:
18
18
make setup
19
19
- name : Run RTL Verification
20
20
env :
21
- COCOTB_ARGS : " --CI -verbosity debug"
21
+ COCOTB_ARGS : " --CI -verbosity debug -tag CI "
22
22
run : |
23
23
make cocotb-verify-all-rtl
24
+ - name : Check RTL Verification Results
25
+ run : |
26
+ simv="$GITHUB_WORKSPACE/verilog/dv/cocotb/sim/CI/*-compilation/simv"
27
+ if [ -f $simv ]; then
28
+ echo 'File exists.'
29
+ else
30
+ echo "Error: file $simv not found"
31
+ echo "Error: compilation failed"
32
+ exit -1
33
+ fi
34
+ cat "$GITHUB_WORKSPACE/verilog/dv/cocotb/sim/CI/runs.log"
35
+ summary=$(cat "$GITHUB_WORKSPACE/verilog/dv/cocotb/sim/CI/runs.log" | tail -n 1)
36
+ echo "# RTL Simulation Result: $summary" >> $GITHUB_STEP_SUMMARY
37
+ cnt=$(grep -c "failed" "$GITHUB_WORKSPACE/verilog/dv/cocotb/sim/CI/runs.log")
38
+ if [[ $cnt -ne 1 ]]; then exit 1; fi
24
39
- name : Debug
25
40
if : always()
26
41
run : |
27
42
cat ./verilog/dv/cocotb/sim/*/*/*.log
28
- - name : Install nix
29
- run : |
30
- curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm --extra-conf "
31
- extra-substituters = https://openlane.cachix.org
32
- extra-trusted-public-keys = openlane.cachix.org-1:qqdwh+QMNGmZAuyeQJTH9ErW57OWSvdtuwfBKdS254E=
33
- "
34
- - name : Run OpenLane
35
- run : make user_project_wrapper
36
- - name : Run RTL Verification
37
- env :
38
- COCOTB_ARGS : " --CI -verbosity debug"
39
- run : |
40
- make cocotb-verify-all-gl
43
+ # - name: Install nix
44
+ # run: |
45
+ # curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm --extra-conf "
46
+ # extra-substituters = https://openlane.cachix.org
47
+ # extra-trusted-public-keys = openlane.cachix.org-1:qqdwh+QMNGmZAuyeQJTH9ErW57OWSvdtuwfBKdS254E=
48
+ # "
49
+ # - name: Run OpenLane
50
+ # run: make user_project_wrapper
51
+ # - name: Run RTL Verification
52
+ # env:
53
+ # COCOTB_ARGS: "--CI -verbosity debug -tag CI "
54
+ # run: |
55
+ # make cocotb-verify-all-gl
0 commit comments