高级搜索

留言板

尊敬的读者、作者、审稿人, 关于本刊的投稿、审稿、编辑和出版的任何问题, 您可以本页添加留言。我们将尽快给您答复。谢谢您的支持!

姓名
邮箱
手机号码
标题
留言内容
验证码

从门到电路元:功能感知划分驱动的层次化电路表示学习

叶聚阳 陈麒麟 王耀华

叶聚阳, 陈麒麟, 王耀华. 从门到电路元:功能感知划分驱动的层次化电路表示学习[J]. 电子与信息学报. doi: 10.11999/JEIT260645
引用本文: 叶聚阳, 陈麒麟, 王耀华. 从门到电路元:功能感知划分驱动的层次化电路表示学习[J]. 电子与信息学报. doi: 10.11999/JEIT260645
YE Juyang, CHEN Qilin, WANG Yaohua. Function-Aware Partitioning Driven Hierarchical Circuit Representation Learning[J]. Journal of Electronics & Information Technology. doi: 10.11999/JEIT260645
Citation: YE Juyang, CHEN Qilin, WANG Yaohua. Function-Aware Partitioning Driven Hierarchical Circuit Representation Learning[J]. Journal of Electronics & Information Technology. doi: 10.11999/JEIT260645

从门到电路元:功能感知划分驱动的层次化电路表示学习

doi: 10.11999/JEIT260645 cstr: 32379.14.JEIT260645
详细信息
    作者简介:

    叶聚阳:男,硕士生,研究方向为电子设计自动化,邮箱 yejuyang@nudt.edu.cn

    陈麒麟:男,博士生,研究方向为电子设计自动化

    王耀华:男,博士,研究方向为计算机体系结构,邮箱 yhwang@nudt.edu.cn

    通讯作者:

    王耀华 yhwang@nudt.edu.cn (通信和一作均需唯一)

  • 中图分类号: TP18

