blob: 613f4f88947ac74d991ba938e36df05220c5834f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
entity saturatingadd is
port(
result : out unsigned(7 downto 0)
);
end saturatingadd;
architecture synth of saturatingadd is
begin
process is
begin
result <= "00000000";
end process;
end;
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use std.textio.all;
entity ent is
end ent;
architecture test of ent is
component saturatingadd is
port(
result : out unsigned(7 downto 0)
);
end component;
signal result : unsigned(7 downto 0);
begin
dut : saturatingadd port map(result);
process is
begin
wait for 10 ns;
write (output, "TEST PASSED." & LF);
wait;
end process;
end test;
|