What is -quiet in TCL

572 views Asked by At

I need what below if statement gives true or false, Also please explain about "quiet"

if {[sizeof_collection[get_pins $source-quiet]]>0}

What is gives? Note:- $source is I_TEST_MODE4.

1

There are 1 answers

1
Donal Fellows On

If I assume spaces in the obvious places and other minor syntactic matters, your code snippet is:

if {[sizeof_collection [get_pins $source -quiet]] > 0} {
   # more stuff...
}

I can find, with a few seconds on a web search, a description of get_pins that mentions that -quiet is an option it supports. Without diving in further — I don't use Synopsis at all — I'd guess that -quiet suppresses diagnostic messages (e.g., on an empty result) so that the only output produced is the collection of pins on the source, which is then measured using sizeof_collection and checked against zero (as a non-emptiness check). That would be a comprehensible pattern.