Mariana Huerta
03/20/2023, 8:44 PMi(@m.x1.xm1.msky130_fd_pr_pfet___g5v0d10v5[id])
at once without having to go back in and change them to x2 one by one?Mitch Bailey
03/20/2023, 9:20 PMsed -i.bak 's/\.x1\./.x2./g' *.sch
should change all the .x1.
to .x2.
while saving a backup copy of each file in filenam.bak
.Stefan Schippers
03/21/2023, 9:32 PM${path}
construct that represent the hierarchy above the current circuit.
If your hierarchy changes from .x1 to .x2 the path
variable will be automatically updated. The additional advantage is that if you have two instances of the same circuit, using ${path}
instead of .x1 or .x2 allows each instance to update its own voltages.