介绍
Surelog是一个支持SystemVerilog 2017的Pre-processor、Parser、UHDM Compiler,可用于语法检查、仿真、综合、形式验证工具的前端。
官网安装说明是基于Ubuntu的,https://github.com/alainmarcel/Surelog/blob/master/INSTALL.md,然而Centos和Ubuntu的依赖包的名字有所差异,下面是本人在Centos8上的安装过程记录,希望对爱好者有帮助。
一、安装编译依赖工具
cmake
wget https://github.com/Kitware/CMake/releases/download/v3.18.0/cmake-3.18.0.tar.gz
tar -zxvf cmake-3.18.0.tar.gz
cd cmake-3.18.0
./bootstrap
make
make install
Ref:
pkgconf-pkg-config
yum install pkgconf-pkg-config
swig
uuid-devel
yum install libuuid-devel
dnf install https://extras.getpagespeed.com/release-el8-latest.rpm
dnf install gperftools-devel
jdk
yum install java-11-openjdk-devel
Ref:
https://www.oracle.com/java/technologies/javase-jre8-downloads.html
https://phoenixnap.com/kb/how-to-install-java-centos-8
tcl
python3
yum install python3
yum install python3-devel
二、下载、编译Surelog
下载
git clone https://github.com/alainmarcel/Surelog
cd Surelog
git submodule update --init --recursive
编译
三、测试
测试一
测试二
cd build
surelog -writepp -parse ../tests/UnitElabBlock/top.v