System and Circuit Design for Biologically-inspired Intelligent Learning by