Skip to content

NoC Placement Code Improvement #2315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
May 19, 2023
Merged

NoC Placement Code Improvement #2315

merged 32 commits into from
May 19, 2023

Conversation

saaramahmoudi
Copy link
Contributor

@saaramahmoudi saaramahmoudi commented May 15, 2023

Description

This pull request is made based on issue 2262, and applied some code improvements for NoC placer functions and data structures.
@vaughnbetz

Related Issue

issue 2262

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)
  • Code Improvement

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

… by using range-based loop for affected_traffic_flow data structure (item 4 in issue 2262)
@saaramahmoudi saaramahmoudi requested a review from vaughnbetz May 15, 2023 18:48
@github-actions github-actions bot added the VPR VPR FPGA Placement & Routing Tool label May 15, 2023
Copy link
Contributor

@vaughnbetz vaughnbetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good; just suggest changing a reference to a const reference in one spot (always do this for references you only read from, and always use const & instead of pass by value for big read-only data structures).

* ClusterBlockId extracted from netlist.
*
*/
void set_router_cluster_in_netlist(std::vector<ClusterBlockId>& routers_cluster_id_in_netlist);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use a const & instead of an &

@saaramahmoudi
Copy link
Contributor Author

@vaughnbetz Ready to merge.

@vaughnbetz vaughnbetz merged commit 924fd89 into master May 19, 2023
@vaughnbetz vaughnbetz deleted the noc_refactor branch May 19, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants