留言板

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

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

基于错误率分配的逻辑电路面积近似优化

范海媚 吴乾火 王伦耀

范海媚,吴乾火,王伦耀. 基于错误率分配的逻辑电路面积近似优化[J]. 北京航空航天大学学报,2026,52(6):2114-2122
引用本文: 范海媚,吴乾火,王伦耀. 基于错误率分配的逻辑电路面积近似优化[J]. 北京航空航天大学学报,2026,52(6):2114-2122
FAN H M,WU Q H,WANG L Y. Area approximate optimization of logic circuits based on error rate allocation[J]. Journal of Beijing University of Aeronautics and Astronautics,2026,52(6):2114-2122 (in Chinese)
Citation: FAN H M,WU Q H,WANG L Y. Area approximate optimization of logic circuits based on error rate allocation[J]. Journal of Beijing University of Aeronautics and Astronautics,2026,52(6):2114-2122 (in Chinese)

基于错误率分配的逻辑电路面积近似优化

doi: 10.13700/j.bh.1001-5965.2024.0211
基金项目: 

国家自然科学基金(U23A20351,U22A2013); 宁波市重点研发计划(2023Z233)

详细信息
    作者简介:

    范海媚等:基于错误率分配的逻辑电路面积近似优化 3

    通讯作者:

    E-mail:wanglunyao@nbu.edu.cn

  • 中图分类号: TN431.2

Area approximate optimization of logic circuits based on error rate allocation

Funds: 

National Natural Science Foundation of China (U23A20351,U22A2013); Major Research Plan of Ningbo (2023Z233)

