19 USE ieee.std_logic_1164.
all;
41 --------------------------------------------------------------------------------
43 --------------------------------------------------------------------------------
44 -- Calculate the parity of incoming data and compere to received parity bit.
45 -- If error found, dout is zeroed and perr is set high.
46 -- If mask is set high, dout and perr are held low.
48 -- NOTE: this logic is not obviously optimised for latency, but in practice
49 -- it has a latency as low as anything that is.
54 --------------------------------------------------------------------------------
62 ourparity:= '1';
-- odd parity
63 for i in 0 to (width - 1) loop
64 ourparity := ourparity xor din(i);
75 idout <= (others=>'0');
in dinstd_logic_vector (width - 1 downto 0)
std_logic_vector (width - 1 downto 0) idout
out doutstd_logic_vector (width - 1 downto 0)
parity_checkdin,parity,mask