VUnit / vunit

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

[FEATURE] Print/save commands outputs/logs from (ModelSim/QuestaSim/Questa Base) #1057

Open nselvara opened 1 week ago

nselvara commented 1 week ago

Hey there, recently, I got a request to run simstats and printsimstats commands in ModelSim. I thought, it might be interesting to have a command that executes before or after each simulation run cycle and prints/saves the log output. I don't if other simulators have also similar commands. Currently, the output.txt in vunit_out folders contain the information. However, it'd be cool to kind of just print that particular info without analysing 200 files. 😅

LarsAsplund commented 3 days ago

This feels like something that is too simulator-specific to be hardcoded into VUnit. What could be added though is an option run a user-defined TCL script after a simulation just like we can before the simulation starts. Such a script can call simstats and the output can be further processed by Python in a post-simulation hook if needed.