Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- you need sign extend: data_24 <= std_logic_vector(resize(signed(data_23)),24) + resize(signed(data_23b)),24); --- Quote End --- i have tried the above code .Why you are mentioning signed and then std_logic_vector for performing addition.Is data_24 a signed number or unsigned number or you have mentioned it with std_logic_vector?.can you show it with an example in vhdl code?