Skip to content

icb-platform/Verilator_sha256_demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

verilator_test

一.在ubuntu20.04上安装verilator和gtkwave 1.安装verilator

    源代码下载:
    git clone [email protected]:verilator/verilator.git 
    下载依赖:   
    sudo apt-get install perl python3 make autoconf g++ flex bison ccache libgoogle-perftools-dev numactl perl-doc libfl2 libfl-dev zlibc zlib1g zlib1g-dev       
    设置环境变量:      
    export VERILATOR_ROOT=/path_to_install
    export PATH=$VERILATOR_ROOT:$PATH        
    运行:
    autoconf
    ./configure
    make
    make test
    sudo make install

2.安装gtkwave

    源代码下载地址
    http://gtkwave.sourceforge.net/      
    解压
    tar -xzvf xx.tar.gz    
    运行:
    ./autogen.sh
    ./configure
    make
    sudo make install

二.使用verilator仿真一个example并显示出waveform

    在`build`目录下输入如下命令分别可运行:
    //运行编译、仿真
    make all
    //仅编译
    make vcompile
    //仅仿真
    make sim
    //打开gtkwave
    make wave

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.3%
  • SystemVerilog 5.1%
  • Makefile 1.1%
  • Other 0.5%