Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Rather far from a clear question. I guess, you want the std_logic_vector to represent a number. But you have to specify the number format, e.g. signed or unsigned, fractional or integer, possibly a float format?
In synthesizable VHDL, real type can exist only as a constant or a variable for compile time calculation. Is that, what you intend?
I guess, you want the std_logic_vector to represent a number. But you have to specify the number format, e.g. signed or unsigned, fractional or integer, possibly a float format?
In synthesizable VHDL, real type can exist only as a constant or a variable for compile time calculation. Is that, what you intend?
My answers and comments;
The format will be signed and float number (floating point). In other words, I will like to know how convert STD_LOGIC_VECTOR to SIGNED FLOAT NUMBER.
In other words, you want to know, how real numbers can be represented by std_logic_vector using a floating point format?
IEEE 754 defines the float formats, that are mostly used. These standard formats are known as single and double in C language implementation. Float IP provided by programmable logic vendors uses either this standard formats or custom specific formats with parameterizable mantissa and exponent width.
The VHDL float package can be used as a starting point **broken link removed**
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.