rtlpy.utils.valid_name

rtlpy.utils.valid_name(name: str) bool

Checks the name is valid for use in RTL. (i.e. contains only letters, numbers, and underscores)

Parameters:

name (str) – The string to check

Returns:

True if the name is valid, False otherwise

Return type:

bool