Photonic digital-to-analog and analog-to-digital conversion based on frequency chirp in SOAs