A programmable VLSI architecture based on multilayer CNN paradigms for real-time visual processing