Jump to content
Sign in to follow this  
sathyakiran.p

how to report tool(vcs/ncsim..)/assertion related errors in UVM

Recommended Posts

Hi,

 

we see different kind of failures when we run simulations, like assertion error, uvm_error. 

 

How do we report outside UVM errors in report phase to give the TEST STATUS?

 

I am getting some psl/ovl/sva assertion  errors, but, UVM part is not reporting any error. 

 

how do I report test STATUS??

 

Thanks,

Satya

Share this post


Link to post
Share on other sites

What I did for my SVAs was to not use $error, but `uvm_error instead. This gets tricky if you want to do $warning, as `uvm_warning doesn't call $warning in the background, but $display (I think) and some tools might interpret it as an assertion error. You can just an extra dummy $warning message and that will solve the issue.

 

For PSL/OVL, you just have to live with not seeing them in the UVM reporting. In a regression, you have to rely on another mechanism to flag a test as failed when such an assertion triggers, e.g. log file parse script in eManager.

Share this post


Link to post
Share on other sites

Questa, like most simulation tools, has a built-in package that will interpret uvm_report_warning as $warning, uvm_report_error as $error, etc. If you do not use that built-in package, then all UVM reports are just simple $display statements. The severity of a failing assertion by default is error, but you can change that by putting a different severity task like $warning in the fail action block. The final TESTSTATUS of a simulation is determined by the most severe message issued during that simulation.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×