Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- actually the value must be divided by 32 and after multiply with 100? how i can multiply in vhdl? i am begginer. --- Quote End --- no first multiply then divide (the opposite is correct in theory and equivalent but difficult to implement) multiply using instant of lpm mult or just the operator * but convert to correct type e.g. result <= unsigned(value) * 100; -- 6 bits * 7 bits => 13 bits result_final <= result(12 downto 5);