journal article·2025-01-21Open access

MAIL: Micro-Accelerator-in-the-Loop Framework for MCU Integrated Accelerator Peripheral Fast Prototyping

Jisu Kwon, Daejin Park

Applied Sciences· Volume 15· Issue 3

Abstract

The resource-constrained MCU-based platform is unable to use high-performance accelerators such as GPUs or servers due to insufficient resources for ML applications. We define a Micro-Accelerator (MA) that can accelerate ML operations by being connected to the on-chip bus peripheral of the MCU core. ML applications using general-purpose accelerators have a well-equipped SDK environment, making design and verification flow straightforward. In contrast, MA must be connected to the MCU core and on-chip bus interface within the chip. However, evaluating the interaction between the MCU core and an MA is challenging, as it requires the MA to connect with the core and the on-chip bus interface during target software execution. The cost of fabricating physical MA hardware is enormous, compounded by licensing issues with commercial cores. We propose a MA-in-the-loop (MAIL) framework that integrates a custom-designed MA into an emulation platform. This platform enables virtual execution by loading software onto the MCU, allowing observation of hardware-software interactions during ML execution. The proposed framework in this paper is a mixture of software that can emulate the environment in which general ML applications run on the MCU and RTL simulations to profile the acceleration on the MA. To evaluate the flow of ML software execution and performance changes according to the various architectures of MA in the framework, the MA can be reconfigured at runtime to explore the design space. To benchmark our proposed framework, we compared TinyML application profiles to the pure software execution. Experimental results show that the MA-accelerated framework performs comparably to actual MCUs, validating the efficacy of the proposed approach.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Particle Detector Development and Performance · Radiation Effects in Electronics · Real-time simulation and control systems

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Electronic and Electrical Engineering, Kyungpook National University, Daegu 41566, Republic of Korea

Funding

Brain Korea 21 4th Generation (BK21 FOUR) Project · National Research Foundation of Korea (NRF) · Ministry of Education · Communications Technology Planning and Evaluation (IITP) · Ministry of Science and Information Communication Technology (MSIT) · Processing-in-Memory Computing (PIM) Semiconductor Design Research Center · Development of Flexible Software-Hardware (SW-HW) Conjunctive Solution for On-Edge Self-Supervised Learning

References (30)

