Sign inSign up

aignacio/nox

By aignacio

•Updated 8 months ago

Verilator latest stable + RISCV GCC Toolchain v10

Image
0

1.9K

aignacio/nox repository overview

⁠Container image used to build Nox RISC-V processor.

[aignacio] Dockerfile that built this image:

FROM ubuntu:latest
LABEL author="Anderson Ignacio da Silva"
LABEL maintainer="[email protected]"
ENV TZ=Europe/Dublin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get upgrade -y
RUN apt-get install git file gcc make time wget zip -y
#[sv2v]
RUN wget https://github.com/zachjs/sv2v/releases/download/v0.0.9/sv2v-Linux.zip
RUN unzip sv2v-Linux.zip && rm sv2v-Linux.zip
RUN ln -s /sv2v-Linux/sv2v /usr/bin/sv2v && chmod +x /sv2v-Linux/sv2v
# [Verilator]
#RUN apt-get install verilator -y
# Verilator dependencies
RUN apt-get install git perl python3 make autoconf g++ flex bison ccache -y
RUN apt-get install libgoogle-perftools-dev numactl perl-doc -y
RUN apt-get install libfl2 -y # Ubuntu only (ignore if gives error)
RUN apt-get install libfl-dev -y # Ubuntu only (ignore if gives error)
RUN apt-get install zlibc zlib1g zlib1g-dev -y # Ubuntu only (ignore if gives error)
#Building verilator
RUN git clone https://github.com/verilator/verilator
WORKDIR /verilator
RUN export VERILATOR_ROOT=/verilator
RUN git checkout stable      # Update latest stable
RUN autoconf                 # Create ./configure script
RUN ./configure              # Configure and create Makefile
RUN make -j4                 # Build Verilator itself (if error, try just 'make')
RUN make install
# [riscv-toolchain]
WORKDIR /opt/
RUN wget -c https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases/download/v10.2.0-1.2/xpack-riscv-none-embed-gcc-10.2.0-1.2-linux-x64.tar.gz -O - | tar -xz
RUN ln -s /opt/xpack-riscv-none-embed-gcc-10.2.0-1.2/bin/riscv* /usr/bin
# Compliance tests
WORKDIR /opt/
RUN git clone https://github.com/aignacio/riscv-arch-test-nox.git
RUN cd riscv-arch-test-nox && git pull

Tag summary

Content type

Image

Digest

sha256:cc7632667…

Size

1.5 GB

Last updated

8 months ago

docker pull aignacio/nox