diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-10-19 05:12:20 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-10-21 08:03:38 +0200 |
commit | 1803f976121985c6e8e7506c9b959e8d2b5f718c (patch) | |
tree | c590acb9a797c28b01adc40cf5b00b5b017c799c /testsuite/gna | |
parent | f910e02797a83d0c5748768d20359a3d95569cc7 (diff) | |
download | ghdl-1803f976121985c6e8e7506c9b959e8d2b5f718c.tar.gz ghdl-1803f976121985c6e8e7506c9b959e8d2b5f718c.tar.bz2 ghdl-1803f976121985c6e8e7506c9b959e8d2b5f718c.zip |
Pass time-resolution to grt.
Use time-resolution for Put_Time.
Use time-resolution for --stop-time (Parse_Time).
Use time-resolution as VpiTimePrecision and for vcd.
TODO: ghw (but needs to update ghwlib and gtkwave)
Fix #672
Diffstat (limited to 'testsuite/gna')
-rw-r--r-- | testsuite/gna/issue613/ent.vhdl | 2 | ||||
-rwxr-xr-x | testsuite/gna/issue613/testsuite.sh | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/gna/issue613/ent.vhdl b/testsuite/gna/issue613/ent.vhdl index 202a2b9d0..c912189eb 100644 --- a/testsuite/gna/issue613/ent.vhdl +++ b/testsuite/gna/issue613/ent.vhdl @@ -2,7 +2,7 @@ entity ent is end entity; architecture a of ent is - constant SimulationTime_c : time := 10000 sec; + constant SimulationTime_c : time := 10000 ms; begin process begin report "Hello world" severity note; diff --git a/testsuite/gna/issue613/testsuite.sh b/testsuite/gna/issue613/testsuite.sh index ad890e137..029a98433 100755 --- a/testsuite/gna/issue613/testsuite.sh +++ b/testsuite/gna/issue613/testsuite.sh @@ -6,14 +6,14 @@ if ! $GHDL --help -a | grep -q time-resolution; then echo "option --time-resolution not available" else # Below the resolution - analyze_failure --time-resolution=min ent.vhdl + analyze_failure --time-resolution=sec ent.vhdl # Zero physical literals are always allowed. - analyze --time-resolution=sec t1.vhdl - analyze --time-resolution=sec t2.vhdl + analyze --time-resolution=ms t1.vhdl + analyze --time-resolution=ms t2.vhdl analyze ent.vhdl - elab_simulate --time-resolution=ms ent + elab_simulate --time-resolution=us ent elab_simulate --time-resolution=auto ent clean |