vtr-verilog-to-routing
vtr-verilog-to-routing copied to clipboard
Remove static and global varibales from net cost computation
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