aboutsummaryrefslogtreecommitdiff
path: root/basys3/basys3.srcs/apu_tb_LUT_reader.vhd
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2023-02-22 11:17:49 +0100
committerGitHub <noreply@github.com>2023-02-22 11:17:49 +0100
commit6e1cce415050ca82f8243b5ae5a8d1564f311ee8 (patch)
tree98f0192011cde1251d38be5573292b5a130e1f1a /basys3/basys3.srcs/apu_tb_LUT_reader.vhd
parent9b84c25a53b7269228743e398b13c19af505226b (diff)
parent936bb51ceba0427aa1a36fcd6398d56a1a99e160 (diff)
Merge pull request #15 from UnavailableDev/dev
APU LUT / Calulations
Diffstat (limited to 'basys3/basys3.srcs/apu_tb_LUT_reader.vhd')
-rw-r--r--basys3/basys3.srcs/apu_tb_LUT_reader.vhd48
1 files changed, 48 insertions, 0 deletions
diff --git a/basys3/basys3.srcs/apu_tb_LUT_reader.vhd b/basys3/basys3.srcs/apu_tb_LUT_reader.vhd
new file mode 100644
index 0000000..5a38d39
--- /dev/null
+++ b/basys3/basys3.srcs/apu_tb_LUT_reader.vhd
@@ -0,0 +1,48 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+library UNISIM;
+use UNISIM.VComponents.all;
+
+entity apu_tb_LUT_reader is
+end entity;
+
+architecture Behavioral of apu_tb_LUT_reader is
+ component apu_LUT_reader is
+ port (
+ clk : in std_logic;
+ rst : in std_logic;
+ freq : in std_logic_vector(11 downto 0);
+ wave : in std_logic_vector(1 downto 0);
+ value : out std_logic_vector(7 downto 0)
+ );
+ end component;
+
+ signal OK : boolean := false;
+
+ signal clk : std_logic := '0';
+ signal rst : std_logic := '0';
+ signal freq : std_logic_vector(11 downto 0) := (others => '0');
+ signal wave : std_logic_vector(1 downto 0) := (others => '0');
+
+begin
+
+ TB: process
+ begin
+ wave <= "00";
+ for I in 0 to 255 loop
+ clk <= '1';
+
+ -- freq <= '1';
+
+
+ wait for 1 ps;
+ clk <= '0';
+ wait for 1 ps;
+
+
+ end loop;
+ end process;
+
+end architecture;