Skip to content

Commit

Permalink
Reinstate oss-cad-suite and update test-run
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosunen committed Jul 9, 2024
1 parent ebc690e commit 92fbead
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ RUN chmod 700 /root/python_installs.sh
RUN /root/python_installs.sh && rm /root/python_installs.sh

# Install GHDL from source
RUN cd /root && wget https://github.com/ghdl/ghdl/archive/refs/tags/v3.0.0.tar.gz && tar xzf v3.0.0.tar.gz && cd ghdl-3.0.0 && ./configure && make && make install && cd /root && rm v3.0.0.tar.gz && rm -rf ghdl-3.0.0
#RUN cd /root && wget https://github.com/ghdl/ghdl/archive/refs/tags/v3.0.0.tar.gz && tar xzf v3.0.0.tar.gz && cd ghdl-3.0.0 && ./configure && make && make install && cd /root && rm v3.0.0.tar.gz && rm -rf ghdl-3.0.0

# Verilator install
#RUN dnf -y install autoconf g++ flex bison help2man
RUN dnf -y install autoconf g++ flex bison help2man
#RUN git clone https://github.com/verilator/verilator
#RUN unset VERILATOR_ROOT
#RUN cd verilator && git pull && git checkout v5.026 && autoconf && ./configure && make && make test && make install

# Yosys, contans also verilator and GHDL
# This did not work yet
RUN dnf -y install perl perl-FindBin
RUN cd /usr/local && wget https://github.com/YosysHQ/oss-cad-suite-build/releases/download/2024-07-09/oss-cad-suite-linux-x64-20240709.tgz && tar xvzf ./oss-cad-suite-linux-x64-20240709.tgz && rm ./oss-cad-suite-linux-x64-20240709.tgz
#ENV PATH=${PATH}:/usr/local/oss-cad-suite/bin
ENV PATH=${PATH}:/usr/local/oss-cad-suite/bin


# Run the job MUST use exec format to pass parameters
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build:
run:
docker run --device /dev/dri -it --rm \
ghcr.io/thesystemdevelopmentkit/thesdktestimage:latest \
echo 'Build OK'
sh -c 'echo $$PATH && verilator -V && ghdl -v && uname -a && ngspice -v'

pull:
docker pull ghcr.io/thesystemdevelopmentkit/thesdktestimage:latest
Expand Down

0 comments on commit 92fbead

Please sign in to comment.