More Information
  • 摘要:

    考虑到在相同错误率约束下,同一逻辑电路的二级和多级近似优化效果并不一样,且逻辑电路的二级表示与多级表示之间可以等效转化,提出一种基于错误率分配的逻辑电路近似面积优化算法。该算法包括错误率分配算法,二级错误率快速估算算法及二级/多级近似优化算法。所提算法使用C语言和面向时序逻辑综合与形式验证系统(ABC)工具内置命令编程实现,使用北卡罗莱纳微电子中心(MCNC)基准电路进行测试。实验结果表明,在错误率约束为5%情况下,所提算法在面积和延时优化上分别为42.36%和25.15%;与单纯使用多级近似优化方法相比,面积和延时的优化分别进一步提升了5.05%和9.36%。

     

  • 图 1  Miter电路

    Figure 1.  Miter circuit

    图 2  逻辑函数对应的卡诺图

    Figure 2.  Karnaugh map corresponding to a logic function

    图 3  1位全加器对应的卡诺图

    Figure 3.  Karnaugh map corresponding to a 1-bit full adder

    图 4  1位全加器电路功能的AIG表示

    Figure 4.  AIG representation of the 1-bit full adder circuit

    图 5  1位全加电路经二级/多级近似优化后的AIG表示

    Figure 5.  AIG of 1-bit full adder circuit after optimized using two-level/multi-level approximate computing

    表  1  本文使用的MCNC测试电路

    Table  1.   The parameters of MCNC benchmarks used in this paper

    电路名称I/O初始面积初始延迟/ns
    alu414/8115849.81
    table314/14283629.9
    b1215/9988.5
    table517/9256331.6
    t48116/1140024.9
    clip9/519314
    sqrt88/410111.9
    rd848/430118.4
    apex49/19468527.4
    misex18/71039.2
    5xp17/1016012.1
    inc7/918410.3
    下载: 导出CSV

    表  2  本文算法与文献[11]算法和文献[12]算法的比较结果

    Table  2.   Comparison results of the proposed algorithm with references [11] and [12] algorithm

    电路名称 面积优化/% 延迟优化/%
    文献[11] 文献[12] 本文算法 文献[11] 文献[12] 本文算法
    alu4 11.20 24.84 22.71 7.25 19.03 46.80
    table3 90.63 90.09 91.27 48.61 57.41 54.07
    b12 24.49 21.77 26.53 16.47 7.84 16.47
    table5 94.49 92.91 94.98 63.83 55.49 62.45
    t481 87.64 93.21 96.93 36.55 40.03 66.27
    clip 28.67 0 28.15 0 0 4.29
    sqrt8 42.57 37.29 43.56 13.45 0 7.56
    rd84 19.93 48.28 36.10 0 23.55 20.65
    apex4 4.55 14.88 20.65 0 11.19 11.20
    misex1 6.80 3.56 10.68 0 3.26 8.70
    5xp1 16.67 0.42 16.67 3.31 0 3.31
    inc 20.11 2.17 20.11 0 0 0
     注:各列平均值为37.31%,35.79%,42.36%,15.79%,18.15%,25.15%。
    下载: 导出CSV

    表  3  本文算法与文献[11]算法和文献[12]算法的运行时间

    Table  3.   Runtime of the proposed algorithm with references [11] and [12] algorithm

    电路名称 时间/s
    文献[11]算法 文献[12]算法 本文算法
    alu4 78.64 318.06 1688.56
    table3 706.42 2224.44 2284.05
    b12 1.46 0.53 7.76
    table5 542.00 632.45 1285.45
    t481 209.88 246.85 245.48
    clip 8.41 0.33 43.81
    sqrt8 0.81 0.53 6.19
    rd84 14.37 4.83 34.12
    apex4 289.43 5573.21 926.52
    misex1 0.98 0.68 4.64
    5xp1 2.62 2.45 16.74
    inc 2.31 1.09 13.06
     注:各列平均值为154.78,750.45,546.36 s。
    下载: 导出CSV
  • [1] XU Q, MYTKOWICZ T, KIM N S. Approximate computing: a survey[J]. IEEE Design & Test, 2016, 33(1): 8-22.
    [2] SEKANINA L. Introduction to approximate computing: embedded tutorial[C]//Proceedings of the IEEE 19th International Symposium on Design and Diagnostics of Electronic Circuits & Systems. Piscataway: IEEE Press, 2016: 1-6.
    [3] WU Y, CHEN C T, XIAO W H, et al. A survey on approximate multiplier designs for energy efficiency: from algorithms to circuits[J]. ACM Transactions on Design Automation of Electronic Systems, 2024, 29(1): 1-37.
    [4] SCARABOTTOLO I, ANSALONI G, CONSTANTINIDES G A, et al. Approximate logic synthesis: a survey[J]. Proceedings of the IEEE, 2020, 108(12): 2195-2213.
    [5] SEO H, KIM Y. A low latency approximate adder design based on dual sub-adders with error recovery[J]. IEEE Transactions on Emerging Topics in Computing, 2023, 11(3): 811-816.
    [6] MANNEPALLI Y, KOREDE V B, RAO M. Novel approximate multiplier designs for edge detection application[C]//Proceedings of the Great Lakes Symposium on VLSI. New York: ACM, 2021: 371-377.
    [7] NGUYEN D T, KIM H, LEE H J, et al. An approximate memory architecture for a reduction of refresh power consumption in deep learning applications[C]//Proceedings of the IEEE International Symposium on Circuits and Systems. Piscataway: IEEE Press, 2018: 1-5.
    [8] SEN S, RAGHUNATHAN A. Approximate computing for long short term memory (LSTM) neural networks[J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2018, 37(11): 2266-2276.
    [9] SHIN D, GUPTA S K. Approximate logic synthesis for error tolerant applications[C]//Proceedings of the Design, Automation & Test in Europe Conference & Exhibition (DATE 2010). Piscataway: IEEE Press, 2010: 957-960.
    [10] FUJITA M. An approach to approximate computing: logic transformations for one-minterm changes in specification[C]//Proceedings of the IEEE International High Level Design Validation and Test Workshop. Piscataway: IEEE Press, 2017: 91-94.
    [11] 赵维凯, 王伦耀, 岑旭梦, 等. 基于近似计算技术的多级逻辑电路面积优化[J]. 北京航空航天大学学报, 2024, 50(9): 2893-2901.

    ZHAO W K, WANG L Y, CEN X M, et al. Area optimization of multilevel logic circuits using approximate computing[J]. Journal of Beijing University of Aeronautics and Astronautics, 2024, 50(9): 2893-2901(in Chinese).
    [12] MENG C, QIAN W K, MISHCHENKO A. ALSRAC: approximate logic synthesis by resubstitution with approximate care set[C]//Proceedings of the 57th ACM/IEEE Design Automation Conference. Piscataway: IEEE Press, 2020: 1-6.
    [13] MISHCHENKO A, CHATTERJEE S, BRAYTON R. DAG-aware AIG rewriting: a fresh look at combinational logic synthesis[C]//Proceedings of the 43rd ACM/IEEE Design Automation Conference. Piscataway: IEEE Press, 2006: 532-535.
    [14] MENG C, ZHOU Z Z, YAO Y, et al. HEDALS: highly efficient delay-driven approximate logic synthesis[J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2023, 42(11): 3491-3504.
    [15] SCARABOTTOLO I, ANSALONI G, CONSTANTINIDES G A, et al. A formal framework for maximum error estimation in approximate logic synthesis[J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2022, 41(4): 840-853.
    [16] SU S B, ZOU C, KONG W J, et al. A novel heuristic search method for two-level approximate logic synthesis[J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2020, 39(3): 654-669.
    [17] SU S B, WU Y, QIAN W K. Efficient batch statistical error estimation for iterative multi-level approximate logic synthesis[C]//Proceedings of the 55th ACM/ESDA/IEEE Design Automation Conference. Piscataway: IEEE Press, 2018: 1-6.
    [18] AMMES G, NETO W L, BUTZEN P, et al. A two-level approximate logic synthesis combining cube insertion and removal[J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2022, 41(11): 5126-5130.
    [19] 王伦耀, 夏银水, 储著飞. 基于近似计算技术的FPRM电路面积优化[J]. 电子学报, 2019, 47(9): 1868-1874.

    WANG L Y, XIA Y S, CHU Z F. Area optimization of FPRM circuits using approximate computing[J]. Acta Electronica Sinica, 2019, 47(9): 1868-1874(in Chinese).
    [20] BRAYTON R K, HACHTEL G D, MCMULLEN C T, et al. Logic minimization algorithms for VLSI synthesis[M]. Berlin: Springer, 1984.
    [21] YANG S. Logic synthesis and optimization benchmarks user guide: version 3.0[M]. North Carolina: Microelectronics Center of North Carolina, 1991.
  • 加载中
图(5) / 表(3)
计量
  • 文章访问数:  253
  • HTML全文浏览量:  190
  • PDF下载量:  2
  • 被引次数: 0
出版历程
  • 收稿日期:  2024-04-11
  • 录用日期:  2024-07-16
  • 网络出版日期:  2024-08-05
  • 整期出版日期:  2026-06-30

目录

    /

    返回文章
    返回
    常见问答