Forum Discussion
Altera_Forum
Honored Contributor
14 years agoyou need to multiply by signed (or unsigned). You can just add a cast to std_logic i.e.
result <= std_logic_vector(signed(input)*constant);you need to multiply by signed (or unsigned). You can just add a cast to std_logic i.e.
result <= std_logic_vector(signed(input)*constant);