Skip to content

olo_fix_to_real

Back to Entity List

Status Information

VHDL Source: olo_fix_to_real
Bit-true Model: olo_fix_to_real

Description

This entity converts a a fixed-point number to real (floating-point).

Real numbers are not used for synthesis normally. The olo_fix_to_real entity has the following main use-case:

  • Create real representation of fixed-point values in simulation
    • Example: Motor controller simulation
    • The output of the motor controller entity is fixed point.
    • The physical motor model expects inputs in real format (easiest for modelling)
    • olo_fix_to_real is used to do the conversion

Note that this entity does not contain any pipeline registers. Real (floating-point) values do no exist in synthesized netlists - so the conversion mainly is executed in simulations. Hence no registers are needed.

For details about the fixed-point number format used in Open Logic, refer to the fixed point principles.

Generics

Name Type Default Description
AFmt_g string - Format of the input
String representation of an en_cl_fix Format_t (e.g. "(0,1,15)")

Interfaces

Input Data

Name In/Out Length Default Description
In_A in width(AFmt_g) - Input data

Output Data

Name In/Out Length Default Description
Out_Value out N/A (real) N/A Output data

Detail

No detailed description required. All details that could be mentioned here are already covered by fixed point principles.