aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-09-04 03:57:39 +0200
committerTristan Gingold <tgingold@free.fr>2017-09-04 03:57:39 +0200
commit80eacd9d2a9b09fc69ab88adefa64c1a26e5aa52 (patch)
tree32f63265dc7a0bdd4667a882a1334ba9a248685c /src
parent4936125ab6c0fdfe3f3f19c2f1198d86c8c42396 (diff)
downloadghdl-80eacd9d2a9b09fc69ab88adefa64c1a26e5aa52.tar.gz
ghdl-80eacd9d2a9b09fc69ab88adefa64c1a26e5aa52.tar.bz2
ghdl-80eacd9d2a9b09fc69ab88adefa64c1a26e5aa52.zip
vpi: report timeprecision as 1ps
Fix #403
Diffstat (limited to 'src')
-rw-r--r--src/grt/grt-vpi.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grt/grt-vpi.adb b/src/grt/grt-vpi.adb
index a0c413c3b..a3db80a6e 100644
--- a/src/grt/grt-vpi.adb
+++ b/src/grt/grt-vpi.adb
@@ -479,12 +479,12 @@ package body Grt.Vpi is
when vpiType =>
Res := Ref.mType;
when vpiTimePrecision =>
- Res := -9; -- is this nano-seconds?
+ Res := -12; -- In ps.
when vpiSize =>
Res := Vpi_Get_Size (Ref);
when vpiVector =>
Res := Boolean'Pos (Vpi_Get_Vector (Ref));
- when others=>
+ when others =>
dbgPut_Line ("vpi_get: unknown property");
Res := 0;
end case;