set create_clocks_name [get_clocks * -filter "is_generated == false && defined(sources)"]
如代码所示,$create_clocks_name 所示的变量主体中,filter选项过滤了generated clock以及defined(sources),经查clock的attributre,如下图:
对于其中的sources这个attribute,用过滤条件来看 需要加上 “defined”;
以sources这个attribute为例, 其Type类型为collection,在filter 过滤条件里应加上defined(sources);
对于period等这类type为float数值来说,应该加上“period == value”来过滤;
对于is_generated这类type为boolean来说,应该加上“is_generated == true/false”来过滤;
对于object_class这类type为string来说,因该加上“object_class =~ */匹配字符串”来过滤。
以上是我总结的一些关于filter attribute的一些思考,欢迎大家一起讨论验证,若有问题还请及时指出,感激不尽!