🐳
Icarus Verilogのシミュレーション環境をDockerで
これは?
Orbstackを積んだmacでも、WSL2を積んだwindowsでも同じ環境ですぐ作業できちゃうってコト
GTKWaveは無いです( ・∇・)xwindowめんどいよね
ファイルたち
dockerfile
FROM ubuntu:22.04
RUN apt update && apt install -y \
software-properties-common && \
rm -rf /var/lib/apt/lists/*
RUN add-apt-repository ppa:apt-fast/stable
RUN apt update && apt install -y \
apt-fast \
&& apt-fast clean && rm -rf /var/lib/apt/lists/*
RUN apt-fast update && apt-fast install -y \
git \
autoconf \
gperf \
make \
bison \
flex \
build-essential \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/steveicarus/iverilog.git -b v12_0 && \
cd iverilog && \
sh autoconf.sh && \
./configure --prefix=/root/.opt/iverilog-v12 && \
make -j && \
make install && \
cd .. && \
rm -rf iverilog
ENV PATH="/root/.opt/iverilog-v12/bin/:${PATH}"
WORKDIR /workspace
CMD [ "bash" ]
docker-compose.yml
version: "3.9"
services:
icarus-dev:
build: .
container_name: icarus_dev
volumes:
- .:/workspace
tty: true
使い方
docker compose up -d && docker exec -it icarus_dev /bin/bash
Discussion