Closed muneebullashariff closed 1 year ago
use echo $SHELL to see which shell you are using use the full path, if the PATH is not setup properly which runSVUnit - this should show you the path where the SVUnit is installed
1.Just do git clone the svUnit repository and then follow the READE.md file for the steps.
2.Type tcsh
command and use cd
command to change your directory to clone directory which is svUnit.
3.After this do the source of the setup.csh file using the source Setup.csh
4.Create a small class and use the file as bogus.sv (in a separate directory https://github.com/mbits-mirafra/axi4_avip/issues/20#issuecomment-1774089568)
class bogus
endclass
5.For the Generating the unit test using this command create_unit_test.pl bogus.sv
6.Run the unit tests using the runSVUnit -s questa
command
1.When I am running step 5, it gives the bad arguments error.
Note: 5th step is means runSVUnit -s questa
command.
Solution for the Error :
just come out from where you're cloning the svUnit , afterword create a directory (use mkdir dir_name
)in there you create one small class(it's kind above class only) and use create_unit_test.pl bogus.sv
for generating the unit test file then, use runSVUnit -s questa
command for execution and error will solved.
Just follow the below picture for more clarity.
why that error the reason behind this is I am doing the cloning and executions in the same directory itself.
Basically, install the SVUnit under the libraries, where you'll install required tools and liraries to use for your project and your project will be inside a separate directory.
[x] Download the project
[x] Follow the steps in the README
[x] Understand the flow
[x] #68
https://github.com/svunit/svunit