A current-generator circuit (100; 21) operable to generate an output current pulse (I load; I PROG) to be fed to an output load through an output leg (126; MBL J) to which the output load is coupled, comprising: - an output-current generator circuit (104; 11), including: • a control branch (106; 2) coupled to a control current generator (108; 4) that is configured to supply a control current pulse (I DAC), and • a program driver (110, 128; 5, 6, M), electrically coupled between the control branch (106; 2) and to the output leg (126; MBL J); and - a compensation circuit (112; 20), comprising: • a first compensation branch (114; 22), electrically connected in parallel to the control branch (106; 2), including a first compensation current generator (136; 26) configured to supply a first compensation current pulse (I bias) which is equal to, or a fraction (α) of, the control current pulse (I DAC); • a second compensation branch (116; 24), electrically connected in a current mirror configuration (118; 23) to the first compensation branch (114; 22) for receiving the first compensation current pulse (I bias), including a resistive block (120; 50) having an electrical resistance (R load '; R COMP) approximately equal to the resistance (R load) of the output load, wherein the second compensation branch (116; 24) is electrically connected to the control branch (106; 2) to supply the control branch (106; 2) with the compensation current pulse (I COMP) so that the compensation current pulse (I COMP) is added/subtracted to/from the control current pulse (I DAC) to generate a compensated current pulse (I CTR), and wherein the program driver (110, 128; 5, 6, M) is electrically connected, by means of a current mirror circuitry having a mirror gain, to the control branch (106; 2) and further electrically connected to the output leg (126; MBL J), to receive from the control branch (106; 2), through said current mirror circuitry, the compensated current pulse (I CTR) and to supply the program current pulse (I PROG) that has a value equal to the value of compensated current pulse (I CTR) amplified by said gain. - an output-current generator circuit (104; 11), including: • a control branch (106; 2) coupled to a control current generator (108; 4) that is configured to supply a control current pulse (I DAC), and • a program driver (110, 128; 5, 6, M), electrically coupled between the control branch (106; 2) and to the output leg (126; MBL J); and • a control branch (106; 2) coupled to a control current generator (108; 4) that is configured to supply a control current pulse (I DAC), and • a program driver (110, 128; 5, 6, M), electrically coupled between the control branch (106; 2) and to the output leg (126; MBL J); and - a compensation circuit (112; 20), comprising: • a first compensation branch (114; 22), electrically connected in parallel to the control branch (106; 2), including a first compensation current generator (136; 26) configured to supply a first compensation current pulse (I bias) which is equal to, or a fraction (α) of, the control current pulse (I DAC); • a second compensation branch (116; 24), electrically connected in a current mirror configuration (118; 23) to the first compensation branch (114; 22) for receiving the first compensation current pulse (I bias), including a resistive block (120; 50) having an electrical resistance (R load '; R COMP) approximately equal to the resistance (R load) of the output load, • a first compensation branch (114; 22), electrically connected in parallel to the control branch (106; 2), including a first compensation current generator (136; 26) configured to supply a first compensation current pulse (I bias) which is equal to, or a fraction (α) of, the control current pulse (I DAC); • a second compensation branch (116; 24), electrically connected in a current mirror configuration (118; 23) to the first compensation branch (114; 22) for receiving the first compensation current pulse (I bias), including a resistive block (120; 50) having an electrical resistance (R load '; R COMP) approximately equal to the resistance (R load) of the output load,