Open muneebullashariff opened 1 year ago
setenv SVUNIT_INSTALL `pwd`
if ( "$PATH" =~ "*$SVUNIT_INSTALL*" ) then
else
setenv PATH "${PATH}:$SVUNIT_INSTALL/bin"
endif
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
Now we can easily run the below commands from anywhere:
create_unit_test.pl file_name.sv
runSVUnit -s questa
Idea is to