VUnit / vunit

VUnit is a unit testing framework for VHDL/SystemVerilog
http://vunit.github.io/
Other
696 stars 250 forks source link

Help with attribute #987

Closed bryankerr1986 closed 3 months ago

bryankerr1986 commented 5 months ago

Hello,

I have declared an attribute to mark my testbench.

Also, in my run.py script I have a piece of code that generates vivado output products before code is compiled.

If I try to only run certain testbenches with the attribute, the problem is every run.py script will still generate vivado output products - wasting time.

Is there a way you can think of to skip this? It seems the attribute doesn't take affect until everything is compiled.

Does VUnit provide some other solution for this?

For context, I'm using VUnit with Xcelium, so maybe everything is not supported.

Thanks! Bryan

LarsAsplund commented 4 months ago

What you could do is to add a custom command line option with which you decide if the Vivado output should be generated or not. See https://vunit.github.io/py/ui.html#adding-custom-command-line-arguments.

Rather than adding a new option, you can use the same approach to peek the values of the standard options. Maybe you can simply look at if the run is made with the attribute filter options and then skip the Vivado outputs