mbits-mirafra / axi4_avip

MIT License
23 stars 26 forks source link

Install the git SVUnit project on the server / terminal #20

Closed muneebullashariff closed 1 year ago

muneebullashariff commented 1 year ago

Installing SVUnit will work only if you have a simulator installed. If you don't have the simualator, refer #25

muneebullashariff commented 1 year ago

https://github.com/svunit/svunit

muneebullashariff commented 1 year ago
muneebullashariff commented 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

mahadevaswamy05 commented 1 year ago

Follow the below steps for cloning, creating the unit test template, running the file.

1.Just do git clone the svUnit repository and then follow the READE.md file for the steps.

Image

2.Type tcsh command and use cd command to change your directory to clone directory which is svUnit.

Image image

3.After this do the source of the setup.csh file using the source Setup.csh

Image

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

Image

6.Run the unit tests using the runSVUnit -s questa command

Image

Image

mahadevaswamy05 commented 1 year ago

Issue:

1.When I am running step 5, it gives the bad arguments error.

Note: 5th step is means runSVUnit -s questa command. Image

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. Image

why that error the reason behind this is I am doing the cloning and executions in the same directory itself.

muneebullashariff commented 1 year ago

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.