A VHDL-AMS Configuration for Active Pixel Sensors