blob: 6d67d8c42e9647b00896fa719e641b0142f6bd15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
entity range_tb1 is
end range_tb1;
architecture tb of range_tb1 is
begin
process
variable i : integer;
begin
-- Behaves like 32-bit arithmetic with modular truncation
i := integer'low;
report integer'image(i);
i := integer'low-1;
report integer'image(i);
wait; -- forever
end process;
end tb;
|