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

Yosys verbose printing and error handling. #7

Open
rikushoney opened this issue Jul 30, 2024 · 0 comments
Open

Yosys verbose printing and error handling. #7

rikushoney opened this issue Jul 30, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rikushoney
Copy link
Owner

Yosys is verbose and prints to stdout/stderr. We should probably intercept those prints and filter them.

Upon error, Yosys also does a hard exit using _Exit -- preventing us from gracefully exiting.

Yosys has a logging framework in log.cc (log.h).

The two main functions of interest are logv and logv_error_with_prefix.

We can probably add our own stream to log_streams and remove the lines that add stdout/stderr to the logging files.

Then, modify logv and logv_error_with_prefix to call our logger and fault handler, respectively.

@rikushoney rikushoney self-assigned this Jul 30, 2024
@rikushoney rikushoney added the enhancement New feature or request label Jul 30, 2024
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