Cast natural to std_logic_vector (and the other way)

Joined
Aug 14, 2006
Messages
1
Reaction score
0
Hi,

Is it possible to convert a variable of type natural to a std_logic_vector (and do the opposite). I am trying to do this and either I am not using the correct commands or the wrong library. Does anyone know how to do this?

I have used an integer instead but would like to know if it is possible.

Many Thanks
 

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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top