i am currently learning about IC physical design. I came across this set of TCL command which I understand only partially. I the second and third 'set' command, what does the '-only_leaf' and '-flat' refer to?
Please help me by giving some explanation.
Thank you guys.

Those are flags accepted by the
all_fanoutandall_fanincommands; thesetis just storing the results in variables. (Tcl usessetto do basic assignment; it doesn't have top level operators.)At a guess,
-flatmeans "give me the results as a flat list" (instead of something more complicated such as a list of lists?) and-only_cells(or-only_leaf) acts as a filter to say which information is to be returned. I'd need to read the documentation for those commands to say for sure; it is definitely application-specific and I don't use the Synopsis tools at all.