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 some support for automatically displaying enums in gtkwave. #15

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

magnmaeh
Copy link
Member

The flow is basically like this:

  1. An enum is written by the developer in a .sv file. The developer must use verilator directives to generate its equivalent in C++.
  2. The generated enum is parsed in Python. The names of the states and corresponding values are extracted.
  3. The names and values are written to a .gtkw save file. This save file can be used by the developer to display an enum's strings instead of values.

Add a README.md which explains how to use this in a step-by-step guide.

The flow is basically like this:
1. An enum is written by the developer in a .sv file. The developer must
use verilator directives to generate its equivalent in C++.
2. The generated enum is parsed in Python. The names of the states and
corresponding values are extracted.
3. The names and values are written to a .gtkw save file. This save
file can be used by the developer to display an enum's strings
instead of values.

Add a README.md which explains how to use this in a step-by-step guide.
@magnmaeh magnmaeh linked an issue Feb 16, 2024 that may be closed by this pull request
Copy link
Contributor

@Eskilrl Eskilrl left a comment

Choose a reason for hiding this comment

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

Good job!

@Eskilrl Eskilrl merged commit 3227202 into main Feb 23, 2024
1 check 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.

Add support for displaying enums in gtkwave
3 participants