PWM can be implemented using FPGA, and this video explains how to implement a PWM counter in FPGA.