mbits-mirafra / axi4_avip

MIT License
22 stars 25 forks source link

Install SVUnit in common tools area #73

Open muneebullashariff opened 1 year ago

muneebullashariff commented 1 year ago

Idea is to

muneebullashariff commented 1 year ago
 setenv SVUNIT_INSTALL `pwd`
if ( "$PATH" =~ "*$SVUNIT_INSTALL*" ) then
else
  setenv PATH "${PATH}:$SVUNIT_INSTALL/bin"
endif
muneebullashariff commented 1 year ago

Add the below to your ~/.cshrc file

 # Source project related files                                                                      
 source ~/project.csh  

Create a file under your home directory and paste the below contents:

vim ~/project.csh

Added the required paths to point to the correct directory as where the installation/downloaded files are present.

###################################################
# Create the environment for the project - AXI4
###################################################

# simulator
source /home/share/questa.csh
#source /hwetools/synosys/source/source.sh

# verible project
setenv PATH $PATH\:/hwetools/verible-v0.0-3422-g520ca4b9/bin
alias svlint 'verible-verilog-lint'
alias svformat 'verible-verilog-format'

# source SVUnit project and 
# set SVMock project
setenv SVUNIT_INSTALL /hwetools/svunit
setenv SVMOCK_INSTALL /hwetools/svmock
if ( "$PATH" =~ "*$SVUNIT_INSTALL*" ) then
else
  setenv PATH "${PATH}:$SVUNIT_INSTALL/bin"
endif
muneebullashariff commented 1 year ago

Now we can easily run the below commands from anywhere:

create_unit_test.pl file_name.sv runSVUnit -s questa