A light detection and ranging, LiDAR, chip of a solid state frequency modulated continuous wave, FMCW, LiDAR system, the LiDAR chip comprising: an optical switch network on the LiDAR chip, the optical switch network configured to selectively provide coherent light to one or more of a plurality of output waveguides ; a switchable coherent pixel array , SCPA, on the LiDAR chip, the SCPA including coherent pixels , CPs, and each of the CPs configured to emit coherent light provided by a corresponding output waveguide of the plurality of output waveguides; a monitoring assembly that is on the LiDAR chip, the monitoring assembly including a plurality of photodetectors , and each of the plurality of photodetectors configured to generate an output signal responsive to a level of light detected from a corresponding output waveguide of the plurality of output waveguides; a first splitter on the LiDAR chip, the first splitter configured to split coherent light into a first portion and a second portion, wherein the coherent light is chirped according to a waveform and the second portion of coherent light is the coherent light that the optical switch network selectively provides to the one or more of the plurality of output waveguides; and an interferometer on the LiDAR chip, the interferometer configured to generate an in- phase, I, signal and a quadrature, Q, signal using the first portion of the coherent light, wherein a shape of the waveform is controlled based in part on the I and Q signals in order to compensate for deviations in a laser frequency, wherein the optical switch network is calibrated by adjusting a drive strength of switch drivers for the optical switch network based on output signals from the monitoring assembly. an optical switch network on the LiDAR chip, the optical switch network configured to selectively provide coherent light to one or more of a plurality of output waveguides ; a switchable coherent pixel array , SCPA, on the LiDAR chip, the SCPA including coherent pixels , CPs, and each of the CPs configured to emit coherent light provided by a corresponding output waveguide of the plurality of output waveguides; a monitoring assembly that is on the LiDAR chip, the monitoring assembly including a plurality of photodetectors , and each of the plurality of photodetectors configured to generate an output signal responsive to a level of light detected from a corresponding output waveguide of the plurality of output waveguides; a first splitter on the LiDAR chip, the first splitter configured to split coherent light into a first portion and a second portion, wherein the coherent light is chirped according to a waveform and the second portion of coherent light is the coherent light that the optical switch network selectively provides to the one or more of the plurality of output waveguides; and an interferometer on the LiDAR chip, the interferometer configured to generate an in- phase, I, signal and a quadrature, Q, signal using the first portion of the coherent light, wherein a shape of the waveform is controlled based in part on the I and Q signals in order to compensate for deviations in a laser frequency, wherein the optical switch network is calibrated by adjusting a drive strength of switch drivers for the optical switch network based on output signals from the monitoring assembly. <EOS>