Product Documentation
Cadence SKILL IDE User Guide
Product Version IC23.1, August 2023

Documentation-specific Code

This topic provides information on writing documentation-specific code in SKILL/SKILL++.

For the Finder Manager to extract documentation from the SKILL/SKILL++ source files, you need to insert inline documentation strings in the code blocks. Each inline documentation string in a code block is associated with a declaration.

The following section describes the elements of an inline documentation string.

Inline documentation strings are added right after the definition of a class, function, or method in the source file. Opening quotation “ and closing quotation “ mark the beginning and end of a documentation string.

Documentation strings may also contain some additional keywords that describe the attributes of classes, functions, or methods being defined. These keywords are identified by an @ symbol.

Keywords for Functions, Classes, and Methods in SKILL and SKILL++

The following table lists the keywords that are common for functions, classes, and methods in SKILL and SKILL++:

Keyword Description

@brief <text>

A brief description of the function, method, or class

@param <name>

The parameter name

@return <value>

The function return value

Inline documentation strings are supported for the following SKILL functions and classes: defun, procedure, nprocedure, defmethod, defgeneric, defglobalfun, globalProc, defclass, and ansiDefmethod.

Inline documentation strings for functions and classes are treated differently. So, there’s no conflict if you specify the same name for a function as well as a class.

Sample Inline Documentation Strings for Functions, Classes, and Methods in SKILL and SKILL++

Keywords for Classes and Methods in SKILL++

The following table lists the keywords that are specific to SKILL++ classes and methods:

Keywords for SKILL++ Classes
Keyword Description

@brief <text>

A brief description of the class

@slot <description>

Slot description of the SKILL++ class

Keywords for SKILL++ Methods
Keyword Description

@brief <text>

A brief description of the method

@spec <spec-list>

The list of specializers

@return <value>

Return value for the method

Sample Inline Documentation Strings for Classes and Methods in SKILL++

In SKILL++ classes, the inline documentation strings are added after the slot list. For example:

In SKILL++ methods, the inline documentation strings are added after the specializer list. For example:

Related Topics

SKILL IDE Document Generation

Output Formatting

Extracting Documentation using Finder Manager

Viewing the Generated Documentation in Finder


Return to top
 ⠀
X