Fixed bit-width for sine functions and added smooth ramp wave