Integrated electronics for superconducting-nanowire single-photon detector readout | Synapse