Main Content

Check for Relational Operator block usage

Check ID:com.mathworks.HDL.ModelChecker.runNFPRelopChecks

Check ID:com.mathworks.HDL.ModelAdvisor.runNFPRelopChecks

Check Relational Operator blocks which use floating point types have boolean outputs.

Description

This check displays a warning if your Simulink®model containsRelational Operatorblocks that compare floating-point data types and produce a nonboolean output. By default, theOutput data typeof the block isboolean. If you specify a nonboolean output, the block implementation after HDL code generation is not optimal, and can increase the resource usage on the target hardware device.

Results and Recommended Actions

To fix this warning, clickModify Settingsand the code generator changes theOutput data typeof the block toboolean.

See Also

Relational Operator