OpenCores
URL https://opencores.org/ocsvn/1g_ethernet_dpi/1g_ethernet_dpi/trunk

Subversion Repositories 1g_ethernet_dpi

[/] [1g_ethernet_dpi/] [trunk/] [hw/] [src/] [rtl/] [microb_top.v] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 kuzmi4
//--------------------------------------------------------------------------------
2
`timescale 1 ps / 1 ps
3
 
4
module microb_top
5
(
6
  output [7:0] led_8bits_tri_o,
7
  input glbl_rst,
8
  input rs232_uart_rxd,
9
  output rs232_uart_txd,
10
    // 200MHz clock input from board
11
    input sys_diff_clock_clk_n,
12
    input sys_diff_clock_clk_p,
13
    // PHY rst
14
    output        phy_resetn,
15
    // RGMII Interface
16
    output [3:0]  rgmii_txd,
17
    output        rgmii_tx_ctl,
18
    output        rgmii_txc,
19
    input  [3:0]  rgmii_rxd,
20
    input         rgmii_rx_ctl,
21
    input         rgmii_rxc,
22
    // MDIO Interface
23
    inout         mdio,
24
    output        mdc
25
 
26
);
27
//--------------------------------------------------------------------------------
28
// Clock logic to generate required clocks from the 200MHz on board
29
  tri_mode_ethernet_mac_0_example_design_clocks example_clocks
30
   (
31
      // differential clock inputs
32
      .clk_in_p         (sys_diff_clock_clk_p),
33
      .clk_in_n         (sys_diff_clock_clk_n),
34
 
35
      // asynchronous control/resets
36
      .glbl_rst         (glbl_rst),   // in
37
      .dcm_locked       (dcm_locked), // out
38
 
39
      // clock outputs
40
      .gtx_clk_bufg     (gtx_clk_bufg),// 125MHz
41
      .refclk_bufg      (refclk_bufg), // 200 MHZ
42
      .s_axi_aclk       (s_axi_aclk)   // 100MHz
43
   );
44
 
45
assign tx_fifo_clock = gtx_clk_bufg;
46
assign rx_fifo_clock = gtx_clk_bufg;
47
//--------------------------------------------------------------------------------
48
// Generate resets required for the fifo side signals etc
49
   tri_mode_ethernet_mac_0_example_design_resets example_resets
50
   (
51
      // clocks
52
      .s_axi_aclk       (s_axi_aclk),
53
      .gtx_clk          (gtx_clk_bufg),
54
 
55
      // asynchronous resets
56
      .glbl_rst         (glbl_rst),
57
      .reset_error      (reset_error),
58
      .rx_reset         (rx_reset),
59
      .tx_reset         (tx_reset),
60
 
61
      .dcm_locked       (dcm_locked),
62
 
63
      // synchronous reset outputs
64
 
65
      .glbl_rst_intn    (glbl_rst_intn),
66
 
67
 
68
      .gtx_resetn       (gtx_resetn),
69
 
70
      .s_axi_resetn     (s_axi_resetn),
71
      .phy_resetn       (phy_resetn),
72
      .chk_resetn       ()
73
   );
74
 
75
assign tx_fifo_resetn = gtx_resetn;
76
assign rx_fifo_resetn = gtx_resetn;
77
//--------------------------------------------------------------------------------
78
base_microblaze_design  u0
79
(
80
// SYS_CON
81
.Clk              (s_axi_aclk),
82
.reset             (!s_axi_resetn),
83
// LED
84
.led_8bits_tri_o        (led_8bits_tri_o),
85
// UART
86
.rs232_uart_rxd         (rs232_uart_rxd),
87
.rs232_uart_txd         (rs232_uart_txd),
88
// TMEMAC
89
.tmemac_1_glbl_rstn     (glbl_rst_intn),
90
.tmemac_1_gtx_clk       (gtx_clk_bufg),
91
.tmemac_1_inband_clock_speed    (),
92
.tmemac_1_inband_duplex_status  (),
93
.tmemac_1_inband_link_status    (),
94
//  mdio
95
.tmemac_1_mdc           (mdc), // output
96
.tmemac_1_mdio          (mdio), // inout
97
// IDELAYCTRL-clk
98
.tmemac_1_refclk        (refclk_bufg),
99
//  RGMII-rx
100
.tmemac_1_rgmii_rx_ctl  (rgmii_rx_ctl),
101
.tmemac_1_rgmii_rxc     (rgmii_rxc),
102
.tmemac_1_rgmii_rxd     (rgmii_rxd),
103
//  RGMII-tx
104
.tmemac_1_rgmii_tx_ctl  (rgmii_tx_ctl),
105
.tmemac_1_rgmii_txc     (rgmii_txc),
106
.tmemac_1_rgmii_txd     (rgmii_txd)
107
);
108
//--------------------------------------------------------------------------------
109
endmodule

powered by: WebSVN 2.1.0

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