]> git.nickg.me.uk Git - nvc.git/commit
vhpi: Add support for getting record types by name
authorSean Anderson <seanga2@gmail.com>
Thu, 22 Jun 2023 01:10:26 +0000 (21:10 -0400)
committerNick Gasson <nick@nickg.me.uk>
Thu, 22 Jun 2023 06:25:32 +0000 (07:25 +0100)
commita6340cd8ea13c76097d25fd6127035c2c9805ead
tree8eac30777a43898ae0d99e200cf9594aa2a0a3ea
parentcdddab99b6c36ad4314935ffd50f9ad9841ba444
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.
src/vhpi/vhpi-model.c
test/vhpi/vhpi5.c