介绍
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:https://cmake.org/download/#latesthttps://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.rpm
dnf install gperftools-devel
jdk
yum install java-11-openjdk-devel
Ref:https://www.oracle.com/java/technologies/javase-jre8-downloads.htmlhttps://phoenixnap.com/kb/how-to-install-java-centos-8
tcl
yum install tcl
python3
yum install python3
yum install python3-devel
二、下载、编译Surelog
下载
git clone https://github.com/alainmarcel/Surelog
cd Surelog
git submodule update --init --recursive
编译
make
make install
三、测试
测试一
surelog -help
测试二
cd build
surelog -writepp -parse ../tests/UnitElabBlock/top.v
相关文章:
Verilog开源仿真工具Icarus Verilog的工作原理
开源仿真工具Icarus Verilog中的命令行参数处理方法
开源仿真工具Icarus Verilog中的预处理ivlpp
开源仿真工具Icarus Verilog中的verilog parser
开源综合工具Yosys中的Verilog Parser
用python实现一个verilog网表Parser
EDA 3.0
欢迎关注ExASIC
分享数字集成电路设计中的经验和方法
分享让工作更轻松