pvrfreq
pvrfreq(s_analysis t_pos t_neg x_resistance[x_freq] ) =>o_waveform/nil
Description
Returns the spectral power from voltage and current for a specified frequency list or at all frequencies.
Arguments
|
Positive node or net from the schematic or from the Results Browser. |
|
|
Negative node or net from the schematic or from the Results Browser. |
|
|
Frequency for which you want to plot the results. |
Value Returned
|
Returns the waveform representing the spectral power on specified frequency or at all frequencies with resistor and voltage on the positive and negative nodes. |
|
Examples
The following example opens simulation results of hb-hbnoise analysis stored in the specified results directory.
openResults("/servers/user/testcase/simulation/lib/cell/maestro/results/maestro/ExplorerRun.0/1/test/psf")
=> "/servers/user/testcase/simulation/lib/cell/maestro/results/maestro/ExplorerRun.0/1/test/psf"
The following example lists the available results in the currently open results directory.
results()
=>
(xf hb_fi hb_fd hb_td hbnoise_sample_hm0
hbnoise_sample_hm1 model instance output designParamVals
primitives subckts variables
)
The following example selects the result hb_fi.
selectResults('hb_fi)
=> stdobj@0x31533260
The following example lists the output signals stored in the selected result.
outputs()
=>
("/net3" "/emitter" "/net021" "/net17" "/varactor1"
"/net30" "/collector" "/base" "/net8" "/out"
"/IPRB0/PLUS" "/L0/PLUS" "/L1/PLUS" "/V0/PLUS" "/V1/PLUS"
"/V2/PLUS"
)
The following example creates a waveform object wave that represents the spectral power calculated for the arguments specified for the function pvrfreq.
wave=pvrfreq("hb" "/net30" "/net021" 20 4e9)
=> srrWave:0x35729b00
The following example creates a waveform window and returns its window ID.
win=awvCreatePlotWindow()
=> window:3
The following example plots the waveform represented by the waveform object wave.
awvPlotWaveform(
win
list(wave)
?expr list("spectralPower")
?color list("y6")
?lineType list("line")
?lineStyle list("dash")
?lineThickness list("thick")
?showSymbols list(t)
?dataSymbol list("o")
)
=> t

Return to top