Skip to content

Conversation

@jackkoenig
Copy link
Contributor

@jackkoenig jackkoenig commented Dec 12, 2025

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

  • Backend Code Generation

Desired Merge Strategy

  • Squash

Release Notes

Previously views when used on the LHS of a connection operator, views would provide the prefix view_. Now, at least for 1-1 views, the prefix is derived from the name of the target of the view. This is a common issue when using FlatIO.

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.6.x, 5.x, or 6.x depending on impact, API modification or big change: 7.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) and clean up the commit message.
    • Merge: Ensure that contributor has cleaned up their commit history, then merge with Create a merge commit.

@jackkoenig jackkoenig requested a review from seldridge December 12, 2025 06:02
case PortBinding(mod) => map2(mod.seedOpt, data.seedOpt)(_ + "_" + _)
case (_: LitBinding | _: DontCareBinding) => None
case _ => Some("view_") // TODO implement complex views.
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I recommend hiding whitespace in this diff, it's minimal, mostly tabbing stuff over.

@jackkoenig jackkoenig added the Backend Code Generation Affects backend code generation, will be included in release notes label Dec 12, 2025
@jackkoenig
Copy link
Contributor Author

This is sort of a bugfix, but it is likely to have a large impact on generated FIRRTL (and thus Verilog) so I think its worth marking as Backend Code Generation and probably releasing in a minor (rather than patch) release.

Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

LGTM

@jackkoenig jackkoenig merged commit d7224fa into main Dec 12, 2025
19 of 20 checks passed
@jackkoenig jackkoenig deleted the jackkoenig/fix-view-prefixing branch December 12, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend Code Generation Affects backend code generation, will be included in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants