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.