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

Printf to file #3997

Open
sequencer opened this issue Apr 13, 2024 · 0 comments
Open

Printf to file #3997

sequencer opened this issue Apr 13, 2024 · 0 comments

Comments

@sequencer
Copy link
Member

Type of issue: Feature Request

Is your feature request related to a problem? Please describe.
printf only can print to stdout, when design is big, it will be unreasonable to use printf for debugging.

Describe the solution you'd like
Here are different solutions:

  • provide an IR for fd as some how Input, printf by default print to stdout fd, but user can pass fd though the the design hierarchy.
  • add an circt option or a special PrintfToFile layer to ask printf in layer goes to fd for corresponding layer.

Describe alternatives you've considered
There are some dirty hacks on this, e.g. prefix printf and deal with stdout with grep:(

What is the use case for implementing this feature?
simulation time logging.

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

1 participant