-
-
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: Add support for record types #728
Commits on Jun 22, 2023
-
vhpi: Pre-calculate names' offsets
We have all the information necessary to determine the offset of indexed names when creating them. To simplify the process of determining the offset by pre-calculating them.
Configuration menu - View commit details
-
Copy full SHA for 27ee7da - Browse repository at this point
Copy the full SHA 27ee7daView commit details -
vhpi: Add support for vhpiPrefixP
Back when prefixnames got added I forgot to add support for the prefix property itself. Add it now.
Configuration menu - View commit details
-
Copy full SHA for 7aa6fb9 - Browse repository at this point
Copy the full SHA 7aa6fb9View commit details -
Add support for record elements. Convert the vhpi5 test to gold to make it easier to check recursive structures, and change the record definition to something a little more interesting.
Configuration menu - View commit details
-
Copy full SHA for 81cd8b5 - Browse repository at this point
Copy the full SHA 81cd8b5View commit details -
Add support for the NumFields property of record types.
Configuration menu - View commit details
-
Copy full SHA for 695bd8f - Browse repository at this point
Copy the full SHA 695bd8fView commit details -
vhpi: Add support for selected names
The other major type of prefixed names is selected names. Add support for them. In many ways they are simpler than indexed names, since we don't have to keep track of multiple indices. Getting/setting is not supported, but it will be addressed in the next commit.
Configuration menu - View commit details
-
Copy full SHA for 3a32fb7 - Browse repository at this point
Copy the full SHA 3a32fb7View commit details -
vhpi: Add get/set support for selected names
Inhomogenous types are create scopes instead of signals. Additionally, inhomogenous arrays have nested scopes for their elements. Add the necessary machinery to determine the scope for a name/objDecl, and look up the signal at the final level. In the style of vhpi7, assign a value to each element of the test records, and try to change them. To avoid needing to repeat the same code while recursing through records, we just print out the values and check them against the golden output. We cheat a bit for multidimensional arrays because array properties are checked properly in vhpi7.
Configuration menu - View commit details
-
Copy full SHA for 683a4b6 - Browse repository at this point
Copy the full SHA 683a4b6View commit details -
vhpi: Add support for getting record types by name
When cocotb tries to access an object with a name like `VHPI5.O.F`, it doesn't know whether O is a signal or a record. This ambiguity could be resolved by trying to look up the name like `:VHPI5:O.F` or `:VHPI5:O:F`, but cocotb can't determine which to use ahead of time. This is a limitation of cocotb, but probably not one which will ever get resolved. Add support for looking up record types by name, primarily to allow cocotb to access them.
Configuration menu - View commit details
-
Copy full SHA for 3b86c2f - Browse repository at this point
Copy the full SHA 3b86c2fView commit details