-
Notifications
You must be signed in to change notification settings - Fork 12
75 lines (69 loc) · 2.21 KB
/
hw_dv.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: HW Design Verification
on: push
jobs:
changes:
uses: ./.github/workflows/filter.yaml
rtl-simulations-icarus:
needs: changes
if: ${{ needs.changes.outputs.hardware == 'true' }}
runs-on: ubuntu-latest
container:
image: ghcr.io/joennlae/halutmatmul-conda-hw:latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
- name: Simulate and run DV with icarus for subunits
run: |
source /venv/bin/activate
cd hardware
RESULT=0
make test-scm
RESULT=$(($RESULT + $?))
ACC_TYPE=FP32 make test-fp-adder
RESULT=$(($RESULT + $?))
ACC_TYPE=FP32 make test-fp-16-to-32-convert
RESULT=$(($RESULT + $?))
ACC_TYPE=FP32 make test-fp-16-32-adder
RESULT=$(($RESULT + $?))
ACC_TYPE=FP32 make test-fp-16-comparision
RESULT=$(($RESULT + $?))
make test-halut-encoder
RESULT=$(($RESULT + $?))
make test-halut-decoder
RESULT=$(($RESULT + $?))
make test-halut-encoder-4
RESULT=$(($RESULT + $?))
make test-halut-decoder-x
RESULT=$(($RESULT + $?))
ACC_TYPE=INT DATA_WIDTH=8 make test-mixed-int-adder
RESULT=$(($RESULT + $?))
echo "Exit Code: $RESULT"
exit $RESULT
rtl-simulations-icarus-large:
needs: changes
if: ${{ needs.changes.outputs.hardware == 'true' }}
runs-on: ubuntu-latest
container:
image: ghcr.io/joennlae/halutmatmul-conda-hw:latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
- name: Simulate and run DV with icarus for top level
run: |
source /venv/bin/activate
cd hardware
RESULT=0
make test-halut-matmul
RESULT=$(($RESULT + $?))
NUM_C=16 NUM_DECODER_UNITS=4 make test-halut-matmul
RESULT=$(($RESULT + $?))
NUM_C=32 NUM_DECODER_UNITS=4 make test-halut-matmul
RESULT=$(($RESULT + $?))
DATA_WIDTH=8 ACC_TYPE=INT make test-halut-matmul
RESULT=$(($RESULT + $?))
echo "Exit Code: $RESULT"
exit $RESULT