Skip to content

Commit

Permalink
Convert to OSS CAD suite
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosunen committed Jul 9, 2024
1 parent 249e5e4 commit ea8d90d
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit ea8d90d

Please sign in to comment.