介绍
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.gztar -zxvf cmake-3.18.0.tar.gzcd cmake-3.18.0./bootstrapmake make install
Ref:
https://cmake.org/download/#latest
https://linux4one.com/how-to-install-cmake-on-centos-8
pkgconf-pkg-config
yum install pkgconf-pkg-config
swig
yum install swig
uuid-devel
yum install libuuid-devel
gperftools-devel
dnf install https://extras.getpagespeed.com/release-el8-latest.rpmdnf 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
yum install tcl
python3
yum install python3yum install python3-devel
二、下载、编译Surelog
下载
git clone https://github.com/alainmarcel/Surelogcd Sureloggit submodule update --init --recursive
编译
makemake install
三、测试
测试一
surelog -help
测试二
cd buildsurelog -writepp -parse ../tests/UnitElabBlock/top.v