注意:這個連結的教程是不對的。在lang=spectre的情況下,save的方式應該是
save Ipll.XI0\\/XI1\\/net23 (兩個反斜杠加斜杠,而不是點)
https://community.cadence.com/cadence_technology_forums/f/custom-ic-design/42364/saving-net-voltage-and-pin-currents-at-block-level-and-also-saving-current-in-the-mos-transistors-pins-in-extracted-view/1362576?focus=true
// 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