TEXEL: A neuromorphic processor with on-chip learning for beyond-CMOS device integration