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

awvPlaceBookmark

awvPlaceBookmark(
w_windowID
t_bookmarkType
l_location
[ ?waveIndex x_waveIndex ]
[ ?parent t_parentGroup ]
[ ?description t_description ]
[ ?visible g_visible ]
[ ?properties l_propertiesList ]
[ ?subwindow x_subwindow ]
)
=> l_bookmarkID / nil

Description

Adds a bookmark of the specified type in a subwindow of the specified Waveform window.

The bookmarks can be organized into groups, where a bookmark group can contain another group.

Arguments

w_windowID

Waveform window ID.

t_bookmarkType

Type of the bookmark to be created.

Valid values are:

  • xrange: Creates an X Range bookmark
  • yrange: Creates a Y Range bookmark
  • region: Creates a Region bookmark
  • point: Creates a point bookmark

l_location

A list of two waveform coordinates that specify the location of an xrange, yrange, or a point bookmark.

A list of four waveform coordinates that specify the location of a region bookmark.

A few examples are:

  • xrange: list(25n 125n)
  • yrange: list(0.75 3)
  • point:list(25n 0.75)
  • region: list(25n 0.75 125n 3)

?waveIndex x_waveIndex

Integer identifying the waveform curve in which bookmark is to be created.

?parent t_parentGroup

Name of the parent group when the bookmark is organized into a group or nested groups.

?description t_description

Description to be added to the bookmark.

?visible g_visible

Specifies whether the bookmark is visible by default.

Valid values are:

  • t: Bookmark is visible.
  • nil: Bookmark is not visible.

Default value is t.

?properties l_propertiesList

List of properties that can be set to the bookmark.

For example:

  • fillColor: Color to be filled in the bookmark. Default value is blue.
  • font: Font of the bookmark.
  • lineStyle: Line style of the bookmark. Valid values are solid, dash, dot, dashDot, and dashDotDot. For a region bookmark, default value is solid. For xrange and yrange bookmarks, default value is dash.
  • foreground: Foreground color of the bookmark. Default value is lightblue.
  • notation: Notation of the bookmark. Valid values are suffix, scientific, and engineering. Default value is suffix.
  • showlabel: Specifies when to show the bookmark label. Valid values are off, on, on when hover. Default value is on when hover.
  • sigDigitsMode: Mode of significant digits. Valid values are auto and manual. Default value is auto.
  • significantDigits: Number of significant digits. Default value is 4.
  • zoomScaleFactor: Zoom scale factor. Default value is 1.5.
  • defaultLabel: Adds a string to the default label of the bookmark. Default value is BMbookmarkNumber. For example, BM2.

?subwindow x_subwindow

Number of the subwindow, which is found in the top-right corner of the subwindow.

If you do not specify this argument, the current subwindow is used.

Value Returned

l_bookmarkID

Identification number of the bookmark.

nil

Bookmark cannot be added because of an error.

Examples

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

win=awvCreatePlotWindow()
=> window:3

The following example opens simulation results stored in the specified directory.

openResults("/servers/user/design/ampsim.raw")
=> "/servers/user/design/ampsim.raw"

The following example lists results that are available in the currently open results directory.

results()
=> tran(tranOp ac dcOp dcOpInfo model)

The following example selects the tran result from the current results directory. The tran result contains signal net10 and out.

selectResult('tran)
=> stdobj@0x32253b30

The following example creates a waveform object signal1, representing the waveform of the signal net10 that is available in the tran result.

signal1=v("net10")
=> srrWave:0x36552020

The following example creates a waveform object signal2, representing the waveform of the signal out that is available in the tran result.

signal2=v("out")
=> srrWave:0x36552030

The following example plots the waveforms of signals net10 and out in the Waveform window win.

awvPlotWaveform(
    win
    list(signal1 signal2)
    ?expr list("net10" "out")
    ?color list("y18" "y6")
    ?lineStyle list("solid" "solid")
    ?lineThickness list("thick" "thick")
    )
=> t

The following example returns the wave index numbers and the signal names plotted in the Waveform window, win.

awvGetWaveNameList(win)
=> 
((1 2) 
    ("net10" "out")
)

The following example creates a region bookmark with the specified properties at the specified location. Note that the region bookmark bm1 is attached to the trace net10 because it has the index number 1.

bm1=awvPlaceBookmark(win "region" list(50n 0.5 150n 2.3) ?waveIndex 1 ?description "regionBookmark1" ?properties list(list("fillColor" "red") list("foreground" "blue") list("lineStyle" "dashDotDot")))
=> ("regionBookmark[1.1.1]")

The following example creates another region bookmark with the specified properties at the specified location. The region bookmark bm2 is attached to the trace out because it has the wave index number 2.

bm2=awvPlaceBookmark(win "region" list(160n 1.5 250n 3.5) ?waveIndex 2 ?description "regionBookmark2" ?properties list(list("fillColor" "yellow") list("defaultLabel" "myBookmarkLabel") list("foreground" "blue") list("lineStyle" "dashDotDot")))
=> ("regionBookmark[1.1.2]")

Note that a string myBookMarkLabel is also added to the default label of the bookmark BM2.

The following examples delete bookmarks bm1 and bm2 from the specified Waveform window.

awvDeleteMarker(win bm1)
=> t
awvDeleteMarker(win bm2)
=> t

The following example creates an xrange bookmark with the specified properties at the specified location. Note that the xrange bookmark bm1 is attached to the trace net10 because it has the index number 1.

bm1=awvPlaceBookmark(win "xrange" list(50n 150n) ?waveIndex 1 ?description "myXRangeBookmark" ?properties list(list("fillColor" "red") list("foreground" "blue") list("defaultLabel" "myXRangeLabel") list("lineStyle" "dashDotDot")))
=> ("xrangeBookmark[1.1.1]")

The following example deletes the xrange bookmark bm1 from the specified Waveform window.

awvDeleteMarker(win bm1)
=> t

The following example creates a yrange bookmark with the specified properties at the specified location. Note that the yrange bookmark bm1 is attached to the trace out because it has the index number 2.

bm1=awvPlaceBookmark(win "yrange" list(-1 3.5) ?waveIndex 2 ?description "myYRangeBookmark" ?properties list(list("fillColor" "yellow") list("foreground" "blue") list("lineStyle" "dashDotDot")))
=> ("yrangeBookmark[1.1.1]")


Return to top
 ⠀
X