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

Subversion Repositories ethernet_tri_mode

[/] [ethernet_tri_mode/] [trunk/] [bench/] [verilog/] [reg_int_sim.v] - Blame information for rev 35

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

Line No. Rev Author Line
1 6 maverickis
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  reg_int_sim.v                                               ////
4
////                                                              ////
5
////  This file is part of the Ethernet IP core project           ////
6
////  http://www.opencores.org/projects.cgi/web/ethernet_tri_mode/////
7
////                                                              ////
8
////  Author(s):                                                  ////
9
////      - Jon Gao (gaojon@yahoo.com)                            ////
10
////                                                              ////
11
////                                                              ////
12
//////////////////////////////////////////////////////////////////////
13
////                                                              ////
14
//// Copyright (C) 2001 Authors                                   ////
15
////                                                              ////
16
//// This source file may be used and distributed without         ////
17
//// restriction provided that this copyright statement is not    ////
18
//// removed from the file and that any derivative work contains  ////
19
//// the original copyright notice and the associated disclaimer. ////
20
////                                                              ////
21
//// This source file is free software; you can redistribute it   ////
22
//// and/or modify it under the terms of the GNU Lesser General   ////
23
//// Public License as published by the Free Software Foundation; ////
24
//// either version 2.1 of the License, or (at your option) any   ////
25
//// later version.                                               ////
26
////                                                              ////
27
//// This source is distributed in the hope that it will be       ////
28
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
29
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
30
//// PURPOSE.  See the GNU Lesser General Public License for more ////
31
//// details.                                                     ////
32
////                                                              ////
33
//// You should have received a copy of the GNU Lesser General    ////
34
//// Public License along with this source; if not, download it   ////
35
//// from http://www.opencores.org/lgpl.shtml                     ////
36
////                                                              ////
37
//////////////////////////////////////////////////////////////////////
38
//                                                                    
39
// CVS Revision History                                               
40
//                                                                    
41
// $Log: not supported by cvs2svn $
42
 
43
module reg_int_sim (
44
input                   Reset                                   ,
45
input                   Clk_reg                                 ,
46
                                //Tx host interface 
47
output  [4:0]    Tx_Hwmark                               ,
48
output  [4:0]    Tx_Lwmark                               ,
49
output                  pause_frame_send_en             ,
50
output  [15:0]   pause_quanta_set                ,
51
output                  MAC_tx_add_en                   ,
52
output                  FullDuplex                      ,
53
output  [3:0]    MaxRetry                        ,
54
output  [5:0]    IFGset                                  ,
55
output  [7:0]    MAC_tx_add_prom_data    ,
56
output  [2:0]    MAC_tx_add_prom_add             ,
57
output                  MAC_tx_add_prom_wr              ,
58
output                  tx_pause_en                             ,
59
output                  xoff_cpu                        ,
60
output                  xon_cpu                 ,
61
                                //Rx host interface     
62
output                  MAC_rx_add_chk_en               ,
63
output  [7:0]    MAC_rx_add_prom_data    ,
64
output  [2:0]    MAC_rx_add_prom_add             ,
65
output                  MAC_rx_add_prom_wr              ,
66
output                  broadcast_filter_en         ,
67
output  [15:0]   broadcast_MAX           ,
68
output                  RX_APPEND_CRC                   ,
69
output                  CRC_chk_en                              ,
70
output  [5:0]    RX_IFG_SET                              ,
71
output  [15:0]   RX_MAX_LENGTH                   ,//     1518
72
output  [6:0]    RX_MIN_LENGTH                   ,//     64
73
                                //RMON host interface
74
output  [5:0]    CPU_rd_addr                             ,
75
output                  CPU_rd_apply                    ,
76
input                   CPU_rd_grant                    ,
77
input   [31:0]   CPU_rd_dout                             ,
78
                                //Phy int host interface     
79
output                  Line_loop_en                    ,
80
output  [2:0]    Speed                                   ,
81
                                //MII to CPU 
82
output  [7:0]    Divider                         ,// Divider for the host clock
83
output  [15:0]   CtrlData                        ,// Control Data (to be written to the PHY reg.)
84
output  [4:0]    Rgad                            ,// Register Address (within the PHY)
85
output  [4:0]    Fiad                            ,// PHY Address
86
output          NoPre                           ,// No Preamble (no 32-bit preamble)
87
output          WCtrlData                       ,// Write Control Data operation
88
output          RStat                           ,// Read Status operation
89
output          ScanStat                        ,// Scan Status operation
90
input           Busy                            ,// Busy Signal
91
input           LinkFail                        ,// Link Integrity Signal
92
input           Nvalid                          ,// Invalid Status (qualifier for the valid scan result)
93
input   [15:0]   Prsd                            ,// Read Status Data (data read from the PHY)
94
input           WCtrlDataStart                  ,// This signals resets the WCTRLDATA bit in the MIIM Command register
95
input           RStatStart                      ,// This signal resets the RSTAT BIT in the MIIM Command register
96
input           UpdateMIIRX_DATAReg             ,// Updates MII RX_DATA register with read data
97
);
98
 
99
assign Tx_Hwmark                                        =5'h1e;
100
assign Tx_Lwmark                                        =5'h19;
101
assign pause_frame_send_en                      =0;
102
assign pause_quanta_set                     =0;
103
assign MAC_tx_add_en                            =0;
104
assign FullDuplex                               =1;
105
assign MaxRetry                             =2;
106
assign IFGset                                           =10;
107
assign MAC_tx_add_prom_data                 =0;
108
assign MAC_tx_add_prom_add                      =0;
109
assign MAC_tx_add_prom_wr                       =0;
110
assign tx_pause_en                                      =0;
111
assign xoff_cpu                             =0;
112
assign xon_cpu                          =0;
113
 
114
assign MAC_rx_add_chk_en                                =0;
115
assign MAC_rx_add_prom_data             =0;
116
assign MAC_rx_add_prom_add                  =0;
117
assign MAC_rx_add_prom_wr                   =0;
118
assign broadcast_filter_en                  =0;
119
assign broadcast_MAX                    =10;
120
assign RX_APPEND_CRC                        =0;
121
assign CRC_chk_en                                   =1;
122
assign RX_IFG_SET                                   =10;
123
assign RX_MAX_LENGTH                        =1518;
124
assign RX_MIN_LENGTH                        =64;
125
 
126
assign CPU_rd_addr                                              =0;
127
assign CPU_rd_apply                         =0;
128
 
129
assign Line_loop_en                                             =0;
130
assign Speed                                            =3'b001;
131
 
132
endmodule

powered by: WebSVN 2.1.0

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