相关阅读SDC命令详解https://blog.csdn.net/weixin_45791458/category_12931432.html目录指定时钟指定边沿/电平触发Multicorner-Multimode支持写在最后all_outputs命令用于创建一个输出/双向端口对象集合包含当前设计中的所有输出/双向端口关于设计对象和集合的更详细介绍可以参考下面的博客。Synopsys设计对象https://chenzhang.blog.csdn.net/article/details/147015140?spm1001.2014.3001.5502本文针对Design Compiler但该命令同样存在于PrimeTime、IC Compiler等工具中它们大致相同略有差别。all_outputs命令的BNF范式有关BNF范式可以参考以往文章为all_outputs [-clock clock_name] [-edge_triggered | -level_sensitive] //注该命令的选项和参数顺序任意指定时钟-clock选项指定了一个时钟对象列表只有相对这些时钟设置了输出延迟的端口会被包含在集合中如例1所示。// 例1 dcnxt_shell create_clock -period 10 -name clk1 Warning: Creating virtual clock named clk1 with no sources. (UID-348) 1 dcnxt_shell create_clock -period 10 -name clk2 Warning: Creating virtual clock named clk2 with no sources. (UID-348) dcnxt_shell set_output_delay 0.1 [get_ports out1] -clock clk1 1 dcnxt_shell set_output_delay 0.2 [get_ports out2] -clock clk2 1 dcnxt_shell all_outputs {out1 out2 out3} dcnxt_shell all_outputs -clock [get_clocks clk1] {out1} dcnxt_shell all_outputs -clock [get_clocks clk2] {out2}指定边沿/电平触发-edge_triggered选项指定输出延迟是相对外部捕获触发器而言的不使用-level_sensitive选项-level_sensitive选项指定输出延迟是相对外部捕获锁存器而言的使用-level_sensitive选项如例2所示。// 例2 dcnxt_shell create_clock -period 10 -name clk1 Warning: Creating virtual clock named clk1 with no sources. (UID-348) 1 dcnxt_shell create_clock -period 10 -name clk2 Warning: Creating virtual clock named clk2 with no sources. (UID-348) dcnxt_shell set_output_delay 0.1 [get_ports out1] -clock clk1 -level_sensitive 1 dcnxt_shell set_output_delay 0.2 [get_ports out2] -clock clk2 1 dcnxt_shell all_outputs {out1 out2 out3} dcnxt_shell all_outputs -level_sensitive {out1} dcnxt_shell all_outputs -edge_triggered {out2}-edge_triggered选项和-level_sensitive选项是互斥的只能使用其中一个。Multicorner-Multimode支持该命令仅对当前场景生效换句话说只能在当前场景创建输出/双向端口对象集合在指定时钟时仅考虑当前场景。关于场景的更多介绍可以参考下面的博客。Design Compiler多工艺角和多工作模式(Multicorner-Multimode, MCMM)https://blog.csdn.net/weixin_45791458/article/details/149578771?ops_request_misc%257B%2522request%255Fid%2522%253A%2522e3267dcc7cc26380435f53994dc8b9b8%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257Drequest_ide3267dcc7cc26380435f53994dc8b9b8biz_id0utm_mediumdistribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~rank_v31_ecpm-1-149578771-null-null.nonecaseutm_termMCMMspm1018.2226.3001.4450写在最后all_outputs命令在功能上等价于下面这两种get_ports命令。dcnxt_shell get_ports -filter directioninout or directionout dcnxt_shell get_ports * -filter directioninout or directionout如果想创建端口使用create_port命令如果想移除端口使用remove_port命令如果想报告端口的详细信息使用report_port命令。all_outputs命令返回的是输出/双向端口对象集合但该命令会自动调用query_objects命令显示对象名列表执行该命令后可看到对应列表列表中的对象名数量最多由collection_result_display_limit变量控制默认为100。