Assertion
Generate SystemVerilog assertions from Simulink assertion
Libraries:
HDL Verifier /
For Use with DPI-C SystemVerilog
Description
Add-On Required: This feature requires the ASIC Testbench for HDL Verifier add-on.
The Assertion block asserts that its input signal is nonzero. If its input is zero, the block halts the simulation by default and displays an error message. When you generate a DPI-C SystemVerilog component - the block creates an immediate SystemVerilog assertion. Using the block parameters, you can:
Enable or disable the assertion.
Specify a MATLAB® expression for Simulink® to evaluate when the assertion fails.
Select for Simulink to either stop simulation or continue but display a warning when assertion fails.
Use the DPI-C parameters to control runtime options:
Specify the severity of the generated assertion.
Specify a custom message or action when the assertion fails.
Examples
Ports
Input
Parameters
Version History
Introduced in R2018a
