Identifier

LRM §2.7.

An identifier is a unique name, which identifies an object.

Syntax:

identifier
\escaped_identifier

Description:

An identifier is used as an object reference. An identifier must begin with a letter or underscore and can contain letters, digits, underscores and dollar signs.

Escaped identifiers start with a backslash and end with a white space (i.e. space, tab, new line, form feed). Escaped identifiers can contain any printable characters. The backslash and white space are not part of the identifier. The identifier Ident is identical to the escaped identfier \Ident .

Identifiers are case sensitive.

Every identifier in a Verilog HDL description has a unique hierarchical name. This means that all nets, registers, tasks, functions, etc. can be accessed from outside the block in which they are declared, by using the hierarchical name. The hierarcical name of an object is formed from the name of the top-level module at the root of the hierarchy, and the names of the module instances, named blocks, tasks or functions that contain the object, separated by periods (.).

Example:

adder
MODULE        // not the same as the keyword module
\$reset*      // escaped identifier

Notes: