DVT SystemVerilog IDE User Guide
Rev. 24.2.25, 31 October 2024

11.3 Method Code Templates

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

To customize the way a generated method looks you can edit the method_implementation, method_override_body or method_prototype code templates.

${qualifiers}

One or more of local/protected, virtual, static. Can be empty.

${kind}

Either function or task.

${lifetime}

Method variable lifetime, static or automatic. Can be empty.

${return_type}

Function return type. Can be empty.

${identifier}

Method name. Includes class_name:: qualifier for extern method implementations.

${arguments}

List of method arguments. Can be empty.

${body}

The method body. If auto-generated, the method_override_body code template is used.

${end_keyword}

Either endfunction or endtask.

${unqualified_identifier}

Method name.

${qualifiers}

One or more of local/protected, virtual, static. Can be empty.

${kind}

Either function or task.

${lifetime}

Method variable lifetime, static or automatic. Can be empty.

${return_type}

Function return type. Can be empty.

${identifier}

Method name.

${arguments}

List of method arguments. Can be empty.