Proceedings

Automated Superscalar Processor Design by Learning Data Dependencies

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 4932-4939.

https://doi.org/10.24963/ijcai.2025/549

Abstract

Automated processor design, which can significantly reduce human efforts and accelerate design cycles, has received considerable attention. While recent advancements have automatically designed single-cycle processors that execute one instruction per cycle, their performance cannot compete with modern superscalar processors that execute multiple instructions per cycle. Previous methods fail on superscalar processor design because they cannot address inter-instruction data dependencies, leading to inefficient sequential instruction execution.

This paper proposes a novel approach to automatically designing superscalar processors using a hardware-friendly model called the Stateful Binary Speculation Diagram (State-BSD). We observe that processor parallelism can be enhanced through on-the-fly inter-instruction dependent data predictors, reusing the processor's internal states to learn the data dependency. To meet the challenge of both hardware-resource limitation and design functional correctness, State-BSD consists of two components: 1) a lightweight state-selector trained by simulated annealing method to detect the most reusable processor states and store them in a small buffer; and 2) a highly precise state-speculator trained by BSD expansion method to predict the inter-instruction dependent data using the selected states. It is the first work to achieve the automated superscalar processor design, i.e. QiMeng-CPU-v2, which improves the performance by about 380x than the state-of-the-art automated design and is comparable to human-designed superscalar processors such as ARM Cortex A53.

  1. [Bandishte et al., 2020] Sumeet Bandishte, Jayesh Gaur, Zeev Sperber, Lihu Rappoport, Adi Yoaz, and Sreenivas Subramoney. Focused value prediction. In Proceedings of the International Symposium on Computer Architecture, pages 79-91, 2020.
  2. [Bentley, 2001] Bob Bentley. Validating the intel pentium 4 microprocessor. In Proceedings of Design Automation Conference, pages 244-248, 2001.
  3. [Blocklove et al., 2023] Jason Blocklove, Siddharth Garg, Ramesh Karri, and Hammond Pearce. Chip-chat: Chal- lenges and opportunities in conversational hardware design. ACM/IEEE Workshop on Machine Learning for CAD, 2023.
  4. [Boole, 1854] George Boole. An Investigation of the Laws of Thought: On which are Founded the Mathematical Theories of Logic and Probabilities. 1854.
  5. [Chen et al., 2020] Pei-Wei Chen, Yu-Ching Huang, Cheng- Lin Lee, and Jie-Hong Roland Jiang. Circuit learning for logic regression on high dimensional boolean space. In Proceedings of Design Automation Conference, pages 1-6. IEEE, 2020.
  6. [Cheng et al., 2024] Shuyao Cheng, Pengwei Jin, Qi Guo, Zi- dong Du, Rui Zhang, Yunhao Tian, Xing Hu, Yongwei Zhao, Yifan Hao, et al. Automated cpu design by learning from input-output examples. Proceeding of the Interna- tional Joint Conference on Artificial Intelligence, 2024. IJCAI
  7. [Coremark, 2024] Coremark. Coremark: An eembc bench- mark. https://www.eembc.org/coremark/, 2024. Link
  8. [Fu et al., 2023] Yonggan Fu, Yongan Zhang, Zhongzhi Yu, Sixu Li, Zhifan Ye, Chaojian Li, Cheng Wan, and Yingyan Celine Lin. Gpt4aigchip: Towards next-generation ai accelerator design automation via large language mod- els. In Proceedings of the International Conference on Computer Aided Design, pages 1-9, 2023.
  9. [Gabbay and Mendelson, 1996] Freddy Gabbay and Avi Mendelson. Speculative execution based on value pre- diction. Citeseer, 1996.
  10. [Han et al., 2019] Zhongyang Han, Jun Zhao, Henry Leung, King Fai Ma, and Wei Wang. A review of deep learning models for time series prediction. IEEE Sensors Journal, 21(6):7833-7848, 2019.
  11. [Hennessy and Patterson, 2019] John L Hennessy and David A Patterson. A new golden age for computer arch-itecture. Communications of the ACM, 62(2):48-60, 2019.
  12. [Lipasti et al., 1996] Mikko H Lipasti, Christopher B Wilk- erson, and John Paul Shen. Value locality and load value prediction. In Proceedings of the international conference on Architectural support for programming languages and operating systems, pages 138-147, 1996.
  13. [Liu et al., 2024] Shang Liu, Wenji Fang, Yao Lu, Jing Wang, Qijun Zhang, Hongce Zhang, and Zhiyao Xie. Rtlcoder: Fully open-source and efficient llm-assisted rtl code gen- eration technique. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2024.
  14. [Marcuello et al., 1999] Pedro Marcuello, Jordi Tubella, and Antonio Gonzalez. Value prediction for speculative multi- threaded architectures. In Proceedings of the International Symposium on Microarchitecture, pages 230-236, 1999.
  15. [Orosa et al., 2018] Lois Orosa, Rodolfo Azevedo, and Onur Mutlu. Avpp: Address-first value-next predictor with value prefetching for improving the efficiency of load value pre- diction. ACM Transactions on Architecture and Code Opti- mization, 15(4):1-30, 2018.
  16. [Perais and Seznec, 2014] Arthur Perais and André Seznec. Practical data value speculation for future high-end proces- sors. In Proceedings of International Symposium on High Performance Computer Architecture, pages 428-439, 2014.
  17. [Perais, 2021] Arthur Perais. Leveraging targeted value pre- diction to unlock new hardware strength reduction potential. In Proceedings of the International Symposium on Microar- chitecture, pages 792-803, 2021.
  18. [Rai et al., 2021] Shubham Rai, Walter Lau Neto, Yukio Miyasaka, Xinpei Zhang, Mingfei Yu, Qingyang Yi, Masahiro Fujita, Guilherme B Manske, et al. Logic synthe- sis meets machine learning: Trading exactness for gener- alization. In Proceedings of Design, Automation & Test in Europe Conference & Exhibition, pages 1026-1031, 2021.
  19. [Roy et al., 2021] Rajarshi Roy, Jonathan Raiman, Neel Kant, Ilyas Elkin, Robert Kirby, Michael Siu, Stuart Oberman, Saad Godil, and Bryan Catanzaro. Prefixrl: Optimization of parallel prefix circuits using deep reinforcement learning. In Design Automation Conference, pages 853-858, 2021.
  20. [Shannon, 1988] Claude E Shannon. A chess-playing ma- chine. In Computer Games I, pages 81-88. Springer, 1988.
  21. [Vijayaraghavan et al., 2024] Prashanth Vijayaraghavan, Luyao Shi, Ehsan Degan, and Xin Zhang. Circuitsynth: Leveraging large language models for circuit topology synthesis. In IEEE LLM Aided Design Workshop, 2024.
  22. [Weicker, 1984] Reinhold P Weicker. Dhrystone: a synthetic systems programming benchmark. Communications of the ACM, 27(10):1013-1030, 1984.
  23. [Xiao et al., 2024] Weihua Xiao, Venkata Sai Charan Putrevu, Raghu Vamshi Hemadri, Siddharth Garg, and Ramesh Karri. Prefixllm: Llm-aided prefix circuit design. arXiv preprint arXiv:2412.02594, 2024.
  24. [Zhang et al., 2019] Guo Zhang, Hao He, and Dina Katabi. Circuit-gnn: Graph neural networks for distributed circuit design. In Proceedings of the International conference on machine learning, pages 7364-7373, 2019.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards