Skip to content

Commit

Permalink
Add Verilator to pycde build image
Browse files Browse the repository at this point in the history
  • Loading branch information
teqdruid committed May 17, 2024
1 parent 6b292e5 commit 553fe42
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pycde-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM quay.io/pypa/manylinux2014_x86_64

RUN yum install -y wget ninja-build
RUN yum install -y \
wget ninja-build autoconf bc bison flex flex-devel perl \
python3 python3-devel

COPY get-verilator.sh /tmp
RUN cd /tmp && bash get-verilator.sh

COPY get-capnp.sh /tmp
RUN cd /tmp && bash get-capnp.sh
27 changes: 27 additions & 0 deletions pycde-build/get-verilator.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
##===- utils/get-verilator.sh - Install Verilator ------------*- Script -*-===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
##===----------------------------------------------------------------------===##

set -e

mkdir -p "$(dirname "$BASH_SOURCE[0]")/../ext"
EXT_DIR=$(cd "$(dirname "$BASH_SOURCE[0]")/../ext" && pwd)
VERILATOR_VER=4.110

echo $EXT_DIR
cd $EXT_DIR

wget https://github.com/verilator/verilator/archive/v$VERILATOR_VER.tar.gz
tar -zxf v$VERILATOR_VER.tar.gz
cd verilator-$VERILATOR_VER
autoconf
./configure
make -j$(nproc)
make install
cd ..
rm -r verilator-$VERILATOR_VER v$VERILATOR_VER.tar.gz

0 comments on commit 553fe42

Please sign in to comment.