A compute-in-memory chip based on resistive random-access memory | Synapse