File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed
Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments