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

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top