欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 财经 > 金融 > primetime如何合并不同modes的libs到一个lib文件

primetime如何合并不同modes的libs到一个lib文件

2024/10/24 10:27:17 来源:https://blog.csdn.net/qq_34326957/article/details/140691476  浏览:    关键词:primetime如何合并不同modes的libs到一个lib文件

首先,用primetime 抽 timing model 的指令如下。

代码如下(示例):

#抽lib时留一些margin, setup -max/hold -min
set_extract_model_margin -port [get_ports -filter "!defined(clocks)"] -max 0.1
#抽lib
extract_model -noise -test_design -format {lib} -output top_func_setup_ssgnp0p675vm40c
#压缩lib
sh gzip top_func_setup_ssgnp0p675vm40c.lib

The extract_model command generates a static timing model for the current design from its gate-level netlist. The generated model exhibits the same timing characteristics as the original design and therefore is used instead of the gate-level netlist for timing analysis
at a higher level of the design hierarchy. To also generate noise or power information in the model, use the -noise or -power option.
在这里插入图片描述
在抽完lib之后,如果想要合并不同modes的libs到一个lib文件需要用merge_models。This command can merge multiple timing models together to be one. The timing models must be in Synopsys internal library (.lib) format. This command reads in all the specified files to generate a list of timing models. These timing models are processed, matched, compared, and merged to create a single timing model. This model has moded timing arcs such that, in any given mode, the static timing behavior of the merge model is equivalent to one of the models merged. The final merged model is saved on disk in the specified files and requested formats. PrimeTime and Design Compiler recognize the merged model with moded timing arcs for performing timing analysis.
在这里插入图片描述

代码如下(示例):

set modes {func at_speed scan_shift scan_capture}
set libs {top_func_setup_ssgnp0p675vm40c.lib.gz top_at_speed_setup_ssgnp0p675vm40c.lib.gz top_scan_shift_setup_ssgnp0p675vm40c.lib.gz top_scan_capture_setup_ssgnp0p675vm40c.lib.gz}
merge_models -lib_files "$libs" -mode_names "$modes" -format {lib} -output top_setup_ssgnp0p675vm40c

另外,如果想要把lib转成db,可以使用下面的指令。

#启动library compiler
lc_shell -f ./lib2db.lc
#lib2db.lc内容
read_lib top_setup_ssgnp0p675vm40c.lib >> lc_shell.log
write_lib top_setup_ssgnp0p675vm40c -format {db} -output top_setup_ssgnp0p675vm40c.db >> lc_shell.log

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com