How to capture assertion errors from RTL in the testcase PASS FAIL decision

I have an RTL design with assertions

When I run a testcase, assertion errors are reported, but my environment don’t have a way to count the assertion errors
It seems to me like I have to parse the log file and report any assertion errors been identified and report PASS FAIL on the top of test bench environment reported PASS/FAIL.

Is this the way or is there any other way to capture assertion errors from RTL in the testcase PASS FAIL decision

In reply to kvenkatv:
Tools report the number of times the assertions pass/fail.
You can use the action block to modify testbench variables that can be acted upon by the environment.


bit somev; // to be used by testbench 
ap_someP: assert property(@(posedge clk) someP) else somev=1'b1;  

Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us
For training, consulting, services: contact http://cvcblr.com/home.html
** SVA Handbook 4th Edition, 2016 ISBN 978-1518681448

  1. SVA Package: Dynamic and range delays and repeats SVA: Package for dynamic and range delays and repeats | Verification Academy
  2. Free books: Component Design by Example FREE BOOK: Component Design by Example … A Step-by-Step Process Using VHDL with UART as Vehicle | Verification Academy
    Real Chip Design and Verification Using Verilog and VHDL($3) https://rb.gy/cwy7nb
  3. Papers: