165 lines
3.2 KiB
VHDL
165 lines
3.2 KiB
VHDL
|
|
entity FIFO is
|
|
generic (
|
|
G_WIDTH : integer := 256;
|
|
G_DEPTH : integer := 32;
|
|
prefix_GENERIC_suffix : integer := 20
|
|
);
|
|
port (
|
|
I_PORT1 : in std_logic;
|
|
I_PORT2 : out std_logic
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic (
|
|
G_WIDTH : integer := 256;
|
|
G_DEPTH : integer := 32;
|
|
PREFIX_GENERIC_suffix : integer := 20
|
|
);
|
|
port (
|
|
I_PORT1 : in std_logic;
|
|
I_PORT2 : out std_logic
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic (
|
|
G_WIDTH : integer := 256;
|
|
G_DEPTH : integer := 32;
|
|
prefix_GENERIC_SUFFIX : integer := 20
|
|
);
|
|
port (
|
|
I_PORT1 : in std_logic;
|
|
I_PORT2 : out std_logic
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic (
|
|
G_WIDTH : integer := 256;
|
|
G_DEPTH : integer := 32;
|
|
PREFIX_GENERIC_SUFFIX : integer := 20
|
|
);
|
|
port (
|
|
I_PORT1 : in std_logic;
|
|
I_PORT2 : out std_logic
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic(g_size : integer := 10;
|
|
g_width : integer := 256;
|
|
g_depth : integer := 32;
|
|
prefix_generic_suffix : integer := 20
|
|
);
|
|
port (
|
|
i_port1 : in std_logic := '0';
|
|
i_port2 : out std_logic :='1'
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic(g_size : integer := 10;
|
|
g_width : integer := 256;
|
|
g_depth : integer := 32;
|
|
PREFIX_generic_suffix : integer := 20
|
|
);
|
|
port (
|
|
i_port1 : in std_logic := '0';
|
|
i_port2 : out std_logic :='1'
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic(g_size : integer := 10;
|
|
g_width : integer := 256;
|
|
g_depth : integer := 32;
|
|
prefix_generic_SUFFIX : integer := 20
|
|
);
|
|
port (
|
|
i_port1 : in std_logic := '0';
|
|
i_port2 : out std_logic :='1'
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic(g_size : integer := 10;
|
|
g_width : integer := 256;
|
|
g_depth : integer := 32;
|
|
PREFIX_generic_SUFFIX : integer := 20
|
|
);
|
|
port (
|
|
i_port1 : in std_logic := '0';
|
|
i_port2 : out std_logic :='1'
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic(g_size : integer := 10;
|
|
g_width : integer := 256;
|
|
g_depth : integer := 32;
|
|
PREFIX_generic : integer := 20
|
|
);
|
|
port (
|
|
i_port1 : in std_logic := '0';
|
|
i_port2 : out std_logic :='1'
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic(g_size : integer := 10;
|
|
g_width : integer := 256;
|
|
g_depth : integer := 32;
|
|
prefix_generic : integer := 20
|
|
);
|
|
port (
|
|
i_port1 : in std_logic := '0';
|
|
i_port2 : out std_logic :='1'
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic(g_size : integer := 10;
|
|
g_width : integer := 256;
|
|
g_depth : integer := 32;
|
|
generic_SUFFIX : integer := 20
|
|
);
|
|
port (
|
|
i_port1 : in std_logic := '0';
|
|
i_port2 : out std_logic :='1'
|
|
);
|
|
end entity FIFO;
|
|
|
|
entity FIFO is
|
|
generic(g_size : integer := 10;
|
|
g_width : integer := 256;
|
|
g_depth : integer := 32;
|
|
generic_suffix : integer := 20
|
|
);
|
|
port (
|
|
i_port1 : in std_logic := '0';
|
|
i_port2 : out std_logic :='1'
|
|
);
|
|
end entity FIFO;
|
|
|
|
-- functions passed as a generic
|
|
entity b is
|
|
generic (
|
|
type DATA_TYPE;
|
|
function foo (
|
|
a : natural :=0;
|
|
b : DATA_TYPE
|
|
) return natural;
|
|
impure function bar (
|
|
a : integer :=1;
|
|
b : integer :=32;
|
|
constant c : integer
|
|
) return natural;
|
|
procedure baz (
|
|
c : boolean;
|
|
signal d : in std_logic
|
|
)
|
|
);
|
|
end entity b;
|