-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu-verilator-gtkwave.dockerfile
62 lines (51 loc) · 1.47 KB
/
ubuntu-verilator-gtkwave.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM ubuntu:20.04
ENV SYSTEMC_VERSION 2.3.3
ENV VERILATOR_VERSION 4.010
ENV CXX g++
ENV SYSTEMC_HOME /usr/local/systemc-$SYSTEMC_VERSION
ENV LD_LIBRARY_PATH /usr/local/systemc-$SYSTEMC_VERSION/lib-linux64
ENV DEBIAN_FRONTEND=noninteractive
# Install packages
RUN apt-get update && apt-get install -y \
build-essential cmake bash nano gtkwave \
git \
make \
g++ \
flex \
bison \
perl \
python3 \
autoconf \
&& rm -rf /var/lib/apt/lists/*
# Give some packages a name so we can delete them after build
RUN apt-get install -y --no-install-recommends \
tar \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Download and install Verilator
RUN git clone https://github.com/verilator/verilator.git /verilator && \
cd /verilator && \
git checkout v$VERILATOR_VERSION && \
autoconf && \
./configure && \
make && \
make install && \
cd / && rm -rf /verilator
# Set PATH for Verilator
ENV PATH="/usr/local/bin:${PATH}"
# Make dir and change workdir
RUN mkdir -p /usr/local/
WORKDIR /usr/local/
# Download systemc and unpack
COPY systemc-$SYSTEMC_VERSION.tar.gz systemc-$SYSTEMC_VERSION.tar.gz
RUN tar -xzf systemc-$SYSTEMC_VERSION.tar.gz
# Prepare installation systemC
RUN mkdir /usr/local/systemc-$SYSTEMC_VERSION/objdir
WORKDIR /usr/local/systemc-$SYSTEMC_VERSION/objdir
# Configure systemc
RUN ../configure --prefix=/usr/local/systemc-$SYSTEMC_VERSION
# Install systemc
RUN make
RUN make install
WORKDIR /usr/
CMD bash