//Variable pipeline depth syncrhonizer module dsync (/*AUTOARG*/ // Outputs dout, // Inputs clk, din ); parameter PS = 2; //number of sync pipeline stages parameter DW = 1; //number of bits to synchronize input clk; input [DW-1:0] din; output [DW-1:0] dout; reg [PS-1:0] sync_pipe[DW-1:0]; genvar i; integer j; generate for(i=0;i