Dec 6, 2012 #1 J jis Junior Member level 3 Joined Dec 17, 2011 Messages 27 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 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?
Hi all, Is it possible to convert real to integer type in vhdl?Is there any in-build function to do this conversion?
Dec 6, 2012 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,961 Helped 14,780 Reputation 29,845 Reaction score 14,249 Trophy points 1,393 Location Bochum, Germany Activity points 300,439 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.
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.
Dec 10, 2012 #3 J jis Junior Member level 3 Joined Dec 17, 2011 Messages 27 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,501 Thanks alot for helping me...