There are different methods to measure current. One method is to use a resistor across a current output and measure the voltage. The voltage across the resistor is measured using ohm's law: where I is ...
Now, the thing to remember is that we are using a CD4512 chip, whose truth table is shown below. The important thing to note here is that, in addition to the three multiplexer select controls, A, B, ...