Monday, April 26, 2010

Variable as real

i have to find velocity with Quadrature decoded singnal. the equation is
velocity =(60*y)/(36*30), Where y is the count which is an integer variable.when i declare the velocity as "Real" i got compilation error message "non constant real variable cannot synthesize". how can i get fractional values of velocity?

No comments:

Post a Comment