From ea8d90d4f7c0b862d59ba68523f4672568635c76 Mon Sep 17 00:00:00 2001 From: Marko Kosunen Date: Tue, 9 Jul 2024 07:15:25 +0300 Subject: [PATCH] Convert to OSS CAD suite --- Dockerfile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bb50fb4..41aadcd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,13 +10,26 @@ RUN dnf -y install git python3 python3-devel python3-pip ncurses-devel gcc ngspi #RUN dnf -y install tcsh xterm make git screen vim-X11 wget gcc-gnat RUN dnf -y install wget gcc-gnat diffutils RUN dnf -y install zlib-devel -# 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 /usr/local && wget https://github.com/YosysHQ/oss-cad-suite-build/releases/download/2024-01-21/oss-cad-suite-linux-x64-20240121.tgz && tar xvzf ./oss-cad-suite-linux-x64-20240121.tgz && rm ./oss-cad-suite-linux-x64-20240121.tgz + +# Install python dependencies ADD --chown=root:root ./python_installs.sh /root/python_installs.sh 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 + +# Verilator install +#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 +RUN cd /usr/local && wget https://github.com/YosysHQ/oss-cad-suite-build/releases/download/2024-07-09/oss-cad-suite-linux-x64-2024-07-09.tgz && tar xvzf ./oss-cad-suite-linux-x64-2024-07-09.tgz && rm ./oss-cad-suite-linux-x64-2024-07-09.tgz +ENV PATH ${PATH}:/usr/local/oss-cad-suite/bin + + # Run the job MUST use exec format to pass parameters #ENTRYPOINT ["/entrypoint.sh"]