Product Documentation
Virtuoso Visualization and Analysis XL SKILL Reference
Product Version IC23.1, November 2023

pvifreq

pvifreq(
s_analysis
t_pos
t_neg
t_branch1
t_branch2
[ x_freq ]
)
=> o_waveform / nil

Description

Returns the spectral power from voltage and current for a specified frequency list or at all frequencies.

Arguments

s_analysis

Name of the analysis.

Default value is hb.

t_pos

Positive node or net from the schematic or from the Results Browser.

You can also specify a voltage value for this argument.

t_neg

Negative node or net from the schematic or from the Results Browser.

You can also specify a voltage value for this argument.

t_branch1

First branch name on the schematic or the signal name from the Results Browser.

t_branch2

Second branch name on the schematic or the signal name from the Results Browser.

x_freq

Frequency for which you want to plot the results.

It is an optional argument.

You can specify any integer value.

Default value is nil.

Value Returned

o_waveform

Returns a waveform representing the spectral power on spectral power from voltage and current for a specified frequency list or at all frequencies.

nil

Spectral power cannot be calculated because of an error.

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 pvifreq.

wave=pvifreq("hb" "/net30" "/net021" "/V1/PLUS" "/V1/MINUS" 50)
=> srrWave:0x35728bb0

The following example creates a waveform window and returns its window ID.

win=awvCreatePlotWindow()
=> window:4

The following example plots the waveform represented by the waveform object wave.

awvPlotWaveform(
    win
    list(wave)
    ?expr list("spectralPower")
    ?color list("y18")
    ?lineType list("line")
    ?lineStyle list("dash")
    ?lineThickness list("thick")
    ?showSymbols list(t)
    ?dataSymbol list(5)
    )
=> t


Return to top
 ⠀
X