Altera_Forum
Honored Contributor
14 years agoMultiplication by 0,6
Hi i have an input of 8 bits and i need to make a
multiplication by 0,6. I doesn't has to be precise so i thaught to do : INPUT * 19 /32 This is not a working code but is displays what i wanna do: array_amp_to_find(column_counter) <= std_logic_vector (to_unsigned ((to_integer(CAM_DATA)*19/32), 8)); Both input (CAM_DATA) and output (array_amp_to_find) are std_logic_vectors (7 downto 0). Q: How to make it work in one cycle? Or first the calculation then take the 8 LSB's?