Product Documentation
Digital Design Netlisting and Simulation SKILL Reference
Product Version IC23.1, June 2023

hnlPrintString

hnlPrintString(
t_text
[ g_general ]
)
=> t / nil

Description

Prints the SKILL string text argument to the netlist file.

If a comment is too long to fit on one line, as determined by the hnlMaxLineLength variable, this function converts the comment into multiple single-line comments and adds the comment character, as specified by the hnlCommentStr variable, to the beginning of each line.

If a line is not a comment, but is too long, a new line is inserted after the maximum line length is reached. The maximum line length is determined by the hnlMaxLineLength variable. If the hnlLinePostfix variable is not nil, the string specified by this variable is appended to all continued lines. If the hnlLinePrefix variable is not nil, the string specified by this variable is placed at the beginning of all continued lines after the inserted new line.

This function also accepts an optional argument that specifies if a new line should be created after a maximum line length.

Arguments

t_text

Text to be printed to the netlist file.

g_general

When set as t, it specifies that the text to be printed should not be split when hnlSoftLineLength is reached, even when the text has blank spaces. However, if the number of characters printed on a single line exceeds the length specified by the hnlMaxLineLength variable, the line is broken after printing the string specified by the hnlLinePostFix variable. This argument can be used to print parameter values in the netlist file when parameter values have blank spaces.

Value Returned

t

The given string is printed to the netlist file.

nil

The command was unsuccessful.

Examples

hnlPrintString( "The current cell is a netlist primitive." )

Related Topics

OSS Functions


Return to top
 ⠀
X