Check Input Resolution
Check that input signal has specified resolution
- Library:
Simulink / Model Verification
HDL Coder / Model Verification
Description
TheCheck Input Resolutionblock checks whether the input signal has a specified resolution. The block input and resolution can be either a scalar or vector. The input and resolution must be the same data type.
If theResolutionparameter is a scalar, the block calculates the modulus of the input signal over the provided scalar resolution. The calculated modulus is then compared to a tolerance of10e-3
, and executes an assertion after comparison. If the modulus is less than the tolerance, the assertion istrue (1)
and the block does nothing. If not, the block halts the simulation and returns an error message by default. If theResolutionparameter is a vector, it assertstrue (1)
if the value of the input signal is equal to any of the resolution vector elements.
块比较输入的决议several additional ways depending on the dimensions of the signal and resolution.
When comparing a scalar input signal or resolution to a vector input signal or resolution, the block compares the scalar to each element of the vector.
When comparing a vector input signal to a vector resolution, the block compares the input signal to the resolution element-by-element.
For models with an input signal and resolution that are both vectors, the input signal and resolution must have the same dimensions.
Ports
Input
Output
Parameters
Model Examples
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|