Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbCreateWidthSpacingPatternWithColor

dbCreateWidthSpacingPatternWithColor(
d_cellView
t_name
l_patternSpecs
t_startingColor
[ n_offset ]
[ g_repeatOffset ]
[ t_allowedRepeatMode ]
[ t_defaultRepeatMode ]
)
=> d_widthSpacingPattern / nil 

Description

Creates a width spacing pattern in the specified cellview. This function requires you to specify the color for only the first track, referred to as the starting color. All other tracks are colored automatically by shifting colors.

Arguments

d_cellView

The ID of the cellview for which the width spacing pattern must be created.

t_name

Name of the width spacing pattern.

l_patternSpecs

list(l_patternSpec)
List of track group specifications.

where,

  • l_patternSpec: list(l_specs [d_repeat [l_wireTypes] [l_displayPacketNames]]) A track group specification.
    • l_specs: list(l_spec) List of individual track specifications for the specified track group.
      • l_spec: list(g_width g_space [t_wireType] [t_displayPacketName]) A track specification.
        g_width Width of the shapes for the specified track.

  

g_space The distance of the next track from the current track, in the period direction.

t_wireType The type of wire. This parameter can be specified only when d_repeat l_wireTypes is not specified. It is used to refer to a specific group of tracks, for example, routing a set of tracks by name. The default value is an empty string "".

t_displayPacketName The name of a display packet that can be specified to control how the track should be drawn on the screen.

    • d_repeat The number of times the track group is repeated. A value of 1 creates the track group from the specified l_specs (1x). A value of 2 creates the track group from the specified l_specs that are repeated once (2x).

  

    • l_wireTypes: list([t_wireType ...]) List of wire types associated with the specified track group (only if d_repeat is specified on the track group). Use an empty string ("") to specify no wire type for an individual track. If the number of tracks in the track group is greater than the number of wire types in this list, then the wire types list is repeated across the track group until all tracks are assigned a wire type, one-by-one.
      • t_wireType The type of wire.

      For example, for a track group with 6 tracks:
      • If l_wireTypes is list("a" "b"), then tracks 1, 3, and 5 are wire type a; tracks 2, 4, and 6 are wire type b.
      • If l_wireTypes is list("a" "a" "b"), then tracks 1, 2, 4, and 5 are wire type a; tracks 3 and 6 are wire type b.
    • l_displayPacketNames List of display packet names for the track group (only if d_repeat is specified).
      Default value: An empty list.
      l_displayPacketName: list([t_displaypacketName …])
      t_displayPacketName is the display packet name for the specified track.

t_startingColor

Color of the first track. All tracks are automatically colored by color shifting from the previous track color. Valid values are "mask1Color", "mask2Color", "mask3Color", and “grayColor”. Use "grayColor" to make all tracks uncolored.

n_offset

The distance of the first track from the period track.

g_repeatOffset

Determines whether the offset is applied when a pattern repeats.

When set to t the offset is repeated every time and when set to nil the offset is applied only once.

t_allowedRepeatMode

Name of allowed repeat mode. Valid values are "any", "none", "steppedOnly" and "flippedOnly". The default value is "any".

t_defaultRepeatMode

Name of default repeat mode. Valid values are "noRepeat", "stepped", "flippedStartsWithOdd" and "flippedStartsWithEven". The default value is "noRepeat".

Value Returned

d_widthSpacingPattern

The ID of the created width spacing pattern.

nil

Returned in case of failure.

Examples

A width spacing pattern wsp is created in the cellview cv with two track specifications.

dbCreateWidthSpacingPatternWithColor(cv "wscp" '((((0.04 0.08 "mywire1" "mask1Color") (0.09 0.012)))) "mask2Color" 0.05 t "steppedOnly" "stepped")

Return to top
 ⠀
X