Set flag when assertion fails or hold assertion failure reporting

hi

is there a way in which i can hold the assertion failure reporting for some time,the scenario is as soon as my assertion failed i need to start 1 particular sequence and that sequence will start based on the event emitted after assertion failure,but what has happened is once assertion failed i can see event emmited but simulation ends and am not able to run my sequence

regards,
abhi

*In reply to abhijain:*is there a way in which i can hold the assertion failure reporting for some time,the scenario is as soon as my assertion failed i need to start 1 particular sequence and that sequence will start based on the event emitted after assertion failure,but what has happened is once assertion failed i can see event emmited but simulation ends and am not able to run my sequence [/quote]
Few points:

  1. When an assertion fails, you can set a flag in the testbench, e/g/.

bit flag;
ap: assert property(some_property) else flag <= 1'b1;  
  1. Stopping the simulator depends upon the severity level you put in the action block.
    The severity levels can be specified by one of the following severity system tasks. The syntax for the severity message task is:
severity_message_task ::= fatal_message_task | nonfatal_message_task
fatal_message_task ::= $fatal [ ( finish_number [ , list_of_arguments ] ) ] ;
nonfatal_message_task ::= severity_task [ ( [ list_of_arguments ] ) ] ;
severity_task ::= $error | $warning | $info
finish_number ::= 0 | 1 | 2
  1. By default, the severity of an assertion failure is “error”. For example:

$error represents a run-time error. Example:
ap_handshake : assert property ($rose(req) |=> ##[0:4] ack)
else $error ("%m @ time %0t, req = %0h, ack=%0h", $time, $sampled(req), $sampled (ack)); 
  1. The simulation tool allows users to configure the behavior in response to an assertion failure. Maybe you have it configured to finish upon a failure.

Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us


In reply to ben@SystemVerilog.us:

thanks ben