Add new VHDL entities for image processing and update test scripts for Lab2

This commit is contained in:
2025-03-29 00:50:32 +01:00
parent 58f8384507
commit a5264642a6
14 changed files with 552 additions and 18 deletions

36
LAB2/src/rgb2gray.vhd Normal file
View File

@@ -0,0 +1,36 @@
---------- DEFAULT LIBRARIES -------
library IEEE;
use IEEE.STD_LOGIC_1164.all;
use IEEE.NUMERIC_STD.ALL;
use IEEE.MATH_REAL.all; -- For LOG **FOR A CONSTANT!!**
------------------------------------
---------- OTHER LIBRARIES ---------
-- NONE
------------------------------------
entity rgb2gray is
Port (
clk : in std_logic;
resetn : in std_logic;
m_axis_tvalid : out std_logic;
m_axis_tdata : out std_logic_vector(7 downto 0);
m_axis_tready : in std_logic;
m_axis_tlast : out std_logic;
s_axis_tvalid : in std_logic;
s_axis_tdata : in std_logic_vector(7 downto 0);
s_axis_tready : out std_logic;
s_axis_tlast : in std_logic
);
end rgb2gray;
architecture Behavioral of rgb2gray is
begin
end Behavioral;