38 lines
638 B
VHDL
38 lines
638 B
VHDL
|
|
entity FIFO is
|
|
generic (
|
|
WIDTH_G : integer := 256;
|
|
DEPTH_G : integer := 32
|
|
);
|
|
end entity FIFO;
|
|
|
|
|
|
-- Violation below
|
|
|
|
entity FIFO is
|
|
generic (
|
|
WIDTH_W : integer := 256;
|
|
DEPTH : integer := 32
|
|
);
|
|
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;
|