]> git.nickg.me.uk Git - nvc.git/commit
vhpi: Add support for getting/putting IndexedNames
authorSean Anderson <seanga2@gmail.com>
Mon, 29 May 2023 21:39:41 +0000 (17:39 -0400)
committerNick Gasson <nick@nickg.me.uk>
Sun, 4 Jun 2023 22:00:34 +0000 (22:00 +0000)
commitbeaacde4982f9638fcdc9cece1a3f490641a369b
tree6dc6056ee3a5855c2b2e7b306641666fedd4acc3
parented304b8e5666ae8e3a7868d7787ca2cb8f1c643c
vhpi: Add support for getting/putting IndexedNames

This allows getting/putting nested arrays, and individual elements of an
array. The final index calculation is done lazily, although this
could be done eagerly by moving it to init_indexedName.

The tests for indexednames and the various enum types are extended now
that it is easier to access them.
src/rt/model.c
src/rt/model.h
src/vhpi/vhpi-model.c
test/vhpi/vhpi7.c
test/vhpi/vhpi8.c