aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1148/test.vhdl
blob: 51818bd478601e7770cde6b1e9f8e445f2a7996f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
library IEEE;
use IEEE.std_logic_1164.all;
use std.textio.all;

entity mwe is
end mwe;

architecture test of mwe is

begin

  process
    variable starttime : time := 1120 us;
    variable endtime : time := 2031 us;
    variable dt : time;

  begin
    dt := endtime - starttime;
    report "Resulting frequency is: " & to_string(1.0 / (dt / 1000 ms)) & " Hz";

    wait;
  end process;
end test;