-------------------------------------------------------------------------------- 0 | -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- 2 | -- Test generic clause -------------------------------------------------------------------------------- 3 | package PACK1 is -------------------------------------------------------------------------------- 4 | -------------------------------------------------------------------------------- 5 | generic ( -------------------------------------------------------------------------------- 6 | -------------------------------------------------------------------------------- 7 | -- Test function -------------------------------------------------------------------------------- 8 | pure function funct1 parameter ( -------------------------------------------------------------------------------- 9 | signal sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 10 | constant con1, con2 : in std_logic := 0; -------------------------------------------------------------------------------- 11 | variable sig1, sig2 : in std_logic := 0; -------------------------------------------------------------------------------- 12 | sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 13 | file fil1, fil2 : std_logic; -------------------------------------------------------------------------------- 14 | type typ1) return boolean is <>; -------------------------------------------------------------------------------- 15 | -------------------------------------------------------------------------------- 16 | pure function funct1 parameter ( -------------------------------------------------------------------------------- 17 | signal sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 18 | constant con1, con2 : in std_logic := 0; -------------------------------------------------------------------------------- 19 | variable sig1, sig2 : in std_logic := 0; -------------------------------------------------------------------------------- 20 | sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 21 | file fil1, fil2 : std_logic; -------------------------------------------------------------------------------- 22 | type typ1) return boolean is func1; -------------------------------------------------------------------------------- 23 | -------------------------------------------------------------------------------- 24 | impure function funct1 parameter ( -------------------------------------------------------------------------------- 25 | signal sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 26 | constant con1, con2 : in std_logic := 0; -------------------------------------------------------------------------------- 27 | variable sig1, sig2 : in std_logic := 0; -------------------------------------------------------------------------------- 28 | sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 29 | file fil1, fil2 : std_logic; -------------------------------------------------------------------------------- 30 | type typ1) return boolean is <>; -------------------------------------------------------------------------------- 31 | -------------------------------------------------------------------------------- 32 | impure function funct1 parameter ( -------------------------------------------------------------------------------- 33 | signal sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 34 | constant con1, con2 : in std_logic := 0; -------------------------------------------------------------------------------- 35 | variable sig1, sig2 : in std_logic := 0; -------------------------------------------------------------------------------- 36 | sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 37 | file fil1, fil2 : std_logic; -------------------------------------------------------------------------------- 38 | type typ1) return boolean is func1; -------------------------------------------------------------------------------- 39 | -------------------------------------------------------------------------------- 40 | -- Remove Parameter -------------------------------------------------------------------------------- 41 | pure function funct1 ( -------------------------------------------------------------------------------- 42 | signal sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 43 | constant con1, con2 : in std_logic := 0; -------------------------------------------------------------------------------- 44 | variable sig1, sig2 : in std_logic := 0; -------------------------------------------------------------------------------- 45 | sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 46 | file fil1, fil2 : std_logic; -------------------------------------------------------------------------------- 47 | type typ1) return boolean is <>; -------------------------------------------------------------------------------- 48 | -------------------------------------------------------------------------------- 49 | pure function funct1 ( -------------------------------------------------------------------------------- 50 | signal sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 51 | constant con1, con2 : in std_logic := 0; -------------------------------------------------------------------------------- 52 | variable sig1, sig2 : in std_logic := 0; -------------------------------------------------------------------------------- 53 | sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 54 | file fil1, fil2 : std_logic; -------------------------------------------------------------------------------- 55 | type typ1) return boolean is func1; -------------------------------------------------------------------------------- 56 | -------------------------------------------------------------------------------- 57 | impure function funct1 ( -------------------------------------------------------------------------------- 58 | signal sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 59 | constant con1, con2 : in std_logic := 0; -------------------------------------------------------------------------------- 60 | variable sig1, sig2 : in std_logic := 0; -------------------------------------------------------------------------------- 61 | sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 62 | file fil1, fil2 : std_logic; -------------------------------------------------------------------------------- 63 | type typ1) return boolean is <>; -------------------------------------------------------------------------------- 64 | -------------------------------------------------------------------------------- 65 | impure function funct1 ( -------------------------------------------------------------------------------- 66 | signal sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 67 | constant con1, con2 : in std_logic := 0; -------------------------------------------------------------------------------- 68 | variable sig1, sig2 : in std_logic := 0; -------------------------------------------------------------------------------- 69 | sig1, sig2 : in std_logic bus := 0; -------------------------------------------------------------------------------- 70 | file fil1, fil2 : std_logic; -------------------------------------------------------------------------------- 71 | type typ1) return boolean is func1; -------------------------------------------------------------------------------- 72 | -------------------------------------------------------------------------------- 73 | -- Remove formal_parameter_list -------------------------------------------------------------------------------- 74 | pure function funct1 return boolean is <>; -------------------------------------------------------------------------------- 75 | -------------------------------------------------------------------------------- 76 | pure function funct1 return boolean is func1; -------------------------------------------------------------------------------- 77 | -------------------------------------------------------------------------------- 78 | impure function funct1 return boolean is <>; -------------------------------------------------------------------------------- 79 | -------------------------------------------------------------------------------- 80 | impure function funct1 return boolean is func1; -------------------------------------------------------------------------------- 81 | -------------------------------------------------------------------------------- 82 | -- Remove interface_subprogram_default -------------------------------------------------------------------------------- 83 | pure function funct1 return boolean; -------------------------------------------------------------------------------- 84 | -------------------------------------------------------------------------------- 85 | pure function funct1 return boolean; -------------------------------------------------------------------------------- 86 | -------------------------------------------------------------------------------- 87 | impure function funct1 return boolean; -------------------------------------------------------------------------------- 88 | -------------------------------------------------------------------------------- 89 | impure function funct1 return boolean; -------------------------------------------------------------------------------- 90 | -------------------------------------------------------------------------------- 91 | -- Remove pure/impure -------------------------------------------------------------------------------- 92 | function funct1 return boolean; -------------------------------------------------------------------------------- 93 | -------------------------------------------------------------------------------- 94 | function funct1 return boolean; -------------------------------------------------------------------------------- 95 | -------------------------------------------------------------------------------- 96 | function funct1 return boolean; -------------------------------------------------------------------------------- 97 | -------------------------------------------------------------------------------- 98 | function funct1 return boolean -------------------------------------------------------------------------------- 99 | -------------------------------------------------------------------------------- 100 | ); -------------------------------------------------------------------------------- 101 | -------------------------------------------------------------------------------- 102 | -------------------------------------------------------------------------------- 103 | end package PACK1;