Forum Discussion
Altera_Forum
Honored Contributor
15 years agoerror: can't defined "/" operator
Hello everyone, Here is my code where I want to add two values of a vector. For example, I have a vector (3,4) and I want to do like this; (3+4)/2; Package my_data_types is Type vec...
Altera_Forum
Honored Contributor
15 years agothe problem is because there is no "/" operator for the vector_next type. try this instead:
temp(0) := ((Ra(0) + Ra(1))/2); O also assume this is just a model, because A <= temp(0 downto 0) after 20ns; is not synthesisable - the delay will be ignored when you compile.