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

Subversion Repositories xge_mac

[/] [xge_mac/] [trunk/] [rtl/] [verilog/] [rx_stats_fifo.v] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 antanguay
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  File name "tx_hold_fifo.v"                                  ////
4
////                                                              ////
5
////  This file is part of the "10GE MAC" project                 ////
6
////  http://www.opencores.org/cores/xge_mac/                     ////
7
////                                                              ////
8
////  Author(s):                                                  ////
9
////      - A. Tanguay (antanguay@opencores.org)                  ////
10
////                                                              ////
11
//////////////////////////////////////////////////////////////////////
12
////                                                              ////
13
//// Copyright (C) 2008 AUTHORS. All rights reserved.             ////
14
////                                                              ////
15
//// This source file may be used and distributed without         ////
16
//// restriction provided that this copyright statement is not    ////
17
//// removed from the file and that any derivative work contains  ////
18
//// the original copyright notice and the associated disclaimer. ////
19
////                                                              ////
20
//// This source file is free software; you can redistribute it   ////
21
//// and/or modify it under the terms of the GNU Lesser General   ////
22
//// Public License as published by the Free Software Foundation; ////
23
//// either version 2.1 of the License, or (at your option) any   ////
24
//// later version.                                               ////
25
////                                                              ////
26
//// This source is distributed in the hope that it will be       ////
27
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
28
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
29
//// PURPOSE.  See the GNU Lesser General Public License for more ////
30
//// details.                                                     ////
31
////                                                              ////
32
//// You should have received a copy of the GNU Lesser General    ////
33
//// Public License along with this source; if not, download it   ////
34
//// from http://www.opencores.org/lgpl.shtml                     ////
35
////                                                              ////
36
//////////////////////////////////////////////////////////////////////
37
 
38
 
39
`include "defines.v"
40
 
41
module rx_stats_fifo(/*AUTOARG*/
42
  // Outputs
43
  rxsfifo_rdata, rxsfifo_rempty,
44
  // Inputs
45
  clk_xgmii_rx, reset_xgmii_rx_n, wb_clk_i, wb_rst_i, rxsfifo_wdata,
46
  rxsfifo_wen
47
  );
48
 
49
input         clk_xgmii_rx;
50
input         reset_xgmii_rx_n;
51
input         wb_clk_i;
52
input         wb_rst_i;
53
 
54
input [13:0]  rxsfifo_wdata;
55
input         rxsfifo_wen;
56
 
57
output [13:0] rxsfifo_rdata;
58
output        rxsfifo_rempty;
59
 
60
generic_fifo #(
61
  .DWIDTH (14),
62
  .AWIDTH (`RX_STAT_FIFO_AWIDTH),
63
  .REGISTER_READ (1),
64
  .EARLY_READ (1),
65
  .CLOCK_CROSSING (1),
66
  .ALMOST_EMPTY_THRESH (7),
67
  .ALMOST_FULL_THRESH (12),
68
  .MEM_TYPE (`MEM_AUTO_SMALL)
69
)
70
fifo0(
71
    .wclk (clk_xgmii_rx),
72
    .wrst_n (reset_xgmii_rx_n),
73
    .wen (rxsfifo_wen),
74
    .wdata (rxsfifo_wdata),
75
    .wfull (),
76
    .walmost_full (),
77
 
78
    .rclk (wb_clk_i),
79
    .rrst_n (~wb_rst_i),
80
    .ren (1'b1),
81
    .rdata (rxsfifo_rdata),
82
    .rempty (rxsfifo_rempty),
83
    .ralmost_empty ()
84
);
85
 
86
endmodule

powered by: WebSVN 2.1.0

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