real to std_logic_vector conversion

Joined
Mar 10, 2008
Messages
348
Reaction score
0
Hi

Try typecast like integer1 := conv_integer( std_logic_vec1);
real1 := real( integer1);

integer2 := integer( real2);
std_vec2 := conv_std_logic_vector( integer2, 16);
 

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,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top