I am working on a vhdl/fpga project using the vga module. I am trying to make an object fall with an acceleration (gravity). I found an answer on another problem, and it suggest to implement something similar to these equations:
Position_next <= Position_reg + timestep*Velocity_reg ;
Velocity_next <= Velocity_reg + timestep*Acceleration ;
Where timesetp in my case is the frame time, which is 1/60fps. The acceleration(gravity) is going to be a constant number. The result of the two equations are a floating point. Which is a problem, since the minimum step my object can take is 1 pixel per frame. Any idea how to solve this problem.