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

Subversion Repositories wb_async_mem_bridge

[/] [wb_async_mem_bridge/] [trunk/] [src/] [sync.v] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 qaztronic
// --------------------------------------------------------------------
2
//
3
// --------------------------------------------------------------------
4
 
5
`include "timescale.v"
6
 
7
 
8
module sync (
9
              input async_sig,
10
              output sync_out,
11
 
12
              input clk
13
            );
14
 
15
  reg [1:2] resync;
16
 
17
  always @(posedge clk)
18
  begin
19
    // update history shifter.
20
    resync <= {async_sig , resync[1]};
21
  end
22
 
23
  assign sync_out = resync[2];
24
 
25
endmodule
26
 

powered by: WebSVN 2.1.0

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