-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtreverb_m.vhd
85 lines (71 loc) · 1.46 KB
/
treverb_m.vhd
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
--Fichero de prueba del sistema reverb con mejoras añadidas
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity test_reverb_m is
port (
sout : out signed(15 downto 0);
sout2 : out signed(15 downto 0)
);
end;
architecture only of test_reverb_m is
COMPONENT reverb
generic (
size: integer := 256;
gain: integer := 100
);
port (
enable : in bit;
clk : in bit;
dataout : out signed(15 downto 0);
datain : in signed(15 downto 0)
);
END COMPONENT ;
COMPONENT reverb_m
generic (
size: integer := 256;
gain: integer := 100
);
port (
enable : in bit;
clk : in bit;
dataout : out signed(15 downto 0);
datain : in signed(15 downto 0)
);
END COMPONENT ;
SIGNAL clk : bit := '0';
SIGNAL datain : signed (15 downto 0) := "0000000000000000";
begin
reverb0 : reverb_m
GENERIC MAP (
size => 5,
gain => 128)
PORT MAP (
enable => '1',
datain => datain,
clk => clk,
dataout => sout
);
reverb1 : reverb
GENERIC MAP (
size => 5,
gain => 128)
PORT MAP (
enable => '1',
datain => datain,
clk => clk,
dataout => sout2
);
clock : PROCESS
begin
wait for 10 ns; clk <= not clk;
end PROCESS clock;
stimulus : PROCESS
begin
datain <= "0000000000000000";
wait for 25 ns; datain <= "0000111111111111";
wait for 50 ns; datain <= "1000000001111111";
wait for 100 ns; datain <= "0000000000000000";
wait;
end PROCESS stimulus;
end only;