diff options
author | UnavailableDev <ggwildplay@gmail.com> | 2023-02-22 11:09:16 +0100 |
---|---|---|
committer | UnavailableDev <ggwildplay@gmail.com> | 2023-02-22 11:09:16 +0100 |
commit | 936bb51ceba0427aa1a36fcd6398d56a1a99e160 (patch) | |
tree | 98f0192011cde1251d38be5573292b5a130e1f1a /basys3/basys3.srcs/apu_note_to_frequency_tb.vhd | |
parent | c3b877f0503ce995bd79ed3f4eb74d7370839582 (diff) | |
parent | 9b84c25a53b7269228743e398b13c19af505226b (diff) |
Merge branch 'dev' of https://github.com/lonkaars/avans-arcade into merge
Diffstat (limited to 'basys3/basys3.srcs/apu_note_to_frequency_tb.vhd')
-rw-r--r-- | basys3/basys3.srcs/apu_note_to_frequency_tb.vhd | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/basys3/basys3.srcs/apu_note_to_frequency_tb.vhd b/basys3/basys3.srcs/apu_note_to_frequency_tb.vhd new file mode 100644 index 0000000..6814c1f --- /dev/null +++ b/basys3/basys3.srcs/apu_note_to_frequency_tb.vhd @@ -0,0 +1,33 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +library unisim; +use unisim.vcomponents.all; + +entity apu_note_to_frequency_tb is +end entity; + +architecture Behavioral of apu_note_to_frequency_tb 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; |