-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
VHPI: Preserve original name case for CaseNameP and FullCaseNameP #723
Comments
I don't really want to track the original case of identifiers in addition to the normalised uppercase identifier so I've implemented this in a slightly hacky/best-effort way for declarations using the source location to find the original identifier in the file and fall back to the upper-case name if that doesn't work. Seems to work ok in my limited testing. |
There were two main bugs I saw related to
So this really needs to be accompanied by making That said I've been pretty happy with my solution of just converting all requested identifiers to uppercase in cocotb. |
Yes if they can live with that it would be much simpler. |
Unfortunately we can't since we service SV code as well. We can't know what PLI interface returned an object, nor the original source language of any object, due to the abstraction of the GPI. Nor do we want to know, as that's the whole point of abstracting the interface away. |
CaseNameP
andFullCaseNameP
are specified to use "...the case of letters in the identifier of the ... declaration." However, we currently always return these properties as uppercase.I don't think this is particularly high priority (and would likely take a lot of effort to resolve). However, the cocotb folks requested that a tracking issue be created for this deviation.
The text was updated successfully, but these errors were encountered: