Sign inSign up

sioiot/ci_ice40_docker

By sioiot

Updated almost 6 years ago

ice40 compilation environment docker.

Image
0

290

sioiot/ci_ice40_docker repository overview

ice40 compilation environment docker

Based on ubuntu:18.04 configure ice40 compilation environment docker.

Dockerfile

FROM ubuntu:18.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
  # IceStorm and friends
  bison \
  build-essential \
  clang \
  cmake \
  flex \
  gawk \
  git \
  graphviz \
  libboost-all-dev \
  libeigen3-dev \
  libffi-dev \
  libftdi-dev \
  libreadline-dev \
  mercurial \
  pkg-config \
  python \
  python3 \
  python3-dev \
  qt5-default \
  tcl-dev \
  xdot \
  # Icarus Verilog and friends
  autoconf \
  bison \
  flex \
  g++ \
  gcc \
  git \
  gperf \
  gtkwave \
  make \
  && rm -rf /var/lib/apt/lists/* \
  # icestorm
  && git clone --recursive https://github.com/cliffordwolf/icestorm.git icestorm \
  && cd icestorm && make clean && make -j$(nproc) && make install && cd - && rm -r icestorm \
  # arachne-pnr
  && git clone --recursive https://github.com/cseed/arachne-pnr.git arachne-pnr \
  && cd arachne-pnr && make clean && make -j$(nproc) && make install && cd - && rm -r arachne-pnr \
  # nextpnr
  && git clone --recursive https://github.com/YosysHQ/nextpnr nextpnr \
  && cd nextpnr && cmake -DARCH=ice40 -DBUILD_GUI=OFF -DCMAKE_INSTALL_PREFIX=/usr/local . \
  && make -j$(nproc) && make install && cd - && rm -r nextpnr \
  # yosys
  && git clone --recursive https://github.com/cliffordwolf/yosys.git yosys \
  && cd yosys && make clean && make yosys-abc \
  && make -j$(nproc) && make install && cd - && rm -r yosys \
  # iverilog
  && git clone --recursive https://github.com/steveicarus/iverilog.git iverilog \
  && cd iverilog && autoconf && ./configure && make clean \
  && make -j$(nproc) && make install && cd - && rm -r iverilog \
  # verilator
  && git clone --recursive https://github.com/ddm/verilator.git verilator \
  && cd verilator && autoconf && ./configure && make clean \
  && make -j$(nproc) && make install && cd - && rm -r verilator

CMD [ "/bin/bash" ]

License

MIT License.

Acknowledgments

Tag summary

Content type

Image

Digest

Size

840.2 MB

Last updated

over 6 years ago

docker pull sioiot/ci_ice40_docker