Simulation of an Open-Hardware RISC-V Coprocessor for Low-Power Medical Artificial Intelligence

Authors

Cecilia Hernández Serrano

Instituto Tecnológico de Pachuca, Hidalgo, México (México)

Luna Nirel Jiménez Montiel

Instituto Tecnológico de Pachuca, Hidalgo, México (México)

Article Information

DOI: 10.47772/IJRISS.2026.102500040

Subject Category: Education

Volume/Issue: 10/25 | Page No: 620-632

Publication Timeline

Submitted: 2026-10-29

Accepted: 2026-11-03

Published: 2026-11-24

Abstract

The objective of this work was to evaluate, through simulation, whether a simple open-hardware coprocessor coupled to a RISC-V core can run medical artificial intelligence on low-power devices. The EdgeMAC coprocessor was designed; it adds three custom instructions: bias loading, four parallel 8-bit multiply-accumulate operations, and requantization. An instruction-level simulator was developed with a cycle model based on an open microcontroller core and a first-order energy model. A three-layer neural network that classifies breast tumors as benign or malignant from a public dataset was trained, quantized to 8-bit integers, and executed on three configurations: a core without a multiplier, a core with a 32-bit multiplier, and the core with the coprocessor. The quantized model kept an accuracy of 95.6% and a sensitivity of 97.6% on 114 test cases, identical to the floating-point model. The coprocessor reduced the cost of each diagnosis from 17,496 to 2,187 clock cycles, 8.0 times fewer than the core with a multiplier and 102.8 times fewer than the core without a multiplier, and the estimated dynamic energy, a lower bound, fell from 85.3 to 13.1 nanojoules. It is concluded that a minimal instruction-set extension is enough to bring assisted diagnosis to battery-powered portable devices and that, once arithmetic is accelerated, instruction and data access become the next limit. The originality lies in a reproducible methodology, built only with free tools, that enables students and institutions with limited resources to explore hardware-software co-design for socially oriented artificial intelligence.

Keywords

coprocessor, RISC-V, embedded machine learning, quantization, medical artificial intelligence, low power

Downloads

References

1. Asanović, K., & Patterson, D. A. (2014). Instruction sets should be free: The case for RISC-V (Technical Report No. UCB/EECS-2014-146). University of California, Berkeley. [Google Scholar] [Crossref]

2. David, R., Duke, J., Jain, A., Janapa Reddi, V., Jeffries, N., Li, J., Kreeger, N., Nappier, I., Natraj, M., Wang, T., Warden, P., & Rhodes, R. (2021). TensorFlow Lite Micro: Embedded machine learning for TinyML systems. Proceedings of Machine Learning and Systems, 3. https://proceedings.mlsys.org/paper_files/paper/2021/hash/6c44dc73014d66ba49b28d483a8f8b0d-Abstract.html [Google Scholar] [Crossref]

3. Garofalo, A., Rusci, M., Conti, F., Rossi, D., & Benini, L. (2020). PULP-NN: Accelerating quantized neural networks on parallel ultra-low-power RISC-V processors. Philosophical Transactions of the Royal Society A, 378(2164), 20190155. https://doi.org/10.1098/rsta.2019.0155 [Google Scholar] [Crossref]

4. Gautschi, M., Schiavone, P. D., Traber, A., Loi, I., Pullini, A., Rossi, D., Flamand, E., Gürkaynak, F. K., & Benini, L. (2017). Near-threshold RISC-V core with DSP extensions for scalable IoT endpoint devices. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 25(10), 2700–2713. https://doi.org/10.1109/TVLSI.2017.2654506 [Google Scholar] [Crossref]

5. Hennessy, J. L., & Patterson, D. A. (2019). A new golden age for computer architecture. Communications of the ACM, 62(2), 48–60. https://doi.org/10.1145/3282307 [Google Scholar] [Crossref]

6. Horowitz, M. (2014). Computing’s energy problem (and what we can do about it). In 2014 IEEE International Solid-State Circuits Conference Digest of Technical Papers (pp. 10–14). IEEE. [Google Scholar] [Crossref]

