Design and Evaluation of a Heterogeneous Multicore SoC with 9 CPUs and 2 Matrix Processors