]> git.nickg.me.uk Git - nvc.git/commit
vhpi: Support char and string values
authorSean Anderson <seanga2@gmail.com>
Sun, 11 Jun 2023 15:02:42 +0000 (11:02 -0400)
committerNick Gasson <nick@nickg.me.uk>
Sun, 18 Jun 2023 07:51:44 +0000 (08:51 +0100)
commit553bb0355f61ecf49667112a62e7a06cfb1c015c
treeb93eff9b4fcde3bcd465dd426f2247f183d2bf6f
parent8d0423543294f46eee9f3eaf2d5d7a043449f668
vhpi: Support char and string values

The native format for character types is vhpiCharVal. Similarly, the
native format for 1-d character arrays is vhpiStrVal. Use these formats
instead of the short enum formats. Note that vhpiStrVals are
nul-terminated, and the terminator is not included in the numElems (but
it is included in bufSize).
src/vhpi/vhpi-model.c
src/vhpi/vhpi-util.c
test/regress/vhpi8.vhd
test/vhpi/vhpi8.c