-- synchronizer.vhd: 1-input synchronizer -- Dan R. K. Ports -- 6.111 Lab 2, 2003/10/01 library ieee; use ieee.std_logic_1164.all; entity synchronizer is port ( clk, syncin : in std_logic; syncout : out std_logic); end synchronizer; architecture synchronizer of synchronizer is begin -- synchronizer -- purpose: synchronize output on rising edge of clock -- type : combinational -- inputs : clk -- outputs: syncout sync: process (clk) begin -- process sync if rising_edge(clk) then syncout <= syncin; end if; end process sync; end synchronizer;