A CNN-based neuromorphic model for classification and decision control