Engee documentation

Assertion

Checking for the zero value of the signal.

blockType: Assertion

Path in the library:

/Basic/Model Verification/Assertion

Description

Block Assertion detects values 0 in the input signal. If all the elements are non-zero, the statement is executed true (1) and the block does nothing. If not, the block stops the simulation and returns an error message by default.

Ports

Input

# IN — The input signal
scalar | vector | the matrix

Details

An input signal for verifying statements.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Bool, Fixed-point

Complex numbers support

No

Parameters

Parameters

# Enable assertion — enabling verification
Logical

Details

Uncheck this box to disable the block.

Default value

true (switched on)

Program usage name

Enabled

Tunable

No

Evaluatable

No

# Simulation callback when assertion fails — an expression for evaluating a calculation
String

Details

Specify the expression to evaluate the calculation.

Dependencies

To use this option, select the option checkbox. Enable assertion.

Default value

Program usage name

AssertionFailFcn

Tunable

No

Evaluatable

No

# Stop simulation when assertion fails — stopping the simulation in case of an unsuccessful check
Logical

Details

Check this box to stop the simulation if the check fails.

Uncheck this box to display a warning and continue the simulation.

Default value

true (switched on)

Program usage name

StopWhenAssertionFail

Tunable

No

Evaluatable

No