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

Subversion Repositories qaz_libs

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 34 qaztronic
// --------------------------------------------------------------------
2
//
3
 
4
 
5
module
6
  fifo1
7
  #(
8
    parameter DSIZE = 8,
9
    parameter ASIZE = 4
10
  )
11
  (
12
    output [DSIZE-1:0]  rdata,
13
    output              wfull,
14
    output              rempty,
15
    input [DSIZE-1:0]   wdata,
16
    input               winc,
17
    input               wclk,
18
    input               wrst_n,
19
    input               rinc,
20
    input               rclk,
21
    input               rrst_n
22
  );
23
 
24
  wire [ASIZE-1:0] waddr, raddr;
25
  wire [ASIZE:0] wptr, rptr, wq2_rptr, rq2_wptr;
26
 
27
  sync_r2w sync_r2w (.wq2_rptr(wq2_rptr), .rptr(rptr),
28
  .wclk(wclk), .wrst_n(wrst_n));
29
 
30
  sync_w2r sync_w2r (.rq2_wptr(rq2_wptr), .wptr(wptr),
31
  .rclk(rclk), .rrst_n(rrst_n));
32
 
33
  fifomem #(DSIZE, ASIZE) fifomem
34
  (.rdata(rdata), .wdata(wdata),
35
  .waddr(waddr), .raddr(raddr),
36
  .wclken(winc), .wfull(wfull),
37
  .wclk(wclk));
38
 
39
  rptr_empty #(ASIZE) rptr_empty
40
  (.rempty(rempty),
41
  .raddr(raddr),
42
  .rptr(rptr), .rq2_wptr(rq2_wptr),
43
  .rinc(rinc), .rclk(rclk),
44
  .rrst_n(rrst_n));
45
 
46
  wptr_full #(ASIZE) wptr_full
47
  (.wfull(wfull), .waddr(waddr),
48
  .wptr(wptr), .wq2_rptr(wq2_rptr),
49
  .winc(winc), .wclk(wclk),
50
  .wrst_n(wrst_n));
51
 
52
endmodule
53
 

powered by: WebSVN 2.1.0

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