注意:这个链接的教程是不对的。在lang=spectre的情况下,save的方式应该是
save Ipll.XI0\\/XI1\\/net23 (两个反斜杠加斜杠,而不是点)
// Save file example. Run "spectre -h save" for more info.
// In this snippet, I provided samples on probing currents and voltages in hierarchical instance Ipll/XI0/XI1
// From a Schematic testbench perspective, this means Top Level -> Instance Ipll -> Instance XI0 -> Instance XI0
simulator lang=spectre
// The following will save Voltage on net23 of Ipll/XI0/XI1
save Ipll.XI0.XI1.net23
// The following will save Current on Source terminal of transistor M0 of Ipll/XI0/XI1
save Ipll.XI0.XI1.M0:s sigtype=subckt
// Example1: The following will save all the d/g/s/b currents of Ipll/XI0/*/M0
save Ipll.XI0*M0 sigtype=subckt
// The following will save Current on Source terminal of transistor M0 of Ipll/XI0/XI1
save Ipll.XI0.XI1.M0:s sigtype=subckt
// The following will save Current on Source terminal of transistor M0 of Ipll/XI0/XI1/XI0\<0\>, first instance of the bus.
save Ipll.XI0.XI1.XI0\<0\>.M0:s sigtype=subckt