fixpt_convert_prep
Prepare a Simulink model for more complete conversion to fixed point.
Syntax
fixpt_convert_prep('SystemName')
Description
fixpt_convert_prep('SystemName')
prepares the Simulink model or subsystem specified by SystemName
 for more complete conversion (less encapsulation) to fixed point using the fixpt_convert
 function. It does so by replacing this select set of blocks:
Old style Latch blocks - Old style Latch blocks are replaced with a version contained in theÂ
fixpt_convert_lib
 library. The old style Latch block contains a Transport Delay block, which is a very inefficient implementation for both floating point and fixed point.
Function blocks acting like selectors - Function blocks acting like selectors are replaced with the Selector block. Function blocks acting like selectors require that you specify the width of the input. To get this information, the model must be put into compile mode, which is inefficient.
A select set of additional function blocks - You can replace function blocks that have replacements in theÂ
fixpt_convert_lib
 library. Alternatively, you can useÂfixpt_convert_prep
 as a prototype for creating a customized list of function blocks to be replaced. To do this, copy the function and the library to another directory, and then customize the library to include function blocks that you commonly encounter when converting models from floating point to fixed point.
This function is meant to be a starting point for customizing the Simulink to Fixed-Point Blockset conversion process.
Â