Show source-provided references
1. Nurvitadhi, E., Sheffield, D., Sim, J., Mishra, A., Venkatesh, G., and Marr, D. (2016, January 7–9). Accelerating Binarized Neural Networks: Comparison of FPGA, CPU, GPU, and ASIC. Proceedings of the 2016 International Conference on Field-Programmable Technology (FPT), Xi’an, China.10.1109/FPT.2016.7929192 ↗
2. Xiong, Y., Liu, H., Gupta, S., Akin, B., Bender, G., Wang, Y., Kindermans, P.J., Tan, M., Singh, V., and Chen, B. (2021, January 20–25). MobileDets: Searching for Object Detection Architectures for Mobile Accelerators. Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA.10.1109/CVPR46437.2021.00382 ↗
3. Eyeriss v2: A Flexible Accelerator for Emerging Deep Neural Networks on Mobile Devices10.1109/JETCAS.2019.2910232 ↗
4. Machine Learning for Microcontroller-Class Hardware: A Review10.1109/JSEN.2022.3210773 ↗
5. Novac, P.E., Boukli Hacene, G., Pegatoquet, A., Miramond, B., and Gripon, V. (2021). Quantization and Deployment of Deep Neural Networks on Microcontrollers. Sensors, 21.10.3390/s21092984 ↗
6. Google Inc. (2024, November 21). TensorFlow Lite for Microcontrollers. Available online: https://github.com/tensorflow/tflite-micro.
7. Lin, J., Chen, W.M., Cohn, J., Gan, C., and Han, S. (2020, January 6–12). MCUNet: Tiny Deep Learning on IoT Devices. Proceedings of the Annual Conference on Neural Information Processing Systems (NeurIPS), Online.
8. Banbury, C., Zhou, C., Fedorov, I., Matas, R., Thakker, U., Gope, D., Janapa Reddi, V., Mattina, M., and Whatmough, P. (2021, January 5–9). MicroNets: Neural Network Architectures for Deploying TinyML Applications on Commodity Microcontrollers. Proceedings of the Machine Learning and Systems (MLSys), Online.
9. MAESTRO: A Data-Centric Approach to Understand Reuse, Performance, and Hardware Cost of DNN Mappings10.1109/MM.2020.2985963 ↗
10. Seok, M.G., Sarjoughian, H.S., and Park, D. (2019, January 21–24). A High-Level Modeling and Simulation Approach Using Test-Driven Cellular Automata for Fast Performance Analysis of RTL NoC Designs. Proceedings of the 24th Asia and South Pacific Design Automation Conference, ASPDAC’19, Tokyo, Japan.10.1145/3287624.3287648 ↗
11. Kwon, J., Oh, S., and Park, D. (2021, January 22–28). Metamorphic Edge Processor Simulation Framework Using Flexible Runtime Partial Replacement of Software-Embedded Verilog RTL Models. Proceedings of the 2021 IEEE International Symposium on Circuits and Systems (ISCAS), Daegu, Republic of Korea.10.1109/ISCAS51556.2021.9401354 ↗
12. DSORT-MCU: Detecting Small Objects in Real-Time on Microcontroller Units10.1109/JSEN.2024.3425904 ↗
13. Deeploy: Enabling Energy-Efficient Deployment of Small Language Models on Heterogeneous Microcontrollers10.1109/TCAD.2024.3443718 ↗
14. Ng, W.S., Goh, W.L., and Gao, Y. (2024, January 19–22). High Accuracy and Low Latency Mixed Precision Neural Network Acceleration for TinyML Applications on Resource-Constrained FPGAs. Proceedings of the 2024 IEEE International Symposium on Circuits and Systems (ISCAS), Singapore.10.1109/ISCAS58744.2024.10558440 ↗
15. Jouppi, N.P., Young, C., Patil, N., Patterson, D., Agrawal, G., Bajwa, R., Bates, S., Bhatia, S., Boden, N., and Borchers, A. (2017, January 24–28). In-Datacenter Performance Analysis of a Tensor Processing Unit. Proceedings of the 44th Annual International Symposium on Computer Architecture, ISCA ’17, Toronto, ON, Canada.10.1145/3079856.3080246 ↗
16. Scherer, M., Di Mauro, A., Rutishauser, G., Fischer, T., and Benini, L. (2022, January 20–22). A 1036 TOp/s/W, 12.2 mW, 2.72 uJ/Inference All Digital TNN Accelerator in 22 nm FDX Technology for TinyML Applications. Proceedings of the 2022 IEEE Symposium in Low-Power and High-Speed Chips (COOL CHIPS), Tokyo, Japan.10.1109/COOLCHIPS54332.2022.9772668 ↗
17. iMCU: A 28-nm Digital In-Memory Computing-Based Microcontroller Unit for TinyML10.1109/JSSC.2024.3362274 ↗
18. Custom Hardware Inference Accelerator for TensorFlow Lite for Microcontrollers10.1109/ACCESS.2022.3189776 ↗
19. Prakash, S., Callahan, T., Bushagour, J., Banbury, C., Green, A.V., Warden, P., Ansell, T., and Reddi, V.J. (2023, January 23–25). CFU Playground: Full-Stack Open-Source Framework for Tiny Machine Learning (TinyML) Acceleration on FPGAs. Proceedings of the 2023 IEEE International Symposium on Performance Analysis of Systems and Software, ISPASS 2023, Raleigh, NC, USA.10.1109/ISPASS57527.2023.00024 ↗
20. Vaverka, F., Mrazek, V., Vasicek, Z., and Sekanina, L. (2020, January 9–13). TFApprox: Towards a Fast Emulation of DNN Approximate Hardware Accelerators on GPU. Proceedings of the 2020 Design, Automation Test in Europe Conference Exhibition (DATE), Grenoble, France.10.23919/DATE48585.2020.9116299 ↗
21. Genc, H., Kim, S., Amid, A., Haj-Ali, A., Iyer, V., Prakash, P., Zhao, J., Grubb, D., Liew, H., and Mao, H. (2021, January 5–9). Gemmini: Enabling Systematic Deep-Learning Architecture Evaluation via Full-Stack Integration. Proceedings of the 2021 58th ACM/IEEE Design Automation Conference (DAC), San Francisco, CA, USA.10.1109/DAC18074.2021.9586216 ↗
22. Samajdar, A., Joseph, J.M., Zhu, Y., Whatmough, P., Mattina, M., and Krishna, T. (2020, January 23–25). A Systematic Methodology for Characterizing Scalability of DNN Accelerators using SCALE-Sim. Proceedings of the 2020 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), Boston, MA, USA.10.1109/ISPASS48437.2020.00016 ↗
23. Parashar, A., Raina, P., Shao, Y.S., Chen, Y.H., Ying, V.A., Mukkara, A., Venkatesan, R., Khailany, B., Keckler, S.W., and Emer, J. (2019, January 24–26). Timeloop: A Systematic Approach to DNN Accelerator Evaluation. Proceedings of the 2019 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), Madison, WI, USA.10.1109/ISPASS.2019.00042 ↗
24. Wu, Y.N., Emer, J.S., and Sze, V. (2019, January 4–7). Accelergy: An Architecture-Level Energy Estimation Methodology for Accelerator Designs. Proceedings of the 2019 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), Westminster, CO, USA.10.1109/ICCAD45719.2019.8942149 ↗
25. Kwon, H., Chatarasi, P., Pellauer, M., Parashar, A., Sarkar, V., and Krishna, T. (2019, January 12–16). Understanding reuse, performance, and hardware cost of DNN dataflows: A data-centric approach. Proceedings of the MICRO ’52: 52nd Annual IEEE/ACM International Symposium on Microarchitecture, Columbus, OH, USA.10.1145/3352460.3358252 ↗
26. (2024, November 21). xPack QEMU Arm. Available online: https://xpack.github.io/qemu-arm/.
27. Wang, S., Zhou, D., Han, X., and Yoshimura, T. (2017, January 27–31). Chain-NN: An energy-efficient 1D chain architecture for accelerating deep convolutional neural networks. Proceedings of the Design, Automation & Test in Europe Conference & Exhibition (DATE), 2017, Lausanne, Switzerland.10.23919/DATE.2017.7927142 ↗
28. (2024, November 21). TensorFlow Lite for Microcontrollers (Micro Speech Example). Available online: https://github.com/tensorflow/tflite-micro/tree/1b68490dcfd087c308a1f8d14012ab1cb39c9ac0/tensorflow/lite/micro/examples/magic_wand.
29. (2023, March 28). TensorFlow Lite for Microcontrollers (Magic Wand Example). Available online: https://github.com/tensorflow/tflite-micro/tree/main/tensorflow/lite/micro/examples/micro_speech.
30. STMicroelectronics (2024, November 21). AI expansion pack for STM32CubeMX. Available online: https://www.st.com/en/embedded-software/x-cube-ai.html.