Add new VHDL entities for image processing and update test scripts for Lab2
This commit is contained in:
36
LAB2/src/rgb2gray.vhd
Normal file
36
LAB2/src/rgb2gray.vhd
Normal 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;
|
||||
Reference in New Issue
Block a user