Fixed-Point Operator Replacement
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
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 such 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.