• 普通加法器与加1逻辑的面积一样吗


    综合

    sh  mkdir -p    ./work
    define_design_lib WORK -path ./work
    set_host_options -max_cores 8
    
    set search_path ./
    lappend search_path xxx/ccs_db
    set             synthetic_library [list dw_foundation.sldb] 
    set target_library xxx_ccs.db
    set link_library "* dw_foundation.sldb $target_library"
    
    set_svf adder.svf
    #analyze -work WORK -format sverilog adder256.sv
    analyze -work WORK -format sverilog addone.sv
    elaborate adder -work WORK -update
    link
    
    current_design adder 
    
    compile
    
    report_area
    
    return
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23

    普通加法器256

    module adder(
        input [255:0] addend1,
        input [255:0] addend2,
        output logic [255:0] added,
        output logic carryin
    );
       assign {carryin,added} = addend1 + addend2;
    endmodule
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9

    Number of ports: 1542
    Number of nets: 1794
    Number of cells: 259
    Number of combinational cells: 258
    Number of sequential cells: 0
    Number of macros/black boxes: 0
    Number of buf/inv: 0
    Number of references: 2

    Combinational area: 2274.012051
    Buf/Inv area: 0.000000
    Noncombinational area: 0.000000
    Macro/Black Box area: 0.000000
    Net Interconnect area: undefined (Wire load has zero net area)

    Total cell area: 2274.012051
    Total area: undefined

    adder 加1

    module adder(
        input [255:0] addend1,
        output [255:0] added,
        output carrier
    );
       assign {carrier, added} = addend1 + 1;
    endmodule
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

    Number of ports: 1027
    Number of nets: 1281
    Number of cells: 258
    Number of combinational cells: 257
    Number of sequential cells: 0
    Number of macros/black boxes: 0
    Number of buf/inv: 1
    Number of references: 2

    Combinational area: 1553.760028
    Buf/Inv area: 0.936000
    Noncombinational area: 0.000000
    Macro/Black Box area: 0.000000
    Net Interconnect area: undefined (Wire load has zero net area)

    Total cell area: 1553.760028
    Total area: undefined

    原因分析

    256位加1加法器的面积为普通256位加法器的2/3。
    带补充。

  • 相关阅读:
    剑指 Offer II 018. 有效的回文
    lv11 嵌入式开发 ARM指令集中(汇编指令集) 6
    Redis 常见问题
    数字时代的新一代数据安全
    wf-docker集群搭建(未完结)
    前后端联调统一校验规则
    【GPT4O 开启多模态新时代!】
    JavaWeb 初始cookie与session
    基于单片机16位智能抢答器设计
    Windows多线程编程
  • 原文地址:https://blog.csdn.net/zt5169/article/details/126517755