]> git.nickg.me.uk Git - nvc.git/commit
vhpi: Add get/set support for selected names
authorSean Anderson <seanga2@gmail.com>
Thu, 22 Jun 2023 01:00:43 +0000 (21:00 -0400)
committerNick Gasson <nick@nickg.me.uk>
Thu, 22 Jun 2023 06:25:32 +0000 (07:25 +0100)
commitcdddab99b6c36ad4314935ffd50f9ad9841ba444
tree4dd70c64b1c9e84c7611256421bb3e8503daf5f5
parentd72bf7b64ce07dca4da30f1d2948825520fa651e
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.
src/rt/model.c
src/rt/model.h
src/vhpi/vhpi-model.c
test/regress/gold/vhpi5.txt
test/regress/vhpi5.vhd
test/vhpi/vhpi5.c