Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Change the line near the end to:
DATA<= unsigned(DATAi)-UNSIGNED(std_logic_vector'(X"80")) when SIGNED_DATA=0 else DATAi;
Note the change to enforce that the argument to UNSIGNED() is a std_logic_vector. Cheers, Dave --- Quote End --- Hai Dave, Thanks, its can simulate know..I have another question, can you help me to verify it. I have line code of bp<=SXT(a,9) + b and bp<= a+b, wheres a and b is std_logic_vector(7 downto 0) and bp is std_logic_vector(8 downto 0). My question is what the different between the two line codes? thanks in advance