A SoC Based on a Neural Network for Embedded Smart Applications