Main Content

Operator to represent Bitwise and Logical Operator blocks


Optimize the generated code with Logical or Bitwise operators or a combination of both. The supported data type is Boolean.


Default: Same as modeled

Same as modeled

Generate code with operators as modeled in Simulink. Generates code with a combination of Bitwise and Logical operators if the model contains both Logical and Bitwise blocks.

Logical Operator

Generate code with Logical operators. Converts Bitwise operator blocks in the model to Logical operators in the generated code.

Bitwise Operator

Generate code with Bitwise operators. Converts Logical operators blocks in the model to Bitwise operators in the generated code. Selecting this option may improve ROM efficiency when the code contains Bitwise operators.


  • This parameter requires Embedded Coder®.

  • This parameter appears only for ERT-based targets.

Command-Line Information

Parameter: BitwiseOrLogicalOp
Value: 'Same as modeled' | 'Logical operator'| 'Bitwise operator'
Default: 'Same as modeled'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyBitwise operator (ROM efficiency)
Safety precautionNo impact

See Also


Related Topics