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

I liked this code a lot, but I have a new version with a many new features #22

Open
sean-galloway opened this issue Dec 30, 2023 · 0 comments

Comments

@sean-galloway
Copy link

I liked this code a lot, but I have a new version with many new features. I use a tool called "Sourcery" to code. It helps a lot and points out code that needs to be refactored. I refactored the code while I was adding new features. These new features may be unique to my usage model, but I wanted to let you know. My base repo is here:
https://github.com/sean-galloway/RTLDesignSherpa

The new script is here:
https://github.com/sean-galloway/RTLDesignSherpa/blob/main/bin/vcd2wavedrom2.py

I have a pretty detailed markdown for the script here:
https://github.com/sean-galloway/RTLDesignSherpa/blob/main/docs/mark_down/scripts/vcd2wavedrom2.md

If you have read this far, it creates a text config file that autodetects for clocks (currently, it just looks for 'clk,' but this could be improved) and sets the sample rate to that of the slowest clock. It is a good jumping-off point for the config; users can edit it how they like.

I'm using all the free tools for this project. I use GTKWave for the waveforms. In GTKWave, I can put labels, like "-write port," and then another level within the write port called "--write pointer and control." Using the '-' allows me to detect when a label needs to go into wavedrom and whether it is embedded in another label.

I want folks to be able to follow along with the waveforms. I also added a cycle count at the top of the waveforms that get generated. I can say, "In cycle six, the pointer does this."

I hope you are ok with me just boldly hacking into your code.

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