When running SystemVerilog verifcation simulations (Virtuoso + Xcelium) I have certain conditions for which I want to produce an "$error()" output in the xrun logfile.
Just before the simulation is finished I want to write out how many of those "$errors()" occured.
Currently I am running a manual error counter in my testbench - but this does not help when a SV module in a lower hierarchy creates an "$error()" output.
1. What options do I have to automatically count (or summarize) the number of "$error()" thrown during simulation (from any hierarchy below - not only in testbench) ?
2. Is there another way to throw and count custom-errors during simulation (I am not familiar with this UVM thing) ?