Fixed-Point Operator Replacement - MATLAB & Simulink (original) (raw)
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 Tool | Create, modify, and validate content of code replacement libraries |
---|---|
Code Replacement Viewer | Explore content of code replacement libraries |
Functions
addEntry | Add table entry to collection of table entries registered in code replacement table |
---|---|
createCRLEntry | Create code replacement table entry from conceptual and implementation argument string specifications |
RTW.TflBlasEntryGenerator | Create code replacement table entry for a BLAS operation |
RTW.TflCBlasEntryGenerator | Create code replacement table entry for a CBLAS operation |
RTW.TflCOperationEntry | Create code replacement table entry for an operator |
RTW.TflCOperationEntryGenerator | Create code replacement table entry for a fixed-point addition or subtraction operation |
RTW.TflCOperationEntryGenerator_NetSlope | Create code replacement table entry for a net slope fixed-point operation |
RTW.TflCOperationEntryML | Custom code replacement table operation entry |
RTW.TflTable | Create code replacement table |
setTflCOperationEntryParameters | Set specified parameters for operator entry in code replacement table |
addConceptualArg | Add conceptual argument to array of conceptual arguments for code replacement table entry |
---|---|
copyConceptualArgsToImplementation | Copy conceptual argument specifications to implementation specifications of an entry for code replacement table entry |
createAndAddImplementationArg | Create implementation argument from specified properties and add to implementation arguments for code replacement table entry |
createAndSetCImplementationReturn | Create implementation return argument from specified properties and add to implementation for code replacement table entry |
createCRLEntry | Create code replacement table entry from conceptual and implementation argument string specifications |
createAndAddConceptualArg | Create conceptual argument from specified properties and add to conceptual arguments for code replacement table entry |
getTflArgFromString | Create code replacement argument based on specified name and built-in data type |
addAdditionalHeaderFile | Add header file to array of header files for code replacement table entry |
---|---|
addAdditionalIncludePath | Add include path to array of include paths for code replacement table entry |
addAdditionalLinkObj | Add link object to array of link objects for code replacement table entry |
addAdditionalLinkObjPath | Add link object path to array of link object paths for code replacement table entry |
addAdditionalSourceFile | Add source file to array of source files for code replacement table entry |
addAdditionalSourcePath | Add source path to array of source paths for code replacement table entry |
setTflCOperationEntryParameters | Set specified parameters for operator entry in code replacement table |
addComplexTypeAlignment | Specify alignment boundary of a complex type |
---|---|
setReservedIdentifiers | Register 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.