Digital "Intelligent Memory Chips" Build Neural Networks with Fully Programmable Synaptic Weights