diff options
author | Kammie <kammoh@gmail.com> | 2019-02-14 00:07:06 -0500 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2019-02-14 06:07:06 +0100 |
commit | 4b9a513b53b5a121a1abe5fd93abc8d14e6b7750 (patch) | |
tree | d39b21acb861fa1dacf99b2d995daf350f9658d3 /src/grt/grt-vpi.ads | |
parent | 50da90f509aa6de2961f1795af0be2452bc2c6d9 (diff) | |
download | ghdl-4b9a513b53b5a121a1abe5fd93abc8d14e6b7750.tar.gz ghdl-4b9a513b53b5a121a1abe5fd93abc8d14e6b7750.tar.bz2 ghdl-4b9a513b53b5a121a1abe5fd93abc8d14e6b7750.zip |
VPI: add support for detecting ports and their directions (#753)
* VPI: add support for detecting ports and their directions
* fix indentation
* address gna/issue450: hack to include "ports" in "net" iteration
Diffstat (limited to 'src/grt/grt-vpi.ads')
-rw-r--r-- | src/grt/grt-vpi.ads | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/grt/grt-vpi.ads b/src/grt/grt-vpi.ads index 68635c876..0ee7cc5e9 100644 --- a/src/grt/grt-vpi.ads +++ b/src/grt/grt-vpi.ads @@ -44,6 +44,15 @@ package Grt.Vpi is -- object codes, see vpi_user.h vpiModule: constant integer := 32; vpiNet: constant integer := 36; + vpiPort: constant integer := 44; + -- + vpiDirection: constant integer := 20; + vpiInput: constant integer := 1; + vpiOutput: constant integer := 2; + vpiInout: constant integer := 3; + vpiMixedIO: constant integer := 4; + vpiNoDirection: constant integer := 5; + vpiParameter: constant integer := 41; vpiLeftRange: constant integer := 79; vpiRightRange: constant integer := 83; |