@@ -3,10 +3,13 @@ FROM ubuntu:22.04
33SHELL ["/bin/bash" , "-c" ]
44
55ENV DEBIAN_FRONTEND=noninteractive
6- ENV PATH="/WORK_REPO/verilator/bin:$PATH"
76ENV VERILATOR_ROOT=/WORK_REPO/verilator
87ENV PYMTL_VERILATOR_INCLUDE_DIR=/WORK_REPO/verilator/share/verilator/include
98ENV PATH="/WORK_REPO/CGRA-Flow/tools/sv2v/bin:$PATH"
9+ ENV PATH="/WORK_REPO/CGRA-Flow/tools/oss-cad-suite/bin:$PATH"
10+ ENV YOSYS_EXE="/WORK_REPO/CGRA-Flow/tools/oss-cad-suite/bin/yosys"
11+ ENV OPENROAD_EXE="/usr/bin/openroad"
12+ ENV PATH="/WORK_REPO/verilator/bin:$PATH"
1013
1114RUN mkdir /WORK_REPO \
1215 && cd /WORK_REPO \
@@ -77,7 +80,20 @@ RUN mkdir /WORK_REPO \
7780 && cd /WORK_REPO/CGRA-Flow \
7881 && mkdir build && cd build \
7982 && cp ../docker/config.mk ./ \
80- && cp ../docker/constraint.sdc ./
83+ && cp ../docker/constraint.sdc ./ \
84+ # Install OpenROAD
85+ && cd /WORK_REPO/CGRA-Flow/tools \
86+ && wget https://github.com/Precision-Innovations/OpenROAD/releases/download/2024-08-05/openroad_2.0_amd64-ubuntu22.04-2024-08-05.deb \
87+ && wget https://www.klayout.org/downloads/Ubuntu-22/klayout_0.29.6-1_amd64.deb \
88+ && wget https://github.com/YosysHQ/oss-cad-suite-build/releases/download/2024-09-20/oss-cad-suite-linux-x64-20240920.tgz \
89+ && apt-get update \
90+ && apt-get install -y --fix-broken \
91+ && dpkg -i klayout_0.29.6-1_amd64.deb || true \
92+ && apt-get install -y --fix-broken \
93+ && tar zxvf oss-cad-suite-linux-x64-20240920.tgz -C ./ \
94+ && apt-get install -y ./openroad_2.0_amd64-ubuntu22.04-2024-08-05.deb \
95+ && apt-get install -y time \
96+ && rm -f *.deb *.tgz
8197
8298WORKDIR "/WORK_REPO/CGRA-Flow/build"
8399# CMD ["/WORK_REPO/venv/bin/python", "../mode_dark_light.py"]
0 commit comments