<@U016H5X1K62> You are right, it's my fault, i nee...
# xschem
s
@User You are right, it's my fault, i need to write a comprehensive documentation about xschem tcl commands. The reason for a lack of docs is because this was subject to change and lot of trial/error to get something useful. However now it is quite stable (i am not changing it every day!) so i will work on that. Coming to your question, you can select and report all components that match a certain search criteria: example below:
Copy code
# select all components with symbol name matching 'pfet'
#         subcmd     regex|exact  1:select, -1:unselect  attribute     value     
xschem    search        regex          1                 cell::name    pfet
1
xschem selected_set
{M8} {M9} {M10} {M11} {M12} {M13} {M24} {M25} {M26} {M27} {M28} {M29}
foreach i [xschem selected_set] {
  #  do something 
}
xschem unselect_all
for attributes everything that refers to a symbol (for example the type attribute, the format attributem, name etc) must be prefixed with cell::. Any attribute not prefixed with cell:: refers directly to instance attributes. for example if you do :
xschem search regex 1 name M
you are selecting all mos instances (M1, M2, M3...) Another useful command is the
getprop
command:
xschem getprop instance M8 L
0.15