在CentOS8上安装Surelog
专栏:ExASIC Oct. 25, 2024, 10:45 p.m. 75 阅读
在CentOS8上安装Surelog

介绍

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

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.html
https://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

surelog1.png

surelog2.png

三、测试

测试一

surelog -help

测试二

cd build
surelog -writepp -parse ../tests/UnitElabBlock/top.v
感谢阅读,更多文章点击这里:【专栏:ExASIC】
最新20篇 开设专栏