Skip to content

jorislee/ci_ecp5_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ecp5 compilation environment docker

Based on ubuntu:20.04 configure ecp5 compilation environment docker.

Dockerfile

FROM ubuntu:20.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
    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 \
    autoconf \
    bison \
    flex \
    g++ \
    gcc \
    git \
    gperf \
    gtkwave \
    make \
    libhidapi-dev \
    libusb-dev \
    libusb-1.0 \
    zlib1g-dev \
    && rm -rf /var/lib/apt/lists/*

# yosys
RUN git clone --recursive https://github.com/cliffordwolf/yosys.git yosys \
    && cd yosys && make clean && make config-clang \
    && make -j$(nproc) && make install && cd - && rm -r yosys

# prjtrellis
RUN git clone --recursive https://github.com/YosysHQ/prjtrellis.git prjtrellis \
    && cd prjtrellis/libtrellis && cmake -DARCH=ecp5 -DTRELLIS_INSTALL_PREFIX=/usr/local . \
    && make -j$(nproc) && make install && cd - && rm -r prjtrellis

# nextpnr
RUN git clone --recursive https://github.com/YosysHQ/nextpnr.git nextpnr \
    && cd nextpnr && cmake -DARCH=ecp5 -DTRELLIS_INSTALL_PREFIX=/usr/local . \
    && make -j$(nproc) && make install && cd - && rm -r nextpnr

# iverilog
RUN git clone --recursive https://github.com/steveicarus/iverilog.git iverilog \
    && cd iverilog && sh autoconf.sh && ./configure \
    && make -j$(nproc) && make install && cd - && rm -r iverilog

CMD [ "/bin/bash" ]

License

MIT License.

Acknowledgments

About

ci esp5 fpga of docker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published