UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 56992

Does the Vivado Simulator support the $dumpoff / $dumpon system tasks?

Description

When using the $dumpoff / $dumpon system tasks, I received an error in simulation. Does the Vivado Simulator support the $dumpoff system tasks?

Solution

The Vivado Simulator supports the use of the $dumpoff / $dumpon  system tasks when no arguments are used. This behavior is consistent with the specification in the IEEE LRM 1800-2009, section 21.7.1.3. If an argument is used in the command, an error will occur. The following code example shows how the $dumpoff / $dumpon commands can be used without error. 

Incorrect Code:

module top();
initial
begin
        $dumpon(1);
        $dumpoff(1);
end
endmodule

Correct Code:

module top();
initial
begin
        $dumpon;
        $dumpoff;
end
endmodule
AR# 56992
Date Created 08/05/2013
Last Updated 08/05/2013
Status Active
Type General Article