iterative fixed-凯发k8网页登录

main content

iterative fixed-point conversion using the fixed-point tool

the fixed-point tool is a user interface that automates the task of specifying fixed-point data types in a simulink® model. the tool collects range data for model objects. the range data comes from:

  • design minimum and maximum values that objects specify explicitly on the block

  • logged minimum and maximum values that occur during simulation

  • minimum and maximum values derived using range analysis

based on these values, the tool in the iterative fixed-point conversion workflow proposes fixed-point data types that maximize precision and cover the range. you can then review the data type proposals and apply them selectively to objects in your model. this process is also known as autoscaling. using the iterative fixed-point conversion workflow in the fixed-point tool you can:

  • derive range information based on specified design ranges. see how range analysis works.

  • propose and apply data types based on simulation data.

  • propose and apply data types based on derived ranges.

  • propose and apply data types based on simulation data from multiple runs. see .

  • propose and apply data types based on simulation data and derived ranges.

  • debug fixed-point models.

workflow for automatic data typing

autoscaling workflow for converting a floating-point model to fixed point using the iterative fixed-point conversion workflow in the fixed-point tool.

the iterative fixed-point conversion workflow for automatic data typing consists of four main stages.

  1. before you begin conversion, set up the model in simulink. then select the system to convert to fixed point. the fixed-point tool will propose data types for the objects in the specified system.

    select whether to collect ranges through simulation, derived range analysis, or simulation with range analysis. you can specify multiple simulation scenarios using a object. specify signal tolerances to use to verify the behavior of the converted system.

    automatically prepare the system under design for conversion by clicking the prepare button in the fixed-point tool toolstrip. the fixed-point tool analyzes your model and makes configuration recommendations for autoscaling.

  2. run the simulation or the derivation. when the simulation or derivation is complete, you can examine the ranges of objects in your model using the histograms in the visualization of simulation data pane.

  3. the fixed-point tool proposes data types based on the ranges collected in stage two. you can edit the default word length and other proposal settings in the settings menu. to generate proposals, click propose data types. if you are satisfied with the proposals, click apply data types.

  4. simulate your model using the newly applied fixed-point data types to examine the behavior of the fixed-point model. you can compare the floating point and fixed-point behavior using the simulation data inspector.

  5. after verification, if you determine that the behavior of the system is not acceptable, you can iterate through the conversion and verification steps until you settle on a design that satisfies your system requirements.

related topics

    网站地图