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

Subversion Repositories xge_mac

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

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

Line No. Rev Author Line
1 2 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 tx_hold_fifo(/*AUTOARG*/
42
  // Outputs
43 12 antanguay
  txhfifo_wfull, txhfifo_walmost_full, txhfifo_rdata, txhfifo_rstatus,
44
  txhfifo_rempty, txhfifo_ralmost_empty,
45 2 antanguay
  // Inputs
46 12 antanguay
  clk_xgmii_tx, reset_xgmii_tx_n, txhfifo_wdata, txhfifo_wstatus,
47 2 antanguay
  txhfifo_wen, txhfifo_ren
48
  );
49
 
50
input         clk_xgmii_tx;
51
input         reset_xgmii_tx_n;
52
 
53
input [63:0]  txhfifo_wdata;
54
input [7:0]   txhfifo_wstatus;
55
input         txhfifo_wen;
56
 
57
input         txhfifo_ren;
58
 
59
output        txhfifo_wfull;
60
output        txhfifo_walmost_full;
61
 
62
output [63:0] txhfifo_rdata;
63
output [7:0]  txhfifo_rstatus;
64
output        txhfifo_rempty;
65
output        txhfifo_ralmost_empty;
66
 
67
generic_fifo #(
68
  .DWIDTH (72),
69
  .AWIDTH (`TX_HOLD_FIFO_AWIDTH),
70
  .REGISTER_READ (1),
71
  .EARLY_READ (1),
72
  .CLOCK_CROSSING (0),
73
  .ALMOST_EMPTY_THRESH (7),
74 6 antanguay
  .ALMOST_FULL_THRESH (4),
75 2 antanguay
  .MEM_TYPE (`MEM_AUTO_SMALL)
76
)
77
fifo0(
78
    .wclk (clk_xgmii_tx),
79
    .wrst_n (reset_xgmii_tx_n),
80
    .wen (txhfifo_wen),
81
    .wdata ({txhfifo_wstatus, txhfifo_wdata}),
82
    .wfull (txhfifo_wfull),
83
    .walmost_full (txhfifo_walmost_full),
84
 
85
    .rclk (clk_xgmii_tx),
86
    .rrst_n (reset_xgmii_tx_n),
87
    .ren (txhfifo_ren),
88
    .rdata ({txhfifo_rstatus, txhfifo_rdata}),
89
    .rempty (txhfifo_rempty),
90
    .ralmost_empty (txhfifo_ralmost_empty)
91
);
92
 
93
endmodule
94
 

powered by: WebSVN 2.1.0

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