Constraint Snippets

The following features can be used in DVT to generate new constraints:

To customize the way a generated constraint looks you can edit the constraint_implementation or constraint_prototype code templates.

../../_images/vscode_sv_constraint_snippets.png
../../_images/vscode_sv_constraint_implementation_snippet.png
${qualifiers}

Can be static or empty.

${identifier}

Constraint name. Includes class_name:: qualifier for extern constraint implementations.

${todo_comment}

Comment inserted inside the constraint block.

${body}

The body of the constraint.

../../_images/vscode_sv_constraint_prototype_snippet.png
${qualifiers}

Extern, static or both. Can be empty.

${identifier}

Constraint name.

Note

When a snippet is auto-generated, you may use either the placeholder (${index:var}) or variable (${var}) format. However, to also take advantage of content assist snippets, the placeholder format is recommended.