library ieee;
use ieee.std_logic_1164.all;
entity parity_send is
generic(n:integer : =8);
port(a:in std_logic_vector(n - 1 downto 0);
wel : out std_logic);
end parity_send;
architecture one of parity_send is
begin
process(a)
variable tmp : std_logic;
begin
tmp : ='1';
for i in 0 to n-1 loop
tmp : =tmp xor a(i);
end loop
wel <= tmp
end process;
end one
12-03
1509
12-04
1095