Forum Discussion
Altera_Forum
Honored Contributor
13 years agoError: Type conversion (to UNSIGNED) can not have string literal operand
Hai all, I have run a testbench simulation in ModelSim and get this error: # ** Error: bmp_generator.vhd(401): Type conversion (to UNSIGNED) can not have string literal operand.# ** Error: ...
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