A Full-Stack, Energy-efficient 8-Mb NOR-Flash Compute-in-Memory SoC with On-chip Acceleration and End-to-end Toolchain for Edge AI | Synapse