是的,sdc中的许多指令作用是有重叠的,没有必要都设置,如果都设置了,工具会选择最严格的那一个,也不存在某个指令一定要设置一说,有较大的自由度,这块主要就是根据自己的经验了,你说的这句话是从synopsys官方的DC Explorer User Guide中翻译过来的,但是翻译有问题,原文是:you cannot remove the max_transition,max_fanout,max capacitance attributes set in a logic library because they are the requirement for the logic library,but you can set stricter values that override the default values;
关于指令的作用范围,这个就得具体指令具体来说了,比如set_max_fanout,表示整个设计的所有信号线的扇出约束,而set_max_capacitance则不是,它就是对负载电容的约束,也就是仅仅作用到output pin上;具体的指令可以查看DC Explorer User Guide 官方文档,里面会对每个指令有具体的解释,比如,对于max capacitance,官方文档里是这么描述的:define the maximum total capacitive load that an output pin can drive,that is,the pin cannot connect to a net that has a total capacitance greater or equal to the maximum capacitance define on the pin;