Skip to content

Clean up get_rr_node_index a bit #355

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

Closed
vaughnbetz opened this issue Jun 7, 2018 · 4 comments
Closed

Clean up get_rr_node_index a bit #355

vaughnbetz opened this issue Jun 7, 2018 · 4 comments
Assignees
Labels
enhancement Feature enhancement VPR VPR FPGA Placement & Routing Tool

Comments

@vaughnbetz
Copy link
Contributor

get_rr_node_index has some odd code that should be cleaned up.

  1. For rr_node index lookups of CHANX types, the x and y index is swapped when rr_node_indices is loaded:

https://github.com/verilog-to-routing/vtr-verilog-to-routing/blob/master/vpr/src/route/rr_graph2.cpp#L1255,L1264

Then when the lookup is done in get_rr_node_index, the indices are swapped again.

https://github.com/verilog-to-routing/vtr-verilog-to-routing/blob/master/vpr/src/route/rr_graph2.cpp#L1354,L1356

We should stop doing that, and delete the comment about it.

  1. We allow lookups by side for CHANX and CHANY, even though side makes no sense for them. We should at least always go to side 0, rather than the enumerated type at sides[0] as that will break if sides[0] is not equal to 0.

https://github.com/verilog-to-routing/vtr-verilog-to-routing/blob/master/vpr/src/route/rr_graph2.cpp#L1338,L1341

Proposed Behaviour

Same as current, but less confusing code under the hood.

Current Behaviour

None.

Possible Solution

See above.

Context

Code cleanup.

@vaughnbetz vaughnbetz added enhancement Feature enhancement VPR VPR FPGA Placement & Routing Tool labels Jun 7, 2018
@vaughnbetz
Copy link
Contributor Author

@kmurray

Copy link

This issue has been inactive for a year and has been marked as stale. It will be closed in 15 days if it continues to be stale. If you believe this is still an issue, please add a comment.

@github-actions github-actions bot added the Stale label Apr 29, 2025
@vaughnbetz
Copy link
Contributor Author

@soheilshahrouz : I think you just fixed this -- is that right?

@soheilshahrouz
Copy link
Contributor

Closing the issue as #3042 was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature enhancement VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

No branches or pull requests

3 participants