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

fmt: Handle free-standing time arguments #4040

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

povik
Copy link
Member

@povik povik commented Nov 20, 2023

Fixes #4018

@povik povik requested a review from whitequark November 20, 2023 16:26
part.type = FmtPart::TIME;
part.realtime = arg->realtime;
part.padding = ' ';
part.width = 20;
Copy link
Member Author

@povik povik Nov 20, 2023

Choose a reason for hiding this comment

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

I copied what $display("%t", $time) does, not sure if up to spec

Copy link
Member

Choose a reason for hiding this comment

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

I think that's not up to spec. I'm not sure who introduced this functionality--I think that was after I offered the fmt PR.

Copy link
Member

@whitequark whitequark left a comment

Choose a reason for hiding this comment

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

It's probably OK to merge as-is.

@povik povik merged commit 34f851f into YosysHQ:master Nov 20, 2023
15 checks passed
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.

Abort in kernel/fmt.cc:454 with "$display($time)" called
2 participants