optic.models.devices.dac

dac(Ei, param)

Digital-to-analog converter (DAC) model.

Parameters:
  • Ei (ndarray) – Input signal.

  • param (optic.utils.parameters object, optional) –

    Parameters of the DAC model.

    • param.inFs : sampling frequency of the input signal [samples/s][default: 1 sample/s]

    • param.outFs : sampling frequency of the output signal [samples/s][default: 1 sample/s]

    • param.nBits : number of bits used for quantization [default: 8 bits]

    • param.ENOB : effective number of bits of the DAC [default: 8 bits]

    • param.jitter : jitter rms in seconds [s][default: 0 s]

    • param.Vpp : peak-to-peak voltage of the DAC’s output signal [V][default: 2 V]

    • param.AIF : flag indicating whether to use anti-imaging filters [default: True]

    • param.N : number of taps of the anti-imaging filters [default: 201]

Returns:

Eo – Resampled and quantized signal.

Return type:

ndarray

Notes

  • The input signal will be clipped to the range [Vmin, Vmax] before quantization.

  • If AIF is enabled, anti-imaging filters will be applied to the output signal after quantization to mitigate imaging effects.