Skip to content

Commit 2836a75

Browse files
committed
Change: Split CI synthesis in two AXI4 and AXI4-lite jobs
1 parent 755cd38 commit 2836a75

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@ jobs:
77
- uses: actions/checkout@v2
88
- run: git submodule update --init --recursive
99
- run: ./flow.sh lint
10-
Synthesis:
10+
Synthesis-AXI4:
1111
runs-on: macos-latest
1212
steps:
1313
- uses: actions/checkout@v2
1414
- run: git submodule update --init --recursive
15-
- run: ./flow.sh syn
15+
- run: ./flow.sh syn axi4
16+
Synthesis-AXI4-lite:
17+
runs-on: macos-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- run: git submodule update --init --recursive
21+
- run: ./flow.sh syn axi4lite
1622
Simulation-AXI4:
1723
runs-on: macos-latest
1824
steps:

flow.sh

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# -u: treat unset variable as an error
55
# -f: disable filename expansion upon seeing *, ?, ...
66
# -o pipefail: causes a pipeline to fail if any command fails
7-
set -eu -o pipefail
7+
set -e -o pipefail
88

99
#-------------------------------------------------------------
1010
# Get current script path (applicable even if is a symlink)
@@ -181,13 +181,20 @@ main() {
181181
if [[ $1 == "syn" ]]; then
182182
install_yosys
183183
printinfo "Start synthesis flow"
184+
ret=0
184185
cd "$DIR/syn/yosys"
186+
185187
# AXI4 synthesis
186-
./syn_asic.sh axicb_axi4.ys | tee axi4.log
187-
ret=$?
188+
if [[ $2 == "axi4" || -z $2 ]]; then
189+
./syn_asic.sh axicb_axi4.ys | tee axi4.log
190+
ret=$?
191+
fi
188192
# AXI4-lite synthesis
189-
./syn_asic.sh axicb_axi4lite.ys | tee axi4lite.log
190-
ret=$((ret+$?))
193+
if [[ $2 == "axi4lite" || -z $2 ]]; then
194+
./syn_asic.sh axicb_axi4lite.ys | tee axi4lite.log
195+
ret=$((ret+$?))
196+
fi
197+
191198
echo "Execution status: $ret"
192199
exit $ret
193200
fi

0 commit comments

Comments
 (0)