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

API for specifying customized transforms in ChiselStage (and dependencies?) #4280

Open
poemonsense opened this issue Jul 16, 2024 · 1 comment

Comments

@poemonsense
Copy link
Contributor

Type of issue: Feature Request

Is your feature request related to a problem? Please describe.

We have some (lightweight) customized transforms before emitting the FIRRTL. They are still written in Scala. Currently we have to build our own stage with the transform in ChiselStage preserved and customized transform inserted.

Is there any clear API for the users to inject some transforms into the stage? The difficult thing may be specifiying the dependency.

Describe the solution you'd like

Allowing customized transforms only just after Convert? Then the dependency issue does not exist.

Describe alternatives you've considered

We are copying the code of ChiselStage (the transforms) and build our own Stage.

Additional context
Include detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. Stack Overflow, gitter, Scastie.

What is the use case for implementing this feature?

Customized transforms to collect information before emitting FIRRTL.

@sequencer
Copy link
Member

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

No branches or pull requests

2 participants