-
Notifications
You must be signed in to change notification settings - Fork 41
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
After convertion using vcd2fsdb, the width of regs are not shown explictly. #5
Comments
I'm glad pyvcd is working for you! And thank you for identifying this issue. The
Without any change to pyvcd, I believe it would be possible to pass a name string with the bit selection embedded. For example:
It is perhaps worth trying that in your application. However, even if that works, it may be preferable to add an optional
In my primary pyvcd application, I do not use bit selections. I am interested in your thoughts on these various options for supporting bit selections in variable declarations. |
Thank you for your immediate reply. I will give it a try. |
It works as what you said. |
Hi all,
I have used pyvcd in my env. It is very excellent.
Verdi is my waveform tool. So I have to change vcd file to fsdb file. After convertion, in the waveform, the regs for example "a[7:0]" are shown "a". I have to click on "a" to show its width.
I found that the code "var_str = '$var {var_type} {size} {ident} {name} $end'.format(var_type=var_type, size=var_size, ident=ident, name=name)" in "def register_var" of writer if be changed to '$var {var_type} {size} {ident} {name} [h_pos:l_pos] $end'.format(var_type=var_type, size=var_size, ident=ident, name=name, h_pos=h_pos, l_pos=l_pos)" can meet my demand.
Can I change the code?
The text was updated successfully, but these errors were encountered: