Skip to content
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

fixed issue with warning being thrown for short switch types #2713

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WhiteNinjaZ
Copy link
Contributor

This PR resolves issue #2712. We have had this fix on our branch of VTR for a long time, but we forgot to merge it into the master branch.

Description

This fix simply changes the if statement checking for connections between wires to include short connections.

How Has This Been Tested?

We have been running this change on our branch of VTR for a long time and on many designs with the Xilinx architecture.

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 lang-cpp C/C++ code label Sep 4, 2024
if (rr_graph.rr_switch_inf(RRSwitchId(switch_index)).type() == SwitchType::SHORT) {
num_shorts++;
continue;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

With this code change, it seems I could get divide by 0 errors late in the routine if a wire is only driven by a short (e.g. it might be the second part of an L-shaped wire). CI seems to have errors, so I think there's a bug here.

@vaughnbetz
Copy link
Contributor

Relaunching CI as the old logs seem to have been deleted (too old probably and got cleaned up).

@vaughnbetz
Copy link
Contributor

@WhiteNinjaZ : Can you check for the divide by zero issue above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-cpp C/C++ code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants