Forum Discussion
Altera_Forum
Honored Contributor
13 years agoChange 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