An integrated mixed-signal circuit for computing a weighted sum computation, comprising: a plurality of programmable current sources arranged in pairs, a first programmable current source in each pair of programmable current sources is configured to store a value indicative of a positive weight and a second programmable current source in each pair of programmable current sources is configured to store a value indicative of a negative weight, each programmable current source has an input terminal and an output terminal, such that output terminals of the first programmable current sources are electrically coupled together at a positive summation node and output terminals of the second programmable current sources are electrically coupled together at a negative summation node; an input circuit electrically coupled to each pair of programmable current sources in the plurality of programmable current sources and operates to supply an analog signal current to each pair of programmable current sources in the plurality of programmable current sources; a comparison circuit electrically coupled to the positive summation node and the negative summation node, wherein the comparison circuit operates to compare voltages at the positive summation node and the negative summation node to each other and outputs a signal indicative of the comparison result; a differential current circuit electrically coupled to the positive summation node and the negative summation node and operates to supply a current to each of the positive summation node and the negative summation node, wherein the current supplied to the positive summation node exhibits a difference with the current supplied to the negative summation node; and a controller interfaced with the differential current circuit for interacting with the differential current circuit and the comparison circuit for receiving the signal output by the comparison circuit, wherein the controller interacts with the differential current circuit to change a magnitude of the difference between the current supplied to the positive summation node and the current supplied to the negative summation node. a plurality of programmable current sources arranged in pairs, a first programmable current source in each pair of programmable current sources is configured to store a value indicative of a positive weight and a second programmable current source in each pair of programmable current sources is configured to store a value indicative of a negative weight, each programmable current source has an input terminal and an output terminal, such that output terminals of the first programmable current sources are electrically coupled together at a positive summation node and output terminals of the second programmable current sources are electrically coupled together at a negative summation node; an input circuit electrically coupled to each pair of programmable current sources in the plurality of programmable current sources and operates to supply an analog signal current to each pair of programmable current sources in the plurality of programmable current sources; a comparison circuit electrically coupled to the positive summation node and the negative summation node, wherein the comparison circuit operates to compare voltages at the positive summation node and the negative summation node to each other and outputs a signal indicative of the comparison result; a differential current circuit electrically coupled to the positive summation node and the negative summation node and operates to supply a current to each of the positive summation node and the negative summation node, wherein the current supplied to the positive summation node exhibits a difference with the current supplied to the negative summation node; and a controller interfaced with the differential current circuit for interacting with the differential current circuit and the comparison circuit for receiving the signal output by the comparison circuit, wherein the controller interacts with the differential current circuit to change a magnitude of the difference between the current supplied to the positive summation node and the current supplied to the negative summation node.