Update wave_generator.py

Fixed logic ports returning boolean instead of integers