Function-Aware Partitioning Driven Hierarchical Circuit Representation Learning

  • 摘要: 从大规模门级网表中学习高质量电路表示是将机器学习技术应用于电子设计自动化的核心挑战之一。随着数字集成电路规模的跃升,现有基于图Transformer的方法因计算与内存开销过高而难以扩展。为此,该文提出一种功能感知划分驱动的层次化电路表示学习框架。该框架受大语言模型分词机制启发,提出以功能独立性比率(FIR)为优化目标将大规模网表划分为功能内聚的电路元作为表示学习的基本单元。在此基础上,该文设计二阶段自监督预训练框架以适配电路元级表示学习。第一阶段通过掩码自编码器与边预测学习电路元级全局表示;第二阶段在冻结电路元嵌入的条件下,通过布尔等价变换驱动的对比学习算法,学习具有全局上下文感知的门级判别性表示。在多个从小规模到超大规模电路上的实验表明,基于FIR的划分相较当前最佳方案提升超过24%,在下游全电路功能识别与门级功能识别任务中,该文方法在所有可比较数据集上均显著优于当前最先进方法,且是唯一可扩展至BOOM(8.12M门)与OpenC910(22.3M门)的方案。
  • 图  1  功能感知划分驱动的层次化电路表示学习概览

    图  2  译码器总线识别

    图  3  二阶段自监督预训练框架

    图  4  消融实验结果

    表  1  电路元、模块与子图概念区分

    概念定义来源
    电路元超图划分产生的划分块,本文中间抽象FIR引导的超图划分
    模块设计者定义的功能块原始设计层次(真值标签)
    子图电路元内部平展门级有向图电路元内部连接关系
    下载: 导出CSV

    表  2  5种综合策略

    综合策略时钟频率(MHz)扇出限制展平综合
    默认100GTECH
    默认300ICsprout
    面积优先30050ICsprout
    时序优先300ICsprout
    时序优先80050ICsprout
    下载: 导出CSV

    表  3  不同划分方法在三个RISC-VSoC网表上的AMI/ARI/时间对比

    划分方法RocketBOOMOpenC910
    AMIARI时间(s)AMIARI时间(s)AMIARI时间(s)
    Mt-kahypar0.5930.58012.40.5910.554187.30.5750.538521.6
    hMetis+FIR0.6530.60910.50.6370.605169.80.6310.613494.2
    FM+FIR0.6630.62510.30.6210.622158.40.6160.611487.5
    Mt-kahypar+FIR0.7550.74413.10.7410.692198.50.7150.721553.0
    下载: 导出CSV

    表  4  Mt-kahypar+FIR划分后电路元规模统计

    电路总门数电路元数最大规模最小规模标准差
    Rocket5.99×1057741135381191.4
    BOOM8.12×106284940161319682.1
    OpenC9102.23×107472265272768903.5
    下载: 导出CSV

    表  5  全电路功能识别表现

    (a) 全电路功能识别——准确率
    方法 ITC99 EPFL OpenCores Rocket BOOM OpenC910
    DeepGate4 0.827 0.794 0.746 0.710 Out of memory
    NetTAG 0.792 0.801 0.721 0.708 Out of memory
    Ours 0.897 0.872 0.822 0.795 0.781 0.743
    (b) 全电路功能识别——召回率
    方法 ITC99 EPFL OpenCores Rocket BOOM OpenC910
    DeepGate4 0.801 0.772 0.724 0.693 Out of memory
    NetTAG 0.821 0.766 0.715 0.670 Out of memory
    Ours 0.895 0.850 0.813 0.752 0.761 0.754
    (c) 全电路功能识别——F1分数
    方法 ITC99 EPFL OpenCores Rocket BOOM OpenC910
    DeepGate4 0.814 0.783 0.735 0.701 Out of memory
    NetTAG 0.806 0.782 0.718 0.688 Out of memory
    Ours 0.896 0.861 0.817 0.773 0.771 0.748
    下载: 导出CSV

    表  6  门级功能识别表现

    (a)门级功能识别——准确率
    方法 ITC99 EPFL OpenCores Rocket BOOM OpenC910
    DeepGate4 0.776 0.745 0.696 0.667 0.594 0.433
    NetTAG 0.758 0.691 0.692 0.671 0.611 0.446
    Ours 0.850 0.848 0.813 0.750 0.735 0.672
    (b) 门级功能识别——召回率
    方法 ITC99 EPFL OpenCores Rocket BOOM OpenC910
    DeepGate4 0.751 0.720 0.677 0.642 0.613 0.485
    NetTAG 0.715 0.721 0.680 0.611 0.603 0.494
    Ours 0.865 0.822 0.784 0.756 0.712 0.687
    (c) 门级功能识别——F1分数
    方法 ITC99 EPFL OpenCores Rocket BOOM OpenC910
    DeepGate4 0.763 0.732 0.686 0.654 0.603 0.458
    NetTAG 0.736 0.706 0.686 0.640 0.607 0.469
    Ours 0.857 0.835 0.798 0.753 0.723 0.679
    下载: 导出CSV
  • [1] HUANG Guyue, HU Jingbo, HE Yifan, et al. Machine learning for electronic design automation: A survey[J]. ACM Transactions on Design Automation of Electronic Systems (TODAES), 2021, 26(5): 40. doi: 10.1145/3451179.
    [2] SHI Zhengyuan, ZHENG Ziyang, KHAN S, et al. DeepGate3: Towards scalable circuit representation learning[C]. Proceedings of 2024 ACM/IEEE International Conference on Computer Aided Design, Newark, USA, 2024: 1–9. doi: 10.1145/3676536.3676791.
    [3] WANG Ziyi, BAI Chen, HE Zhuolun, et al. FGNN2: A powerful pretraining framework for learning the logic functionality of circuits[J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2025, 44(1): 227–240. doi: 10.1109/TCAD.2024.3434464.
    [4] CHEN Lei, CHEN Yiqi, CHU Zhufei, et al. Large circuit models: Opportunities and challenges[J]. Science China Information Sciences, 2024, 67(10): 200402. doi: 10.1007/s11432-024-4155-7.
    [5] ZHENG Ziyang, HUANG Shan, ZHONG Jianyuan, et al. DeepGate4: Efficient and effective representation learning for circuit design at scale[C]. Proceedings of the 13th International Conference on Learning Representations, Singapore, Singapore, 2025: 20972–20990.
    [6] FANG Wenji, LI Wenkai, LIU Shang, et al. NetTAG: A multimodal RTL-and-layout-aligned netlist foundation model via text-attributed graph[C]. Proceedings of the 62nd ACM/IEEE Design Automation Conference, San Francisco, USA, 2025: 1–7. doi: 10.1109/DAC63849.2025.11133349.
    [7] VASWANI A, SHAZEER N, PARMAR N, et al. Attention is all you need[C]. Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, USA, 2017: 6000–6010.
    [8] 孙林慧, 成乐洋, 杨欣悦, 等. 基于Mamba上下文感知细粒度融合的多模态情感识别[J]. 电子与信息学报, 2026, 48(5): 1948–1959. doi: 10.11999/JEIT251307.

    SUN Linhui, CHENG Leyang, YANG Xinyue, et al. Context-aware fine-grained multimodal emotion recognition based on Mamba[J]. Journal of Electronics & Information Technology, 2026, 48(5): 1948–1959. doi: 10.11999/JEIT251307.
    [9] YING Chengxuan, CAI Tianle, LUO Shengjie, et al. Do transformers really perform bad for graph representation?[C]. Proceedings of the 35th International Conference on Neural Information Processing Systems, 2021: 2212. (查阅网上资料, 未找到对应的出版地信息, 请确认).
    [10] SUN Hao, SHEN Junzhong, ZHANG Tian, et al. FAMS: A framework of memory-centric mapping for DNNs on systolic array accelerators[J]. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2025, 33(4): 976–989. doi: 10.1109/TVLSI.2024.3522326.
    [11] 李天阳, 张帆, 王松, 等. 基于FPGA的卷积神经网络和视觉Transformer通用加速器[J]. 电子与信息学报, 2024, 46(6): 2663–2672. doi: 10.11999/JEIT230713.

    LI Tianyang, ZHANG Fan, WANG Song, et al. FPGA-based unified accelerator for convolutional neural network and vision Transformer[J]. Journal of Electronics & Information Technology, 2024, 46(6): 2663–2672. doi: 10.11999/JEIT230713.
    [12] SENNRICH R, HADDOW B, and BIRCH A. Neural machine translation of rare words with subword units[C]. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, Berlin, Germany, 2016: 1715–1725. doi: 10.18653/v1/P16-1162.
    [13] 王泽昊, 朱振华, 谢童欣, 等. 混合专家大语言模型的系统与架构优化技术综述[J]. 电子与信息学报, 2025, 47(11): 4055–4078. doi: 10.11999/JEIT250407.

    WANG Zehao, ZHU Zhenhua, XIE Tongxin, et al. A survey on system and architecture optimization techniques for mixture-of-experts large language models[J]. Journal of Electronics & Information Technology, 2025, 47(11): 4055–4078. doi: 10.11999/JEIT250407.
    [14] FIDUCCIA C M and MATTHEYSES R M. A linear-time heuristic for improving network partitions[C]. Proceedings of the 19th Design Automation Conference, Las Vegas, USA, 1982: 175–181. doi: 10.1109/DAC.1982.1585498.
    [15] KARYPIS G, AGGARWAL R, KUMAR V, et al. Multilevel hypergraph partitioning: Application in VLSI domain[C]. Proceedings of the 34th Annual Design Automation Conference, Anaheim, USA, 1997: 526–529. doi: 10.1145/266021.266273.
    [16] AKHREMTSEV Y, HEUER T, SANDERS P, et al. Engineering a direct k-way hypergraph partitioning algorithm[C]. Proceedings of the 19th Workshop on Algorithm Engineering and Experiments, Barcelona, Spain, 2017: 28–42.
    [17] GOTTESBÜREN L, HEUER T, MAAS N, et al. Scalable high-quality hypergraph partitioning[J]. ACM Transactions on Algorithms, 2024, 20(1): 9. doi: 10.1145/3626527.
    [18] DAVIDSON S. ITC'99 benchmark circuits - preliminary results[C]. Proceedings of the International Test Conference 1999, Atlantic City, USA, 1999: 1125–1125. doi: 10.1109/TEST.1999.805857.
    [19] AMARÚ L, GAILLARDON P E, and DE MICHELI G. The EPFL combinational benchmark suite[C]. Proceedings of the 24th International Workshop on Logic & Synthesis, 2015. (查阅网上资料, 未找到对应的出版地信息, 请确认).
    [20] OPENCORES. The reference community for free and open source gateware IP cores[EB/OL]. https://opencores.org/, 2026. (查阅网上资料,请核对网址与文献是否相符).
    [21] ASANOVIĆ K, AVIZIENIS R, BACHRACH J, et al. The rocket chip generator[R]. Technical Report No. UCB/EECS-2016-17, 2016.
    [22] ZHAO J, KORPAN B, GONZALEZ A, et al. SonicBOOM: The 3rd generation Berkeley out-of-order machine[C]. Proceedings of the Fourth Workshop on Computer Architecture Research with RISC-V, Valencia, Spain, 2020: 1–7. (查阅网上资料, 未找到对应的出版地信息, 请确认).
    [23] CHEN Chen, XIANG Xiaoyan, LIU Chang, et al. Xuantie-910: A commercial multi-core 12-stage pipeline out-of-order 64-bit high performance RISC-V processor with vector extension[C]. Proceedings of the ACM/IEEE 47th Annual International Symposium on Computer Architecture, Valencia, Spain, 2020: 52–64. doi: 10.1109/ISCA45697.2020.00016.
    [24] PAN Jingyu, ZHOU Guanglei, CHANG C C, et al. A survey of research in large language models for electronic design automation[J]. ACM Transactions on Design Automation of Electronic Systems, 2025, 30(3): 34. doi: 10.1145/3715324.
    [25] ABDOLLAHI M, YEGANLI S F, BAHARLOO M, et al. Hardware design and verification with large language models: A scoping review, challenges, and open issues[J]. Electronics, 2024, 14(1): 120. doi: 10.3390/electronics14010120.
    [26] FANG Wenji, LIU Shang, WANG Jing, et al. CircuitFusion: Multimodal circuit representation learning for agile chip design[C]. Proceedings of the 13th International Conference on Learning Representations, Singapore, Singapore, 2025: 73554–73576.
    [27] WU Haoyuan, ZHENG Haisheng, PU Yuan, et al. Circuit representation learning with masked gate modeling and Verilog-AIG alignment[C]. Proceedings of the 13th International Conference on Learning Representations, Singapore, Singapore, 2025: 86691–86707.
    [28] GAI Jiahao, CHEN Hao, WANG Zhican, et al. Exploring code language models for automated HLS-based hardware generation: Benchmark, infrastructure and analysis[C]. Proceedings of the 30th Asia and South Pacific Design Automation Conference, Tokyo, Japan, 2025: 988–994. https://doi.org/10.1145/3658617.3697616.
    [29] SHIRZAD H, VELINGKER A, VENKATACHALAM B, et al. EXPHORMER: Sparse transformers for graphs[C]. Proceedings of the 40th International Conference on Machine Learning, Honolulu, USA, 2023: 1310.
    [30] WOLF C, GLASER J, and KEPLER J. Yosys - a free Verilog synthesis suite[C]. Proceedings of the 21st Austrian Workshop on Microelectronics, Linz, Austria, 2013: 1–6.
    [31] VINH N X, EPPS J, and BAILEY J. Information theoretic measures for clusterings comparison: Is a correction for chance necessary?[C]. Proceedings of the 26th Annual International Conference on Machine Learning, Montreal, Canada, 2009: 1073–1080. doi: 10.1145/1553374.1553511.
    [32] HUBERT L and ARABIE P. Comparing partitions[J]. Journal of Classification, 1985, 2(1): 193–218. doi: 10.1007/BF01908075.
    [33] 周康, 侯波, 王力纬, 等. 融合CNN-LSTM的硬件木马旁路检测方法[J]. 电子与信息学报, 2025, 47(9): 3312–3320. doi: 10.11999/JEIT250241.

    ZHOU Kang, HOU Bo, WANG Liwei, et al. A CNN-LSTM fusion-based method for detecting hardware Trojan bypasses[J]. Journal of Electronics & Information Technology, 2025, 47(9): 3312–3320. doi: 10.11999/JEIT250241.
  • 加载中
图(4) / 表(6)
计量
  • 文章访问数:  4
  • HTML全文浏览量:  1
  • PDF下载量:  1
  • 被引次数: 0
出版历程
  • 修回日期:  2026-08-10
  • 录用日期:  2026-08-10
  • 网络出版日期:  2026-08-12

目录

    /

    返回文章
    返回