Main Content

Supported Blocks for Halide Code Generation in Neighborhood Processing Subsystem

This list shows Simulink® blocks that support Halide code generation from the Neighborhood Processing Subsystem block. For more information about using Halide code to improve performance of generated code, see Speed Up Generated Code Execution with Halide Code.

Commonly Used Blocks

BlockRequisites
Gain

Block parameter Multiplication is set to Element-wise(.*)

Ground
Inport
Logical Operator
Outport
Product

Block parameter Multiplication is set to Element-wise(.*)

Relational Operator
Saturation
Sum
Terminator

Discontinuity Blocks

BlockRequisites
Saturation

Logic and Bit Operation Blocks

Math Operation Blocks

BlockRequisites
Bias
Divide
Gain

Block parameter Multiplication is set to Element-wise(.*)

Math Function

Block parameter Function is set to:

  • exp

  • log

  • 2^u

  • 10^u

  • log10

  • magnitude^2

  • square

  • pow

  • rem

  • mod

MinMax
Product

Block parameter Multiplication is set to Element-wise(.*)

Rounding Function

Block parameter Function is set to anything other than fix

Sqrt
Sum
Trigonometric Function
Unary Minus

Port & Subsystem Blocks

BlockRequisites
Inport
Outport

Signal Attribute Blocks

Signal Routing Blocks

BlockRequisites
From
Goto
Multiport Switch
SelectorBlock output must be scalar

Sink Blocks

BlockRequisites
Outport
Terminator

Source Blocks

BlockRequisites
Constant
Ground
Inport

Related Topics