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

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [basal/] [src/] [FIFOs/] [CummingsSNUG2002SJ_FIFO1/] [sync_w2r.v] - Blame information for rev 34

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 34 qaztronic
// --------------------------------------------------------------------
2
//
3
 
4
 
5
module
6
  sync_w2r
7
  #(
8
    parameter ADDRSIZE = 4
9
  )
10
  (
11
    output reg  [ADDRSIZE:0]  rq2_wptr,
12
    input       [ADDRSIZE:0]  wptr,
13
    input                     rclk,
14
    input                     rrst_n
15
  );
16
 
17
  reg [ADDRSIZE:0] rq1_wptr;
18
 
19
  always @(posedge rclk or negedge rrst_n)
20
    if(!rrst_n)
21
      {rq2_wptr,rq1_wptr} <= 0;
22
    else
23
      {rq2_wptr,rq1_wptr} <= {rq1_wptr,wptr};
24
 
25
endmodule
26
 

powered by: WebSVN 2.1.0

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