Fixed-Point Operator Replacement

Define code replacement mappings for fixed-point operations

Use the Code Replacement Tool or programming interface to define code replacement mappings for fixed-point operations, including shift left operations and different types of scaling — for example, binary point or net slope.

Tools

Code Replacement ToolCreate, modify, and validate content of code replacement libraries
Code Replacement ViewerExplore content of code replacement libraries

Functions

expand all

addEntryAdd table entry to collection of table entries registered in code replacement table
createCRLEntryCreate code replacement table entry from conceptual and implementation argument string specifications
RTW.TflBlasEntryGeneratorCreate code replacement table entry for a BLAS operation
RTW.TflCBlasEntryGeneratorCreate code replacement table entry for a CBLAS operation
RTW.TflCOperationEntryCreate code replacement table entry for an operator
RTW.TflCOperationEntryGeneratorCreate code replacement table entry for a fixed-point addition or subtraction operation
RTW.TflCOperationEntryGenerator_NetSlopeCreate code replacement table entry for a net slope fixed-point operation
RTW.TflCOperationEntryMLBase class for custom code replacement table operator entry
RTW.TflTableCreate code replacement table
setTflCOperationEntryParametersSet specified parameters for operator entry in code replacement table
addConceptualArgAdd conceptual argument to array of conceptual arguments for code replacement table entry
copyConceptualArgsToImplementationCopy conceptual argument specifications to implementation specifications of an entry for code replacement table entry
createAndAddImplementationArgCreate implementation argument from specified properties and add to implementation arguments for code replacement table entry
createAndSetCImplementationReturnCreate implementation return argument from specified properties and add to implementation for code replacement table entry
createCRLEntryCreate code replacement table entry from conceptual and implementation argument string specifications
createAndAddConceptualArgCreate conceptual argument from specified properties and add to conceptual arguments for code replacement table entry
getTflArgFromStringCreate code replacement argument based on specified name and built-in data type
addAdditionalHeaderFileAdd header file to array of header files for code replacement table entry
addAdditionalIncludePathAdd include path to array of include paths for code replacement table entry
addAdditionalLinkObjAdd link object to array of link objects for code replacement table entry
addAdditionalLinkObjPathAdd link object path to array of link object paths for code replacement table entry
addAdditionalSourceFileAdd source file to array of source files for code replacement table entry
addAdditionalSourcePathAdd source path to array of source paths for code replacement table entry
setTflCOperationEntryParametersSet specified parameters for operator entry in code replacement table
addComplexTypeAlignmentSpecify alignment boundary of a complex type
setReservedIdentifiersRegister reserved identifiers to associate with code replacement library

Topics

Fixed-Point Operator Code Replacement

Define code replacement mappings for fixed-point operators.

Binary-Point-Only Scaling Code Replacement

Define code replacement mappings for operations on fixed-point data types so that they match a binary-point-only scaling combination on operator inputs and output.

Slope Bias Scaling Code Replacement

Define code replacement mappings for operations on fixed-point data types as matching a slope bias scaling combination on the operator inputs and output.

Net Slope Scaling Code Replacement

Define a code replacement mapping for operations on fixed-point data types as matching net slope between operator inputs and output.

Equal Slope and Zero Net Bias Code Replacement

Define code replacement mappings for addition and subtraction of fixed-point data types so that they match relative slope and bias values (equal slope and zero net bias) across operator inputs and output.

Data Type Conversions (Casts) and Operator Code Replacement

Define code replacement mappings for code that the code generator produces for data type conversion (cast) operations.

Shift Left Operations and Code Replacement

Define code replacement mappings for code that the code generator produces for shift (<<) operations.

Related Information