--===========================================================================-- -- Design units : NRZI decoder -- -- File name : nrzidec.vhd -- -- Purpose : convert from NRZI to NRZ -- -- Note : NON-COMMERCIAL USAGE ONLY -- -- Limitations : -- -- Errors : -- -- Library : -- -- Dependencies : -- -- Author : Juergen Hasch, hasch@t-online.de -- Meisenstr. 23 -- 73066 Uhingen -- Germany -- -- Synthesis : Xilinx Foundation F1.4 ------------------------------------------------------------------------------- -- Revision list -- Version Author Date Changes -- 1.0 JH 14 Mar 98 File created -- -- ------------------------------------------------------------------------------- Library ieee; use ieee.std_logic_1164.all; entity nrzidec is port( datain: in std_logic; -- nrzi input clock: in std_logic; -- receiver clock dataout: out std_logic); -- nrz output end nrzidec; architecture behavior of nrzidec is signal del_data: std_logic; -- delayed data begin process(clock,datain) begin if (clock'event and clock='1') then dataout <= not(del_data xor datain); del_data <= datain; end if; end process; end behavior; --============================ End of nrzidec ===================================--