7. Jacob, B., Kligys, S., Chen, B., Zhu, M., Tang, M., Howard, A., Adam, H., & Kalenichenko, D. (2018). Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 2704–2713). https://doi.org/10.1109/CVPR.2018.00286 [Google Scholar] [Crossref]

8. Lai, L., Suda, N., & Chandra, V. (2018). CMSIS-NN: Efficient neural network kernels for Arm Cortex-M CPUs [Preprint]. arXiv. https://doi.org/10.48550/arXiv.1801.06601 [Google Scholar] [Crossref]

9. Land, K. J., Boeras, D. I., Chen, X.-S., Ramsay, A. R., & Peeling, R. W. (2019). REASSURED diagnostics to inform disease control strategies, strengthen health systems and improve patient outcomes. Nature Microbiology, 4(1), 46–54. https://doi.org/10.1038/s41564-018-0295-3 [Google Scholar] [Crossref]

10. OpenHW Group. (n.d.). CV32E40P user manual: Pipeline details. Retrieved October 28, 2026, from https://cv32e40p.readthedocs.io/en/latest/pipeline.html [Google Scholar] [Crossref]

11. Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, É. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830. [Google Scholar] [Crossref]

12. Prakash, S., Callahan, T., Bushagour, J., Banbury, C., Green, A. V., Warden, P., Ansell, T., & Janapa Reddi, V. (2023). CFU Playground: Full-stack open-source framework for tiny machine learning (TinyML) acceleration on FPGAs. In 2023 IEEE International Symposium on Performance Analysis of Systems and Software (pp. 157–167). IEEE. https://doi.org/10.1109/ISPASS57527.2023.00024 [Google Scholar] [Crossref]

13. Shi, W., Cao, J., Zhang, Q., Li, Y., & Xu, L. (2016). Edge computing: Vision and challenges. IEEE Internet of Things Journal, 3(5), 637–646. https://doi.org/10.1109/JIOT.2016.2579198 [Google Scholar] [Crossref]

14. Street, W. N., Wolberg, W. H., & Mangasarian, O. L. (1993). Nuclear feature extraction for breast tumor diagnosis. In Biomedical Image Processing and Biomedical Visualization (Proceedings of SPIE, Vol. 1905, pp. 861–870). https://doi.org/10.1117/12.148698 [Google Scholar] [Crossref]

15. Sze, V., Chen, Y.-H., Yang, T.-J., & Emer, J. S. (2017). Efficient processing of deep neural networks: A tutorial and survey. Proceedings of the IEEE, 105(12), 2295–2329. https://doi.org/10.1109/JPROC.2017.2761740 [Google Scholar] [Crossref]

16. Topol, E. J. (2019). High-performance medicine: The convergence of human and artificial intelligence. Nature Medicine, 25(1), 44–56. https://doi.org/10.1038/s41591-018-0300-7 [Google Scholar] [Crossref]

17. UNESCO. (2022). Recommendation on the ethics of artificial intelligence. United Nations Educational, Scientific and Cultural Organization. [Google Scholar] [Crossref]

18. Warden, P., & Situnayake, D. (2019). TinyML: Machine learning with TensorFlow Lite on Arduino and ultra-low-power microcontrollers. O’Reilly Media. [Google Scholar] [Crossref]

19. Waterman, A., & Asanović, K. (Eds.). (2019). The RISC-V instruction set manual, Volume I: Unprivileged ISA (Document Version 20191213). RISC-V Foundation. [Google Scholar] [Crossref]

20. Wolberg, W. H., Street, W. N., & Mangasarian, O. L. (1994). Machine learning techniques to diagnose breast cancer from image-processed nuclear features of fine needle aspirates. Cancer Letters, 77(2), 163–171. https://doi.org/10.1016/0304-3835(94)90099-X [Google Scholar] [Crossref]

21. World Health Organization. (2010). Medical devices: Managing the mismatch: An outcome of the Priority Medical Devices project. World Health Organization. [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles