Digital to Analog using op amp. The top switch is the least significant bit. If I close just the top switch 0001 the output is negative 1 volt. The bottom switch is the most significant bit. If close just the bottom switch 1000 the output is negative 8 volts. If you close both the top and bottom switch 1001 the output is negative 9 volts.