forked from alessandro-montanari/vhdl-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
double_fifo_linebuffer.vhd
44 lines (35 loc) · 1.32 KB
/
double_fifo_linebuffer.vhd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-- Alessandro Montanari 880606-Y555
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity DoubleFiFOLineBuffer is
generic (
DATA_WIDTH : integer := 8;
NO_OF_COLS : integer := 640 );
port(
clk : in std_logic;
fsync : in std_logic;
rsync : in std_logic;
pdata_in : in std_logic_vector(DATA_WIDTH -1 downto 0);
pdata_out1 : out std_logic_vector(DATA_WIDTH -1 downto 0);
pdata_out2 : buffer std_logic_vector(DATA_WIDTH -1 downto 0);
pdata_out3 : buffer std_logic_vector(DATA_WIDTH -1 downto 0) );
end DoubleFiFOLineBuffer;
architecture Behavioral of DoubleFiFOLineBuffer is
component FIFOLineBuffer is
generic (
DATA_WIDTH : integer := 8;
NO_OF_COLS : integer := 640 );
port(
clk : in std_logic;
fsync : in std_logic;
rsync : in std_logic;
pdata_in : in std_logic_vector(DATA_WIDTH -1 downto 0);
pdata_out : buffer std_logic_vector(DATA_WIDTH -1 downto 0));
end component;
begin
LineBuffer1 : FIFOLineBuffer generic map (DATA_WIDTH => DATA_WIDTH, NO_OF_COLS => NO_OF_COLS)
port map(clk, fsync, rsync,pdata_in, pdata_out2);
LineBuffer2 : FIFOLineBuffer generic map (DATA_WIDTH => DATA_WIDTH, NO_OF_COLS => NO_OF_COLS)
port map(clk, fsync, rsync, pdata_out2, pdata_out3);
pdata_out1 <= pdata_in;
end Behavioral;