vtr-verilog-to-routing icon indicating copy to clipboard operation
vtr-verilog-to-routing copied to clipboard

Remove static and global varibales from net cost computation

Open soheilshahrouz opened this issue 6 months ago • 2 comments

This PR refactors net_cost_handler.cpp/.h files. A new class called NetCostHandler is added. All static variables in net_cost_handler.cpp are now member variables of NetCostHandler. Removing file-scoped variables is another step towards running multiple annealers at the same time.

Types of changes

  • [ ] Bug fix (change which fixes an issue)
  • [ ] New feature (change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [ ] My change requires a change to the documentation
  • [ ] I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • [ ] All new and existing tests passed

soheilshahrouz avatar Aug 05 '24 23:08 soheilshahrouz