目录
What are the different classes of black box? How to report them?
如何处理由于bbox pin 对应不上导致的不等价,可以在确认逻辑的前提下ignore 掉。
如果是因为bbox 的pin 被工具默认为双向(inout)的,解决办法
lec 中如何设置 bbox
set undefined cell black_box |
|
Add notranslate module | |
set log file lec.log –replace |
What are the different classes of black box? How to report them?
USER
Indicates that the black box was added by the ADD BLACK BOX command
SYSTEM (empty)
Indicates that the module contains no logic.
SYSTEM (LEF)
Indicates that the macro is defined in the LEF file, but not defined in library/design modules.
SYSTEM (notranslate)
Indicates that the black box was added by the ADD NOTRANSLATE MODULES command.
SYSTEM (undefined)
Indicates that the black box was added by the SET UNDEFINED CELL black_box command.
bbox map 不上问题
在做lec 的时候遇到一种情况,revise 的netlist 中 子模块是bbox , 这时候发现所有的bbox 都没map 对,这是由于对于bbox 的map 主要是按照名字进行匹配的,如果名字对不上,就会说map不上。
分析命令:
Report black box –detail
查单个bbox 没map 的原因
report mapped points <bbox_inst_name> -input –output <lec mode>
分析不等价的原因由于bbox 。
Analyze noneq –type bbox -verbose
如果是因为bbox 名字不匹配 解决办法:
set mapping method –nobbox_name_match
delete mapped point /inst_adrctl_master_delay/inst_cal_dly_macro/inst_cal_delay_line/inst_delay_0
delete mapped point /inst_adrctl_master_delay/inst_cal_dly_macro/inst_cal_delay_line/inst_delay_*
add renaming rule r1 "CDN_000H_cdn_hs_phy_delay_element_EW" "CDN_000H_cdn_hs_phy_delay_0_element_EW" -Golden -pin -BBox CDN_000H_cdn_hs_phy_delay_0_element_EW
add renaming rule r2 "CDN_000H_cdn_hs_phy_delay_element_%d_EW" "CDN_000H_cdn_hs_phy_delay_element_EW" -Golden -pin -BBox "CDN_000H_cdn_hs_phy_delay_element_%d_EW"
map key points
如何处理由于bbox pin 对应不上导致的不等价,可以在确认逻辑的前提下ignore 掉。
add ignored input <bbox_module_pin_name> -module <bbox_module_name> [-golden|-revised|-both] (Setup Mode)
This command is used to ignore inputs of a black box.
add ignored output <bbox_module_pin_name> -module <bbox_module_name> [-golden|-revised-|both] (Setup Mode)
This command is used ignore an output of a black box.
add pin constraints <0 | 1> <primary_pin* ...> -Module <bbox_module_name*> ] [-golden | -revised | -both] (Setup Mode)
This command is used to constraint the input pins of a black box to a zero/one value.
add output stuck_at <0 | 1> <primary_pin* ...> -Module <bbox_module_name*> ] [-golden | -revised | -both] (Setup Mode)
This command is used to constraint the output pin of a black box to a zero/one value.
delete black box <<blackbox_name*> ... -Module| <blackbox_name> ... -Instance | -All> [-golden | -revised | -both] (Setup Mode)
This command deletes specified blackboxes from the design. These blackboxes were created with the ADD BLACK BOX command.
如果是因为bbox 的pin 被工具默认为双向(inout)的,解决办法
assign pin direction in CDN_000H_cdn_hs_phy_delay_0_element_EW ret -revise
assign pin direction in CDN_000H_cdn_hs_phy_delay_element_EW ret -revise