Skip to content

Add a new API make_edges_as_rr_switch_ids() to RRGraphBuilder #1902

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 5 commits into from
Nov 3, 2021
Merged

Add a new API make_edges_as_rr_switch_ids() to RRGraphBuilder #1902

merged 5 commits into from
Nov 3, 2021

Conversation

m-hariszafar
Copy link

Description
This PR focuses on updating routing resource graph builder functions, where we use the refactored data structure RRGraphBuilder to shadow the discrete data structure rr_graph_storage.
This PR aims to fully refactored/deprecate the direct use of the legacy API make_edges_as_rr_switch_ids() from the rr_node data structure.

After this PR, the make_edges_as_rr_switch_ids() from the refactored data structure RRGraphBuilder is the only way to use it.

Checklist:

  • Removed the legacy API make_edges_as_rr_switch_ids() from rr_node.cpp and rr_node.h (if present)
  • Added new API make_edges_as_rr_switch_ids() to data structures RRGraphBuilder, whose comments are Doxygen compatible
  • Replaced all the use of make_edges_as_rr_switch_ids() in respective functions (if needed)

Related Issue
This pull request is a follow-up PR on the routing resource graph refactoring effort #1805, #1868

Motivation and Context
This PR is a continuation of the refactoring effort with a focus on shadowing the rr_graph_storage APIs in the RRGraphBuilder data structure.
This PR refactored the make_edges_as_rr_switch_ids() API among the other APIs in #1847, #1868

How Has This Been Tested?

  • All vtr basic and strong tests are passing.

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

@github-actions github-actions bot added the VPR VPR FPGA Placement & Routing Tool label Oct 27, 2021
@m-hariszafar
Copy link
Author

QoR tests are completed and a quick summary is given below. QoR comparison files are also attached.

titan_quick_qor test:
flow run time 18.88% on average.
critical path delays 0% on average.
Peak memory usage -0.19% on average

vtr_reg_qor_chain_depop test:
Flow run time 11.63% on average.
critical path delays 0% on average.
Peak memory usage is -11.58% on average.

Here are the attached files
titan_quick_qor.xlsx
vtr_chain_depop.xlsx

@m-hariszafar m-hariszafar marked this pull request as ready for review October 28, 2021 10:01
@tangxifan
Copy link
Contributor

@hariszafar-lm Please merge the master into this branch. This should clear the red flag.

@tangxifan
Copy link
Contributor

@hariszafar-lm Just need to resolve the conflicts. We are good to go.

Copy link
Contributor

@tangxifan tangxifan left a comment

Choose a reason for hiding this comment

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

LGTM

@tangxifan tangxifan merged commit 89dffd5 into verilog-to-routing:master Nov 3, 2021
@tangxifan tangxifan deleted the api_make_edges_switch_ids branch November 3, 2021 02:16
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.

3 participants