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

[FIRRTL] Add a new FIRRTL annotation to specify type lowering behavior of module body #7751

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

uenoku
Copy link
Member

@uenoku uenoku commented Oct 30, 2024

Add a new annotation to control type lowering behavior for internal signals
within a module, separate from the port convention. This allows more fine-grained
control over how aggregate types are handled inside modules.

The new annotation works similarly to ConventionAnnotation but applies to
internal signals rather than module ports. It supports the same conventions
and includes an 'includeHierarchy' option to apply the setting to all
modules in the hierarchy.

@uenoku uenoku marked this pull request as draft October 30, 2024 17:15
@uenoku uenoku force-pushed the dev/hidetou/convention-atr branch 2 times, most recently from 2160b4d to c61bffc Compare October 30, 2024 17:24
@uenoku uenoku marked this pull request as ready for review October 30, 2024 17:25
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

LGTM

@uenoku uenoku force-pushed the dev/hidetou/convention-atr branch 2 times, most recently from 2c369d2 to 96b6abd Compare November 14, 2024 15:04
@uenoku uenoku changed the title [FIRRTL] Extend Convention to specify type lowering for body [FIRRTL] Add a new FIRRTL annotation to specify type lowering behavior of module body Nov 14, 2024
…r of module body

This allows more fine-grained control over how types are lowered in different contexts.

This also adds an "includeHierarchy" option to Convention annotations that
allows applying the convention to all modules in the hierarchy below the
annotated module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants