blob: 385071ed30c13104ef91d3d19b9418501427bd0d (
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
|
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
library UNISIM;
use UNISIM.VComponents.all;
entity apu_tb_note_to_frequency is
end entity;
architecture Behavioral of apu_tb_note_to_frequency is
component apu_note_to_frequency is
port (
data : in std_logic_vector(7 downto 0);
freq : out std_logic_vector(11 downto 0) --frequency
);
end component;
signal data : std_logic_vector(7 downto 0) := (others => '0');
signal freq : std_logic_vector(11 downto 0) := (others => '0');
signal OK : boolean := false;
begin
UUT: apu_note_to_frequency
port map (
data => data,
freq => freq
);
TB: process
begin
for I in 0 to 255 loop
data <= std_logic_vector(to_unsigned(I, 8));
wait for 4 ps;
end loop;
end process;
end architecture;
|