diff --git a/common/hdl/dsync.v b/common/hdl/dsync.v index 9edbe9e..e0f94ad 100644 --- a/common/hdl/dsync.v +++ b/common/hdl/dsync.v @@ -15,27 +15,30 @@ module dsync (/*AUTOARG*/ `ifdef TARGET_SIM - reg [PS-1:0] sync_pipe[DW-1:0]; + reg [DW-1:0] sync_pipe[PS-1:0]; `else - (* ASYNC_REG = "TRUE" *) (* DONT_TOUCH = "TRUE" *) reg [PS-1:0] sync_pipe[DW-1:0]; + (* ASYNC_REG = "TRUE" *) (* DONT_TOUCH = "TRUE" *) reg [DW-1:0] sync_pipe[PS-1:0]; `endif genvar i; - integer j; - generate - for(i=0;i