相关阅读SDC命令详解https://blog.csdn.net/weixin_45791458/category_12931432.html目录指定时钟指定边沿/电平触发指定排除时钟源Multicorner-Multimode支持写在最后all_inputs命令用于创建一个输入/双向端口对象集合包含当前设计中的所有输入/双向端口关于设计对象和集合的更详细介绍可以参考下面的博客。Synopsys设计对象https://chenzhang.blog.csdn.net/article/details/147015140?spm1001.2014.3001.5502本文针对Design Compiler但该命令同样存在于PrimeTime、IC Compiler等工具中它们大致相同略有差别。all_inputs命令的BNF范式有关BNF范式可以参考以往文章为all_inputs [-clock clock_name] [-edge_triggered | -level_sensitive] [-exclude_clock_ports] //注该命令的选项和参数顺序任意指定时钟-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_input_delay 0.1 [get_ports in1] -clock clk1 1 dcnxt_shell set_input_delay 0.2 [get_ports in2] -clock clk2 1 dcnxt_shell all_inputs {in1 in2 in3} dcnxt_shell all_inputs -clock [get_clocks clk1] {in1} dcnxt_shell all_inputs -clock [get_clocks clk2] {in2}指定边沿/电平触发-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_input_delay 0.1 [get_ports in1] -clock clk1 -level_sensitive 1 dcnxt_shell set_input_delay 0.2 [get_ports in2] -clock clk2 1 dcnxt_shell all_inputs {in1 in2 in3} dcnxt_shell all_inputs -level_sensitive {in1} dcnxt_shell all_inputs -edge_triggered {in2}-edge_triggered选项和-level_sensitive选项是互斥的只能使用其中一个。指定排除时钟源-exclude_clock_ports选项指定将那些作为时钟源对象的端口排除在集合外如例3所示。// 例3 dcnxt_shell create_clock -period 10 -name clk1 [get_ports in1] 1 dcnxt_shell all_inputs -exclude_clock_ports {in2 in3}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_inputs命令在功能上等价于下面这两种get_ports命令。dcnxt_shell get_ports -filter directioninout or directionin dcnxt_shell get_ports * -filter directioninout or directionin如果想创建端口使用create_port命令如果想移除端口使用remove_port命令如果想报告端口的详细信息使用report_port命令。all_inputs命令返回的是输入/双向端口对象集合但该命令会自动调用query_objects命令显示对象名列表执行该命令后可看到对应列表列表中的对象名数量最多由collection_result_display_limit变量控制默认为100。