Gate Count

Gate Count

在论文经常可以看到'Gate Count'一词,一直以为就是DC综合出来的‘Number of Cells’, Google之后才知道并非如此。

Gate Count = Total area / area of NAND2 gate

 

下面一段话来自于www.edaboard.com。

 

‘Because Design Compiler doesn't derive any area units, the number reported by report_area is actually the sum of the area attribute attached to cells in the technology library. Basically, you have to ask the vendor what the area units mean. For example, some library vendors might define the area to be (sqmm x sqmm) or normalized to the size of a 2-input NAND gate. That is,
a 2-input NAND gate has an area of 1.’

 

 

用DC产生Gate Count

‘To get the equivalent gate area in Design compiler need to add two comamnds in TCl script.

1. First to get the total area of your design, use report_area.
2. Then divide this area by the area for a 2-input NAND gate in your technology library. You can also use the following command to find out the area for a 2-input nand gate.
dc_shell-xg-t> get_attribute { technology library/2_input_nand_gate_name } area
to get the 2_input_nand_gate_name, use report_lib <tecnology_lib > and select the any drive strength. Usually its 1x drive strength.
Area = $report_area/Area_of nand gate’

 

 

 

 

  • 2
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
可以尝试对这段代码进行优化的几个方面: 1. 使用JOIN替代子查询:将gate_mdm_dm_cardinfo表中的子查询替换为JOIN操作,可以提高查询性能。将子查询中的条件移至ON子句中,以减少结果集大小。 ```sql SELECT employee_number, card_number FROM ( SELECT id, employee_number, card_number FROM ( SELECT CASE WHEN LENGTH(pin) = 5 THEN CONCAT('000', pin) ELSE pin END AS employee_number, cardno AS card_number, '' AS id FROM gate_staff UNION ALL SELECT employee_number, card_number, id FROM gate_mdm_dm_cardinfo a INNER JOIN ( SELECT employee_number, MAX(last_update_time) max_date FROM gate_mdm_dm_cardinfo WHERE last_update_time >= #{startTime} AND last_update_time <= #{endTime} GROUP BY employee_number ) b ON a.employee_number = b.employee_number AND a.last_update_time = b.max_date WHERE a.status = 1 AND a.public_flag = 'Y' ) AS mid GROUP BY employee_number, card_number HAVING COUNT(*) = 1 ) AS ccc WHERE ccc.id != ''; ``` 2. 添加索引:根据查询中涉及的字段,在gate_staff表和gate_mdm_dm_cardinfo表上添加适当的索引,以加快查询速度。 3. 优化查询计划:使用数据库的查询优化工具,如EXPLAIN语句,来分析查询计划并进行优化。根据分析结果,可以考虑调整查询的顺序、添加或删除索引等操作。 请注意,实际优化效果可能因数据库的特性和数据量而有所不同。建议在进行任何更改之前先备份数据库,并在测试环境中进行验证。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值