Skip to content

Commit cd623d3

Browse files
committedOct 5, 2021
replace ubuntu by arch linux as base image and related packages
1 parent c7be90f commit cd623d3

File tree

7 files changed

+31
-122
lines changed

7 files changed

+31
-122
lines changed
 

‎Dockerfile

+17-58
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,25 @@
11

2-
FROM ghdl/vunit:gcc
2+
FROM archlinux:base-devel
33

44
LABEL maintainer="Rafael do Nascimento Pereira <rnp@25ghz.net>"
55
LABEL description="FGPA development and verification environment"
6-
LABEL version="0.2"
6+
LABEL version="0.3"
77

8-
9-
# Disable Prompt During Packages Installation
10-
ENV DEBIAN_FRONTEND=noninteractive
11-
ENV YOSYS_SRC /usr/src/yosys
128
ENV SBY_SRC /usr/src/symbiyosys
139
ENV GHDL_YOSYS_SRC /usr/src/ghdl-yosys-plugin
14-
ENV YICES2_SRC /usr/src/yices2
15-
1610

1711
# install dependencies
18-
RUN apt-get update && \
19-
apt-get install -y --no-install-recommends \
20-
build-essential \
21-
clang \
22-
bison \
23-
flex \
24-
libreadline-dev \
25-
gawk \
26-
tcl-dev \
27-
libffi-dev \
28-
git \
29-
graphviz \
30-
xdot \
31-
pkg-config \
32-
python \
33-
python3 \
34-
python3-dev \
35-
libftdi-dev \
36-
gperf \
37-
libboost-program-options-dev \
38-
autoconf \
39-
libgmp-dev \
40-
cmake \
41-
wget \
42-
curl \
43-
libpython2.7 \
12+
RUN pacman -Syu --noconfirm && \
13+
pacman -S --noconfirm git \
4414
iverilog \
45-
python3-pip
15+
python \
16+
python-pip \
17+
ghdl-llvm \
18+
yosys \
19+
yices
4620

47-
# yosys
48-
RUN git clone https://github.com/YosysHQ/yosys.git --depth=1 ${YOSYS_SRC}
49-
WORKDIR ${YOSYS_SRC}
50-
RUN make -j$(nproc) && \
51-
make install && \
52-
cd .. && \
53-
rm -fr yosys
21+
## install python based tootls: vunit, cocotb and pytest
22+
RUN pip install vunit_hdl cocotb cocotb-test
5423

5524
# symbiyosys
5625
RUN git clone https://github.com/YosysHQ/SymbiYosys.git --depth=1 ${SBY_SRC}
@@ -59,30 +28,20 @@ RUN make install && \
5928
cd .. && \
6029
rm -fr SymbiYosys
6130

62-
RUN git clone https://github.com/SRI-CSL/yices2.git --depth=1 ${YICES2_SRC}
63-
WORKDIR ${YICES2_SRC}
64-
RUN autoconf && \
65-
./configure && \
66-
make -j$(nproc) && \
67-
make install && \
68-
cd .. && \
69-
rm -fr yices2
70-
7131
# ghdl-yosys-plugin
32+
# workaround for compilation
33+
RUN mkdir /usr/include/ghdl && \
34+
ln -s /usr/include/ghdlsynth.h /usr/include/ghdl/synth.h
35+
7236
RUN git clone https://github.com/ghdl/ghdl-yosys-plugin --depth=1 ${GHDL_YOSYS_SRC}
7337
WORKDIR ${GHDL_YOSYS_SRC}
7438
RUN make && \
7539
make install && \
7640
cd .. && \
7741
rm -fr ghdl-yosys-plugin
7842

79-
# install cocotb
80-
RUN pip install cocotb pytest
81-
8243
# cleanup
8344
WORKDIR /root
8445
RUN rm -fr .cache && \
85-
apt-get autoclean && \
86-
apt-get autoremove && \
87-
apt-get clean && \
88-
rm -fr /var/lib/apt/lists/*
46+
pacman -Scc --noconfirm
47+

‎README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# FPGA dev docker
22

3-
Docker image for FPGA development. Programmes provided in the image:
3+
Version: 0.3
4+
Data: 2021.10.05
45

5-
* GHDL
6-
* GHDL-Yosys-Plugin
7-
* Yosys
8-
* SYmbiYosys
9-
* VUnit
10-
* Yices
11-
* Cocotb
12-
* Icarus Verilog
6+
Docker image for FPGA development and verification. Programmes included in the image:
7+
8+
* Cocotb 1.5.2
9+
* GHDL 1.0.0 (llvm)
10+
* GHDL-Yosys-Plugin 45da327
11+
* Icarus Verilog 11.0
12+
* SymbiYosys 15278f1
13+
* VUnit 4.5.0
14+
* Yices 2.6.2
15+
* Yosys 0.10

‎arch/Dockerfile

-47
This file was deleted.

‎arch/build.sh

-3
This file was deleted.

‎arch/run.sh

-3
This file was deleted.

‎build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
docker build --cache-from rnprnp/fpga_dev:0.2 -t rnprnp/fpga_dev:0.2 .
3+
docker build --cache-from rnprnp/fpga_dev:0.3 -t rnprnp/fpga_dev:0.3 .

‎run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
docker run --name test_fpga_cdev --rm -i -t rnprnp/fpga_dev:0.2 bash
3+
docker run --name test_fpga_dev --rm -i -t rnprnp/fpga_dev:0.3 bash

0 commit comments

Comments
 (0)
Please sign in to comment.