floating point

Joined
Oct 18, 2007
Messages
2
Reaction score
0
can we assign a output as a real number?

can we assign a real signal to the outputs how to assign?


entity sreal is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
c : out --------); ---we should be the type
end sreal;

architecture Behavioral of sreal is

signal d,f,g:real;
begin
d<=0.001;
f<=d*0.2569;
g<=f*10000.0;
c<=g;---how to assign g to the c

end Behavioral;

---the code can not be sysnthesised can u give the correction in the code..
 

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,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top