hi every body , my problem is how to read a pixel for a picture (a pixel is composed by three component Red, Green and Blue ) to get the three component. this program is correct into syntax but i m not sure for the result please help me , i m a beginner and i m not sure with the result that gives me
-------------------------------------------------------------------------------------------------------------------------------------------------------------- entity lecteur_pixel is Port ( clk : in STD_LOGIC; composante : in STD_LOGIC_VECTOR (7 downto 0); R : out STD_LOGIC_VECTOR (7 downto 0); G : out STD_LOGIC_VECTOR (7 downto 0); B : out STD_LOGIC_VECTOR (7 downto 0)); end lecteur_pixel;
architecture architecture_lecteur of lecteur_pixel is signal count: STD_LOGIC_VECTOR (1 downto 0):="00";
--a meter that allows counting the number of clock top and decide the composing to read
begin
-- To the first clock top one reads the composing R, to the 2ND one reads G and to the third one reads B process(clk) begin if clk='1' and clk'event then count