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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [prj/] [src/] [blackboxes/] [ethmac.v] - Blame information for rev 108

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

Line No. Rev Author Line
1 63 rfajardo
 
2
 
3 84 rfajardo
`include "ethmac_defines.v"
4 63 rfajardo
 
5 84 rfajardo
module ethmac
6 63 rfajardo
(
7
  // WISHBONE common
8
  wb_clk_i, wb_rst_i, wb_dat_i, wb_dat_o,
9
 
10
  // WISHBONE slave
11
  wb_adr_i, wb_sel_i, wb_we_i, wb_cyc_i, wb_stb_i, wb_ack_o, wb_err_o,
12
 
13
  // WISHBONE master
14
  m_wb_adr_o, m_wb_sel_o, m_wb_we_o,
15
  m_wb_dat_o, m_wb_dat_i, m_wb_cyc_o,
16
  m_wb_stb_o, m_wb_ack_i, m_wb_err_i,
17
 
18
`ifdef ETH_WISHBONE_B3
19
  m_wb_cti_o, m_wb_bte_o,
20
`endif
21
 
22
  //TX
23
  mtx_clk_pad_i, mtxd_pad_o, mtxen_pad_o, mtxerr_pad_o,
24
 
25
  //RX
26
  mrx_clk_pad_i, mrxd_pad_i, mrxdv_pad_i, mrxerr_pad_i, mcoll_pad_i, mcrs_pad_i,
27
 
28
  // MIIM
29
  mdc_pad_o, md_pad_i, md_pad_o, md_padoe_o,
30
 
31
  int_o
32
 
33
  // Bist
34
`ifdef ETH_BIST
35
  ,
36
  // debug chain signals
37
  mbist_si_i,       // bist scan serial in
38
  mbist_so_o,       // bist scan serial out
39
  mbist_ctrl_i        // bist chain shift control
40
`endif
41
 
42
);
43
 
44
 
45
parameter Tp = 1;
46
 
47
 
48
// WISHBONE common
49
input           wb_clk_i;     // WISHBONE clock
50
input           wb_rst_i;     // WISHBONE reset
51
input   [31:0]  wb_dat_i;     // WISHBONE data input
52
output  [31:0]  wb_dat_o;     // WISHBONE data output
53
output          wb_err_o;     // WISHBONE error output
54
 
55
// WISHBONE slave
56
input   [11:2]  wb_adr_i;     // WISHBONE address input
57
input    [3:0]  wb_sel_i;     // WISHBONE byte select input
58
input           wb_we_i;      // WISHBONE write enable input
59
input           wb_cyc_i;     // WISHBONE cycle input
60
input           wb_stb_i;     // WISHBONE strobe input
61
output          wb_ack_o;     // WISHBONE acknowledge output
62
 
63
// WISHBONE master
64
output  [31:0]  m_wb_adr_o;
65
output   [3:0]  m_wb_sel_o;
66
output          m_wb_we_o;
67
input   [31:0]  m_wb_dat_i;
68
output  [31:0]  m_wb_dat_o;
69
output          m_wb_cyc_o;
70
output          m_wb_stb_o;
71
input           m_wb_ack_i;
72
input           m_wb_err_i;
73
 
74
wire    [29:0]  m_wb_adr_tmp;
75
 
76
`ifdef ETH_WISHBONE_B3
77
output   [2:0]  m_wb_cti_o;   // Cycle Type Identifier
78
output   [1:0]  m_wb_bte_o;   // Burst Type Extension
79
`endif
80
 
81
// Tx
82
input           mtx_clk_pad_i; // Transmit clock (from PHY)
83
output   [3:0]  mtxd_pad_o;    // Transmit nibble (to PHY)
84
output          mtxen_pad_o;   // Transmit enable (to PHY)
85
output          mtxerr_pad_o;  // Transmit error (to PHY)
86
 
87
// Rx
88
input           mrx_clk_pad_i; // Receive clock (from PHY)
89
input    [3:0]  mrxd_pad_i;    // Receive nibble (from PHY)
90
input           mrxdv_pad_i;   // Receive data valid (from PHY)
91
input           mrxerr_pad_i;  // Receive data error (from PHY)
92
 
93
// Common Tx and Rx
94
input           mcoll_pad_i;   // Collision (from PHY)
95
input           mcrs_pad_i;    // Carrier sense (from PHY)
96
 
97
// MII Management interface
98
input           md_pad_i;      // MII data input (from I/O cell)
99
output          mdc_pad_o;     // MII Management data clock (to PHY)
100
output          md_pad_o;      // MII data output (to I/O cell)
101
output          md_padoe_o;    // MII data output enable (to I/O cell)
102
 
103
output          int_o;         // Interrupt output
104
 
105
// Bist
106
`ifdef ETH_BIST
107
input   mbist_si_i;       // bist scan serial in
108
output  mbist_so_o;       // bist scan serial out
109
input [`ETH_MBIST_CTRL_WIDTH - 1:0] mbist_ctrl_i;       // bist chain shift control
110
`endif
111
 
112
 
113
endmodule

powered by: WebSVN 2.1.0

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