Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Xiao Bai asked how to write vhdl integers, such as how to get its ten digits from a two-digit A.
Xiao Bai asked how to write vhdl integers, such as how to get its ten digits from a two-digit A.
I don't quite understand what you mean.

Is it necessary to use vhdl to convert floating-point numbers into integers?

If so, for example, a data has four digits in the integer part and three digits in the decimal part.

Then directly take 4 bits of the integer part and assign them to a new register to achieve the purpose of rounding.