1 ----------------------------------------------------------------------------------
10 ----------------------------------------------------------------------------------
12 use IEEE.STD_LOGIC_1164.
ALL;
13 --use IEEE.REDUCE_PKG.ALL;
19 -- Uncomment the following library declaration if using
20 -- arithmetic functions with Signed or Unsigned values
21 --use IEEE.NUMERIC_STD.ALL;
23 -- Uncomment the following library declaration if instantiating
24 -- any Xilinx primitives in this code.
26 --use UNISIM.VComponents.all;
30 DATA : in (numbitsinchan - 1 downto 0);
35 signal tmp : (numbitsinchan - 1 downto 0);
40 xor_gen: for bitnum in 1 to (numbitsinchan-1) generate
45 --PARITY<=xor_reduce(DATA);
std_logic_vector (numbitsinchan - 1 downto 0) tmp
in DATAstd_logic_vector (numbitsinchan - 1 downto 0)