convert

C

crazyrdx

Guest
I have two std_logic_vectors x and y( bit sequences). First of all, how
do I add them? if i simply do x+y, i get an error. What is the best way
to do this? should i do a conversion(to_bitvector) or something else?

Thanks
raj
 
thats because logic types dont do arithmetic. use the ieee numeric
library or the std_logic_unsigned or std_logic_signed, then it will
work.
 

Welcome to EDABoard.com

Sponsor

Back
Top