DAC and its subcircuits