Design of robust ultra-low power platform for in-silicon machine learning