How to change name of id in Verilog parsetree

From Verific Design Automation FAQ
Jump to: navigation, search

Q:How do I change the name of an id (VeriIdDef) in Verilog parsetree?

Name of identifier can be changed using following steps:

1. Get the scope where identifier is declared (say 'decl_scope').

2. Remove the identifier from its declaration scope:


3. Change the name of identifier:


4. Declare the identifier in decl_scope: