convert

C

crazyrdx

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
 
N

Neo

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,915
Members
47,456
Latest member
JavierWalp

Latest Threads

Top