Skip to content

Commit 790dc9b

Browse files
committed
update gha to just use vendored surelog deps
build and install flatbuffers . install orderedmultidict for surelog . . . . . .
1 parent 9c1ec25 commit 790dc9b

File tree

2 files changed

+18
-27
lines changed

2 files changed

+18
-27
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ jobs:
4141

4242
steps:
4343

44-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v3
4545
with:
4646
submodules: recursive
4747

48-
- uses: actions/setup-python@v2
48+
- uses: actions/setup-python@v3
49+
with:
50+
python-version: '3.9'
4951

5052
- name: Install Ubuntu Dependencies
5153
run: |
@@ -54,7 +56,7 @@ jobs:
5456
libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot \
5557
pkg-config libboost-system-dev libboost-python-dev \
5658
libboost-filesystem-dev zlib1g-dev clang-format-8 cmake \
57-
nlohmann-json3-dev iverilog \
59+
nlohmann-json3-dev iverilog
5860
if: ${{ runner.os != 'macOS'}}
5961

6062
- name: Setup homebrew cache
@@ -88,14 +90,17 @@ jobs:
8890
- name: Install yosys
8991
run: |
9092
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
91-
# NOTE: tests fail with latest: https://github.com/YosysHQ/yosys/issues/3384
92-
git clone --branch yosys-0.17 https://github.com/YosysHQ/yosys.git
93+
set -ex
94+
95+
git clone https://github.com/YosysHQ/yosys.git
9396
pushd yosys
9497
make -j`nproc` && sudo make install
9598
9699
- name: Install Googletest
97100
run: |
98101
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
102+
set -ex
103+
99104
git clone --branch release-1.8.1 https://github.com/google/googletest.git
100105
pushd googletest
101106
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 . && cmake --build build && sudo cmake --install build
@@ -104,31 +109,14 @@ jobs:
104109
- name: Install Surelog
105110
run: |
106111
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
107-
git clone https://github.com/google/flatbuffers.git
108-
pushd flatbuffers
109-
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 . && cmake --build build && sudo cmake --install build
110-
popd
112+
set -ex
111113
112-
git clone https://github.com/capnproto/capnproto.git
113-
pushd capnproto
114-
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 . && cmake --build build && sudo cmake --install build
115-
popd
116-
117-
sudo mkdir -p /usr/share/java
118-
sudo wget https://www.antlr.org/download/antlr-4.12.0-complete.jar -P /usr/share/java
119-
wget https://www.antlr.org/download/antlr4-cpp-runtime-4.12.0-source.zip && mkdir antlr4
120-
pushd antlr4
121-
unzip ../antlr4-cpp-runtime-4.12.0-source.zip && cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 . && cmake --build build && sudo cmake --install build
122-
popd
123-
124-
git clone https://github.com/chipsalliance/UHDM.git
125-
pushd UHDM
126-
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DUHDM_USE_HOST_GTEST=ON -DUHDM_USE_HOST_CAPNP=ON . && cmake --build build && sudo cmake --install build
127-
popd
114+
python -m pip install -vvv orderedmultidict
128115
129116
git clone https://github.com/chipsalliance/Surelog.git
130117
pushd Surelog
131-
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DSURELOG_USE_HOST_FLATBUFFERS=ON -DSURELOG_USE_HOST_ANTLR=ON -DSURELOG_USE_HOST_UHDM=ON -DSURELOG_USE_HOST_GTEST=ON -S . && cmake --build build && sudo cmake --install build
118+
git submodule update --init --recursive
119+
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DSURELOG_USE_HOST_GTEST=ON -S . && cmake --build build && sudo cmake --install build
132120
popd
133121
env:
134122
OS: ${{ runner.os }}

xdc-plugin/tests/minilitex_ddr_arty/minilitex_ddr_arty.tcl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ read_verilog $::env(DESIGN_TOP).v
77
read_verilog [file dirname [info script]]/VexRiscv_Lite.v
88
# -flatten is used to ensure that the output eblif has only one module.
99
# Some of F4PGA expects eblifs with only one module.
10-
synth_xilinx -flatten -abc9 -nosrl -noclkbuf -nodsp
10+
11+
# TODO why doesn't -abc9 work?
12+
#synth_xilinx -flatten -abc9 -nosrl -noclkbuf -nodsp
13+
synth_xilinx -flatten -nosrl -noclkbuf -nodsp
1114

1215
#Read the design constraints
1316
read_xdc -part_json [file dirname [info script]]/../xc7a35tcsg324-1.json $::env(DESIGN_TOP).xdc

0 commit comments

Comments
 (0)