GeekWizard
Full Member level 1
- Joined
- Oct 24, 2004
- Messages
- 98
- Helped
- 5
- Reputation
- 10
- Reaction score
- 2
- Trophy points
- 1,288
- Location
- United Kingdom
- Activity points
- 853
Hello,
I know that integer's range is upto 2^31 - 1. But does this condition apply to the every number in the equation that would result in an integer ?
e.g.
2**48 is beyond integer range but the resulting value for factor is within. Still the ouptut is zero ! ?
I do not want to use 'real' as its in conflict with conv_std_logic_vector function.
Thanks!
I know that integer's range is upto 2^31 - 1. But does this condition apply to the every number in the equation that would result in an integer ?
e.g.
Code:
signal factor : integer ;
begin
factor <= (2**48) / (300E6) ;
factor_bin <= conv_std_logic_vector (factor,20);
2**48 is beyond integer range but the resulting value for factor is within. Still the ouptut is zero ! ?
I do not want to use 'real' as its in conflict with conv_std_logic_vector function.
Thanks!