[Prev]

4.2 Skill functions

The skill scripts are a collection of scripts to launch simulations and to log simulation results. These scripts are used as commands within an ocean script.

Table 3 lists the available skill scripts.

Table 3:Skill scripts
Script Description Reference
sim Launch a simulation 4.2.1
log_data Log data point 4.2.2
log_wave Log waveform 4.2.3
log_data_point Creates waveform from data points 4.2.4
log_data_gap Creates a gap in a waveform 4.2.5

4.2.1 sim

Load simulation script and run simulation.

Syntax:

 sim "ocean_script" "corner"

Example:

 > sim "test.ocn" "slow"

The example above simulates the script test.ocn in corner slow.

 > sim "test.ocn"

runs the simulation in the same corner as previous simulation. Default corner is typ.

 > sim

repeats the simulation using previous script file and corner.

4.2.2 log_data

Log single value data point.

Syntax:

 log_data( data "filename" )

Data will be saved in the folder corresponding to the current simulation corner.

Example:

 log_data(IDC("/V0/PLUS") "Isupply")

4.2.3 log_wave

Log waveform data

Syntax:

 log_wave( waveform "filename")

Save waveform data to a file named filename. Data will be saved in the folder corresponding to the current simulation corner.

Example:

 log_wave(VT("/Vout") "Vout")

4.2.4 log_data_point

Save numerical data-point to waveform file

Syntax:

 log_data_point(xdata ydata "filename")

This function is useful in simulation loops, where each iteration creates a new data-point.

Example:

 foreach(vbias '(0.8 0.9 1.0)
   desVar("Vbias" vbias)
   run()
   log_data_point(vbias value(dB20(VF("/out")),10M) "ACgain10M_vs_bias")
 )

runs three simulations for vbias = 0.8, 0.9 and 1.0. A waveform ACgain10M_vs_bias is created.

4.2.5 log_data_gap

Lifts the pen in a waveform. Syntax:

 log_data_gap(output)

This is useful if the plot should not be a continues line.

Example:

  log_data_gap("ACgain10M_vs_bias")


[Prev | Next]