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

set sample_element's probeInfo for Vecs #3611

Merged
merged 2 commits into from Oct 31, 2023
Merged

set sample_element's probeInfo for Vecs #3611

merged 2 commits into from Oct 31, 2023

Conversation

debs-sifive
Copy link
Contributor

Contributor Checklist

  • Did you add Scaladoc to every public function/method?
  • Did you add at least one test demonstrating the PR?
  • Did you delete any extraneous printlns/debugging code?
  • Did you specify the type of improvement?
  • Did you add appropriate documentation in docs/src?
  • Did you request a desired merge strategy?
  • Did you add text to be included in the Release Notes for this change?

Type of Improvement

  • Bugfix

Desired Merge Strategy

  • Squash: The PR will be squashed and merged (choose this if you have no preference).

Release Notes

For Vecs, also set the probeInfo of their sample_element, which is used to determine its element type.

Reviewer Checklist (only modified by reviewer)

  • Did you add the appropriate labels? (Select the most appropriate one based on the "Type of Improvement")
  • Did you mark the proper milestone (Bug fix: 3.5.x, 3.6.x, or 5.x depending on impact, API modification or big change: 6.0)?
  • Did you review?
  • Did you check whether all relevant Contributor checkboxes have been checked?
  • Did you do one of the following when ready to merge:
    • Squash: You/ the contributor Enable auto-merge (squash), clean up the commit message, and label with Please Merge.
    • Merge: Ensure that contributor has cleaned up their commit history, then merge with Create a merge commit.

@debs-sifive debs-sifive added the Bugfix Fixes a bug, will be included in release notes label Oct 30, 2023
Copy link
Contributor

@azidar azidar left a comment

Choose a reason for hiding this comment

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

While I approve, i'd like to see a test case that covers this error.

@debs-sifive debs-sifive merged commit 851613e into main Oct 31, 2023
18 checks passed
@debs-sifive debs-sifive deleted the probe-sample-elem branch October 31, 2023 22:19
debs-sifive added a commit that referenced this pull request Oct 31, 2023
@dtzSiFive
Copy link
Member

Can you add a test to check this works as intended and continues to? Thanks!

@debs-sifive
Copy link
Contributor Author

Working on it! Accidentally merged too early, so it will be coming in a separate PR.

@debs-sifive
Copy link
Contributor Author

OK actually after talking with Adam more, the sample_element issue no longer affects the FIRRTL that gets emitted — we were only seeing it before with the probe aggregate-blasting approach because that required probe modifiers to get nested inside of Vecs, which no longer happens/is legal to get emitted.

So it's not something we can detect anymore in the emitted firrtl... that said, I think we should keep this fix in place because it makes sense for the sample_element to have the same probe information to the actual vector elements in case it gets used down the line. Which I know is not going to be super satisfying b/c of this whole "source of truth" on the vector element type getting mutated in this random place :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix Fixes a bug, will be included in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants