The circuit in the figure is based on an LM101A; diodes can be replaced with equivalents. The operational can also be replaced by an equivalent and the power supply must be symmetrical. The reference voltage input Vref must have an impedance of less than 200 ohms if D2 is used.