forked from chipsalliance/Cores-VeeR-EL2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pawel Czarnecki <[email protected]>
- Loading branch information
Showing
3 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Yosys with SystemVerilog Build | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
yosys-systemverilog: | ||
name: Build yosys-systemverilog | ||
runs-on: ubuntu-latest | ||
env: | ||
TOOL_NAME: yosys-systemverilog | ||
DEBIAN_FRONTEND: "noninteractive" | ||
|
||
steps: | ||
- name: Install prerequisities | ||
run: | | ||
sudo apt -qqy update && sudo apt -qqy --no-install-recommends install \ | ||
gcc-9 g++-9 build-essential cmake tclsh ant default-jre swig google-perftools \ | ||
libgoogle-perftools-dev python3 python3-dev python3-pip uuid uuid-dev tcl-dev \ | ||
flex libfl-dev git pkg-config libreadline-dev bison libffi-dev wget pip3 install \ | ||
orderedmultidict | ||
- name: Build yosys-systemverilog | ||
run: | | ||
pushd yosys-systemverilog | ||
make -j `nproc` synthesis-tools | ||
popd | ||
cd third_party/yosys-systemverilog && mv image yosys-systemverilog tar -czvf yosys-systemverilog.tar.gz yosys-systemverilog | ||
- name: Store yosys-systemverilog binaries | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: yosys-systemverilog | ||
path: third_party/yosys-systemverilog/yosys-systemverilog.tar.gz | ||
retention-days: 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Run VeeR EL2 ASIC Flow | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
|
||
run-asic-flow: | ||
name: VeeR EL2 ASIC Flow | ||
runs-on: ubuntu-latest | ||
env: | ||
DEBIAN_FRONTEND: "noninteractive" | ||
|
||
steps: | ||
- name: Install utils | ||
run: | | ||
sudo apt -qqy update && sudo apt -qqy --no-install-recommends install \ | ||
git python3 python3-pip build-essential ccache | ||
sudo cpanm Bit::Vector | ||
- name: Download yosys-systemverilog binaries | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: yosys-systemverilog | ||
path: /opt | ||
|
||
- name: Unpack yosys-systemverilog binaries | ||
run: | | ||
cd /opt && tar -zxvf yosys-systemverilog.tar.gz | ||
- name: Setup repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run ASIC Flow | ||
run: | | ||
export PATH=/opt/yosys-systemverilog/bin:$PATH | ||
make -j `nproc` run-asic-flow | ||
- name: Pack modified SV sources | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: modified-sv-sources | ||
path: | | ||
./build/src | ||
./build/inc | ||
- name: Pack ASIC Flow artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: asic-flow-results | ||
path: | | ||
./third_party/OpenROAD-flow-scripts/flow/results | ||
./third_party/OpenROAD-flow-scripts/flow/reports | ||
./third_party/OpenROAD-flow-scripts/flow/logs |