OpenCores
URL https://opencores.org/ocsvn/socgen/socgen/trunk

Subversion Repositories socgen

[/] [socgen/] [trunk/] [common/] [opencores.org/] [cde/] [ip/] [sync/] [rtl/] [verilog/] [sync_def] - Rev 134

Compare with Previous | Blame | View Log



reg [WIDTH - 1:0] sync_data [DEPTH:0]; 


always @(*)
  begin
    sync_data[0] = data_in;
  end
  


integer i;

always @(posedge clk) 
  begin
  for (i = 1 ; i <= DEPTH ; i = i + 1)   sync_data[i] <= sync_data[i-1];
  end


assign data_out = sync_data[DEPTH];

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.