Type conversion in vhdl

Status
Not open for further replies.

jis

Junior Member level 3
Joined
Dec 17, 2011
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,501
Hi all,
Is it possible to convert real to integer type in vhdl?Is there any in-build function to do this conversion?
 

The simple answer is: yes. And the name of the conversion function is INTEGER(). It will take the integer part of the real argument.

I know, that people asking similar questions often want to implement fixed point numbers. But I trust in your ability of asking a clear question.
 
Reactions: jis

    jis

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…