dwgp-const_array.vhd 4.94 KB
Newer Older
lwc-tester committed
1 2 3 4 5 6 7 8 9 10
-- This work is licensed under a Creative Commons
-- Attribution-NonCommercial-ShareAlike 4.0 International License.
-- http://creativecommons.org/licenses/by-nc-sa/4.0

-- Mark D. Aagaard
-- Riham AlTawy
-- Guang Gong
-- Kalikinkar Mandal
-- Raghvendra Rohit
-- Marat Sattarov
lwc-tester committed
11 12
-- Nusa Zidaric
-- http://uwaterloo.ca/communications-security-lab/lwc/wage
lwc-tester committed
13 14 15 16 17


-- This is a human-readable summary of (and not a substitute for) the license. 
-- You are free to:

lwc-tester committed
18 19
--     Share:  copy and redistribute the material in any medium or format
--     Adapt:  remix, transform, and build upon the material
lwc-tester committed
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188

--     The licensor cannot revoke these freedoms as long as you follow
--     the license terms.

-- Under the following terms:

--     Attribution — You must give appropriate credit, provide a link to
--     the license, and indicate if changes were made. You may do so in
--     any reasonable manner, but not in any way that suggests the
--     licensor endorses you or your use.

--     NonCommercial — You may not use the material for commercial
--     purposes.

--     ShareAlike — If you remix, transform, or build upon the material,
--     you must distribute your contributions under the same license as
--     the original.

--     No additional restrictions — You may not apply legal terms or
--     technological measures that legally restrict others from doing
--     anything the license permits.

------------------------------------------
--- dwgp-const_array.vhd for expression
--- WGP(wg, gffe)
--- generated by comsecVHDL package on the fly
------------------------------------------

architecture const_array of dwgp is 

	 type dwgp_table_ty is array( 0 to 2**gf_dim - 1) of gf_elem;	 

	 constant dwgp_table:  dwgp_table_ty := 
 	(gf_elem'("0000000"), 
 	 gf_elem'("0010010"), 
 	 gf_elem'("0001010"), 
 	 gf_elem'("1001011"), 
 	 gf_elem'("1100110"), 
 	 gf_elem'("0001100"), 
 	 gf_elem'("1001000"), 
 	 gf_elem'("1110011"), 
 	 gf_elem'("1111001"), 
 	 gf_elem'("0111110"), 
 	 gf_elem'("1100001"), 
 	 gf_elem'("1010001"), 
 	 gf_elem'("0000001"), 
 	 gf_elem'("0010101"), 
 	 gf_elem'("0010111"), 
 	 gf_elem'("0001110"), 
 	 gf_elem'("1111110"), 
 	 gf_elem'("0110011"), 
 	 gf_elem'("1101000"), 
 	 gf_elem'("0110110"), 
 	 gf_elem'("1000010"), 
 	 gf_elem'("0110101"), 
 	 gf_elem'("0110111"), 
 	 gf_elem'("1011110"), 
 	 gf_elem'("1010011"), 
 	 gf_elem'("1001100"), 
 	 gf_elem'("0111111"), 
 	 gf_elem'("1010100"), 
 	 gf_elem'("1011000"), 
 	 gf_elem'("1101110"), 
 	 gf_elem'("1010110"), 
 	 gf_elem'("0101010"), 
 	 gf_elem'("0011101"), 
 	 gf_elem'("0100101"), 
 	 gf_elem'("1101101"), 
 	 gf_elem'("1100101"), 
 	 gf_elem'("1011011"), 
 	 gf_elem'("1110001"), 
 	 gf_elem'("0101111"), 
 	 gf_elem'("0100000"), 
 	 gf_elem'("0000110"), 
 	 gf_elem'("0011000"), 
 	 gf_elem'("0101001"), 
 	 gf_elem'("0111010"), 
 	 gf_elem'("0001101"), 
 	 gf_elem'("1111010"), 
 	 gf_elem'("1101100"), 
 	 gf_elem'("0011011"), 
 	 gf_elem'("0011001"), 
 	 gf_elem'("1000011"), 
 	 gf_elem'("1110000"), 
 	 gf_elem'("1000001"), 
 	 gf_elem'("1001001"), 
 	 gf_elem'("0100010"), 
 	 gf_elem'("1110111"), 
 	 gf_elem'("1100000"), 
 	 gf_elem'("1001111"), 
 	 gf_elem'("1000101"), 
 	 gf_elem'("1010101"), 
 	 gf_elem'("0000010"), 
 	 gf_elem'("1100011"), 
 	 gf_elem'("1000111"), 
 	 gf_elem'("1110101"), 
 	 gf_elem'("0101101"), 
 	 gf_elem'("1000000"), 
 	 gf_elem'("1000110"), 
 	 gf_elem'("1111101"), 
 	 gf_elem'("1011100"), 
 	 gf_elem'("1111100"), 
 	 gf_elem'("1011001"), 
 	 gf_elem'("0100110"), 
 	 gf_elem'("0001011"), 
 	 gf_elem'("0001001"), 
 	 gf_elem'("0000011"), 
 	 gf_elem'("1010111"), 
 	 gf_elem'("1011101"), 
 	 gf_elem'("0100111"), 
 	 gf_elem'("1111000"), 
 	 gf_elem'("0110000"), 
 	 gf_elem'("0101110"), 
 	 gf_elem'("1000100"), 
 	 gf_elem'("1010010"), 
 	 gf_elem'("0111011"), 
 	 gf_elem'("0001000"), 
 	 gf_elem'("1100111"), 
 	 gf_elem'("0101100"), 
 	 gf_elem'("0000101"), 
 	 gf_elem'("1101011"), 
 	 gf_elem'("0101011"), 
 	 gf_elem'("0011010"), 
 	 gf_elem'("0100001"), 
 	 gf_elem'("0111000"), 
 	 gf_elem'("0000111"), 
 	 gf_elem'("0001111"), 
 	 gf_elem'("1001010"), 
 	 gf_elem'("0010001"), 
 	 gf_elem'("1010000"), 
 	 gf_elem'("1101010"), 
 	 gf_elem'("0101000"), 
 	 gf_elem'("0110001"), 
 	 gf_elem'("0010000"), 
 	 gf_elem'("1001101"), 
 	 gf_elem'("1011111"), 
 	 gf_elem'("1110010"), 
 	 gf_elem'("0111001"), 
 	 gf_elem'("0010110"), 
 	 gf_elem'("1011010"), 
 	 gf_elem'("0010011"), 
 	 gf_elem'("0000100"), 
 	 gf_elem'("0111100"), 
 	 gf_elem'("0110100"), 
 	 gf_elem'("0011111"), 
 	 gf_elem'("1110110"), 
 	 gf_elem'("0011110"), 
 	 gf_elem'("0010100"), 
 	 gf_elem'("0100011"), 
 	 gf_elem'("0011100"), 
 	 gf_elem'("0110010"), 
 	 gf_elem'("1001110"), 
 	 gf_elem'("1111011"), 
 	 gf_elem'("0100100"), 
 	 gf_elem'("1110100"), 
 	 gf_elem'("1111111"), 
 	 gf_elem'("0111101"), 
 	 gf_elem'("1101001"), 
 	 gf_elem'("1100100"), 
 	 gf_elem'("1100010"), 
	 gf_elem'("1101111") 
 ); 


begin

  o_wgp <= dwgp_table( to_integer( unsigned( std_logic_vector( i_x ) ) ) );

end architecture;