Skip to content

[FASM] Fixed Bug With Wire Creation #3067

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

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

Conversation

AlexandreSinger
Copy link
Contributor

Found a bug within FASM's wire generation where it uses the index of the output pin to create the wire instead of the index of the input pin.

This stemmed from some confusing code which both verified that the wire was being used and returning the first valid pin. It just so happens that it checked the outputs first and returned the output pin instead.

Cleaned up the code and added more error checking to prevent issues like this in the future.

Found a bug within FASM's wire generation where it uses the index of the
output pin to create the wire instead of the index of the input pin.

This stemmed from some confusing code which both verified that the wire
was being used and returning the first valid pin. It just so happens
that it checked the outputs first and returned the output pin instead.

Cleaned up the code and added more error checking to prevent issues like
this in the future.
@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool lang-cpp C/C++ code labels May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-cpp C/C++ code VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant