Product Documentation
Virtuoso Technology Data SKILL Reference
Product Version IC23.1, June 2023

techCreateWidthSpacingPatternWithColor

techCreateWidthSpacingPatternWithColor(
d_techFileId
t_name
l_patternSpecs
t_startingColor
[ g_offset ]
[ b_repeatOffset ]
[ t_allowedRepeatMode ]
[ t_defaultRepeatMode ]
)
=> d_WidthSpacingPatternId / nil

Description

(Virtuoso Advanced Node for Layout Only) Creates a width spacing pattern in the specified technology file. 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_techFileId

Specifies the ID of the technology file in which the width spacing pattern is to be created.

t_name

Specifies the width spacing pattern name.

l_patternSpecs

Specifies a list of track group specifications.

list(l_patternSpec)

where,

l_patternSpec is a track group specification.

l_patternSpec: list(l_trackSpecs [d_repeat [l_trackWireTypes]
[
l_displayPacketNames]])

  • l_trackSpecs is the list of individual track specifications for the specified track group.
    list(l_trackSpec)
    l_trackSpec is a track specification.
    l_trackSpec: list(g_width g_space [t_wireType][t_displayPacketName])
    • g_width is a width of the shapes for the specified track.
    • g_space is the distance of the next track from this track, in the period direction.
    • t_wireType is a string that represents the wire type (only if d_repeat l_trackWireTypes is not specified).
    • t_displayPacketName is the name of a display packet that can be specified to control how the track should be drawn on the screen.
  • d_repeat is the number of repeats for the track group. 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_trackWireTypes is a list of wire types for the track group (only if d_repeat is specified on the track group).
    list([t_wireType …])
    To not assign a wire type to an individual track, an empty string can be used.
    t_wireType is a string that represents the wire type.
  • l_displayPacketNames is a 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

Specifies the color of the first track. All tracks are automatically colored by color shifting from the previous track color.

Valid values: mask1Color, mask2Color, mask3Color, and grayColor (uncolored).

g_offset

Specifies the distance of the first track from the period track.

Default value: 0

b_repeatOffset

Specifies a flag to indicate whether the offset is applied when a pattern is repeated.

Default value: nil

t_allowedRepeatMode

Specifies the allowed repeat mode.

Valid values: any (default), none, steppedOnly, and flippedOnly.

t_defaultRepeatMode

Specifies the default repeat mode.

Valid values: noRepeat (default), stepped, flippedStartsWithOdd, and flippedStartsWithEven.

Value Returned

d_widthSpacingPatternId

Returns the ID of the created width spacing pattern.

nil

Returned in case of failure.

Example

techCreateWidthSpacingPatternWithColor( 
    tech 
    "wsp" 
    list(list(list(list(0.04 0.08 "wireType1X") list(0.08 0.12 "wireType2X")))) 
    "mask2Color" 0.05 
    "steppedOnly" "stepped"
    )

Creates the wsp width spacing pattern with two tracks in the specified technology file, as shown in the following figure. allowedRepeatMode is steppedOnly, which implies that the pattern can only be stepped, but not flipped. In conformance, defaultRepeatMode is stepped.


Return to top
 ⠀
X