Robust implementation of cognitive computing computational primitives in mixed-signal neuromorphic processors