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

Add optional source annotation in generated outputs #547

Open
mkorbel1 opened this issue Jan 15, 2025 · 0 comments
Open

Add optional source annotation in generated outputs #547

mkorbel1 opened this issue Jan 15, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@mkorbel1
Copy link
Contributor

Motivation

Information about the original Dart source code that generates some output (e.g. SystemVerilog) could theoretically be extracted during construction and annotated in the result, for example using StackTrace. This type of information could be valuable for debug and mapping of generated outputs back to their original ROHD representation.

Desired solution

Add a way to annotate generated outputs with the original source code line in Dart.

Alternatives considered

No response

Additional details

The StackTrace functionality in Dart should be helpful here, but it might be tricky to figure out which lines in a trace are useful/relevant and which trace is most relevant to a generated line of verilog, since many pieces of code may contribute.

@mkorbel1 mkorbel1 added the enhancement New feature or request label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant