Main Content

Block Replacement

Define code replacement mappings for Simulink® blocks

Replace the code generated from specific Simulink blocks with custom implementation code. For computationally intensive blocks, you can replace default generated code with custom implementations such as library functions that are optimized for your target hardware.


RTW.TflBlockEntryCreate code replacement table entry for a block (Since R2024a)


RTW.BlockPropertyCreate a block property specification for a block replacement entry (Since R2024a)


RTW.CImplementationSpecify an implementation function for a block replacement entry (Since R2024a)