Skip to content

Commit

Permalink
Re-add synlig, but with a new approach
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomelo9 committed Nov 30, 2024
1 parent 3f9c4ac commit 7a3affc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions recipes/synthesis
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ RUN apt update -qq \
libffi-dev \
pkg-config \
python3 \
# Synlig
cmake \
default-jre \
python3-orderedmultidict \
&& apt autoclean && apt clean && apt -y autoremove \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -48,6 +52,15 @@ RUN git clone --depth 1 https://github.com/ghdl/ghdl-yosys-plugin.git \
&& cd ghdl-yosys-plugin && git submodule update --init \
&& make -j$(nproc) && make install

#
# Synlig
#

RUN git clone --depth 1 https://github.com/chipsalliance/synlig.git && cd synlig \
&& git submodule update --init --depth 1 --recursive third_party/surelog \
&& git submodule update --init --depth 1 --recursive third_party/yosys \
&& make install -j$(nproc)

#
# Clean-up
#
Expand All @@ -71,3 +84,4 @@ COPY --from=build /usr/local/bin /usr/local/bin
COPY --from=build /usr/local/lib /usr/local/lib
COPY --from=build /usr/local/include/ghdl /usr/local/include/ghdl
COPY --from=build /usr/local/share/yosys /usr/local/share/yosys
COPY --from=build /usr/local/share/synlig /usr/local/share/synlig
1 change: 1 addition & 0 deletions tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
set -e
bash run.sh synthesis 'ghdl --version'
bash run.sh synthesis 'yosys -m ghdl -V'
bash run.sh synthesis 'synlig -V'

0 comments on commit 7a3affc

Please sign in to comment.