Difference between revisions of "Remove Verific data structures"

From Verific Design Automation FAQ
Jump to: navigation, search
(Created page with "'''Q: How do I remove all Verific data structures in memory?''' To remove Verilog parsetree: veri_file::ResetParser(); To remove VHDL parsetree: vhdl_file::ResetPa...")
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
'''Q: How do I remove all Verific data structures in memory?'''
 
'''Q: How do I remove all Verific data structures in memory?'''
 +
 +
To remove hdl file sorting data:
 +
 +
    hdl_file_sort::Reset();
 +
 +
To reset file system cache:
 +
 +
    FileSystem::ResetDirectoryCache();
  
 
To remove Verilog parsetree:
 
To remove Verilog parsetree:
  
     veri_file::ResetParser();
+
     veri_file::Reset();
  
 
To remove VHDL parsetree:
 
To remove VHDL parsetree:
  
     vhdl_file::ResetParser();
+
     vhdl_file::Reset();
  
 
To remove synlib parsetree:
 
To remove synlib parsetree:
  
     synlib_file::DeleteAllLibraries();
+
     synlib_file::Reset();
  
 
To remove hierarchy tree:
 
To remove hierarchy tree:
Line 17: Line 25:
 
     hier_tree::DeleteHierarchicalTree() ;
 
     hier_tree::DeleteHierarchicalTree() ;
  
To remove UPF data structures, use:
+
To remove UPF data structures:
  
 
     upf_file::DeleteAll();
 
     upf_file::DeleteAll();
Line 23: Line 31:
 
To remove the netlist database:
 
To remove the netlist database:
  
     delete Libset::Global();
+
     Libset::Reset();
  
 
To remove linefile data (make sure that you've removed all parsetrees and the netlist database):
 
To remove linefile data (make sure that you've removed all parsetrees and the netlist database):
Line 29: Line 37:
 
     LineFile::DeleteAllLineFiles();
 
     LineFile::DeleteAllLineFiles();
 
     LineFile::ResetFileIdMaps();
 
     LineFile::ResetFileIdMaps();
 +
 +
To remove message type settings:
 +
 +
    Message::Reset();
 +
 +
To reset run-time flags:
 +
 +
    RuntimeFlags::DeleteAllFlags();

Latest revision as of 17:15, 18 October 2024

Q: How do I remove all Verific data structures in memory?

To remove hdl file sorting data:

   hdl_file_sort::Reset();

To reset file system cache:

   FileSystem::ResetDirectoryCache();

To remove Verilog parsetree:

   veri_file::Reset();

To remove VHDL parsetree:

   vhdl_file::Reset();

To remove synlib parsetree:

   synlib_file::Reset();

To remove hierarchy tree:

   hier_tree::DeleteHierarchicalTree() ;

To remove UPF data structures:

   upf_file::DeleteAll();

To remove the netlist database:

   Libset::Reset();

To remove linefile data (make sure that you've removed all parsetrees and the netlist database):

   LineFile::DeleteAllLineFiles();
   LineFile::ResetFileIdMaps();

To remove message type settings:

   Message::Reset();

To reset run-time flags:

   RuntimeFlags::DeleteAllFlags();