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

Subversion Repositories turbo8051

[/] [turbo8051/] [trunk/] [rtl/] [gmac/] [mac/] [g_mii_intf.v] - Diff between revs 76 and 77

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 76 Rev 77
Line 79... Line 79...
          rx_reset_n,
          rx_reset_n,
          phy_rx_er,
          phy_rx_er,
          phy_rx_dv,
          phy_rx_dv,
          phy_rxd,
          phy_rxd,
          phy_crs,
          phy_crs,
          // rx_er fix.  need to fwd to mac wrapper, to drop rx_er pkts.  mfilardo.
 
          rx_sts_rx_er_reg,
          rx_sts_rx_er_reg,
 
 
                  // Reset signal
                  // Reset signal
          app_reset_n,
          app_reset_n,
 
 
Line 132... Line 131...
  output      phy_tx_er;          // Transmit Error (Used in Carrier Extension in 1000 Mode)
  output      phy_tx_er;          // Transmit Error (Used in Carrier Extension in 1000 Mode)
  output[7:0] phy_txd;            // Transmit data on the line 
  output[7:0] phy_txd;            // Transmit data on the line 
 
 
  input      phy_tx_clk;         // Transmit Clock in 10/100 Mb/s 
  input      phy_tx_clk;         // Transmit Clock in 10/100 Mb/s 
 
 
  output       rx_sts_rx_er_reg;  // rx_er fix.  need to fwd to mac wrapper, to drop rx_er pkts.  mfilardo.
  output       rx_sts_rx_er_reg;
  input       app_reset_n;          // reset from the application interface
  input       app_reset_n;          // reset from the application interface
 
 
  input       phy_rx_clk;         // Receive Clock in 10/100/1000 Mb/s 
  input       phy_rx_clk;         // Receive Clock in 10/100/1000 Mb/s 
  input       phy_rx_er;          // Receive Error. Used in Carrier Extension in 1000 Mode 
  input       phy_rx_er;          // Receive Error. Used in Carrier Extension in 1000 Mode 
  input       phy_rx_dv;          // Receive Data Valid from the PHY 
  input       phy_rx_dv;          // Receive Data Valid from the PHY 
Line 378... Line 377...
                begin
                begin
                        tx_en_in = 1'b1;
                        tx_en_in = 1'b1;
                        tx_xfr_ack_in = 1'b0;
                        tx_xfr_ack_in = 1'b0;
                        mii_tx_nxt_st = mii_tx_end_st;
                        mii_tx_nxt_st = mii_tx_end_st;
                end
                end
                                else if (!cf_mac_mode & cfg_uni_mac_mode_change)  // Mandar
                                else if (!cf_mac_mode & cfg_uni_mac_mode_change)
                begin
                begin
                        tx_en_in = 1'b1;
                        tx_en_in = 1'b1;
                        tx_xfr_ack_in = 1'b1;
                        tx_xfr_ack_in = 1'b1;
                        mii_tx_nxt_st = mii_tx_nibble_st;
                        mii_tx_nxt_st = mii_tx_nibble_st;
                end
                end
Line 445... Line 444...
                tx_xfr_ack_in = 1'b1;
                tx_xfr_ack_in = 1'b1;
                mii_tx_nxt_st = mii_tx_nibble_st;
                mii_tx_nxt_st = mii_tx_nibble_st;
              end
              end
                        end*/
                        end*/
 
 
        mii_tx_nibble_st:                             // Mandar
        mii_tx_nibble_st:                             /
        // This state picks up a byte from the transmit block
        // This state picks up a byte from the transmit block
        // before transmitting on the line
        // before transmitting on the line
                                        begin
                                        begin
                        if(tx2mi_end_transmit && !byte_boundary_tx )
                        if(tx2mi_end_transmit && !byte_boundary_tx )
                                begin
                                begin
                                        tx_en_in = 1'b1;
                                        tx_en_in = 1'b1;
                                        tx_xfr_ack_in = 1'b1;
                                        tx_xfr_ack_in = 1'b1;
                                        mii_tx_nxt_st = mii_tx_nibble_end_st;
                                        mii_tx_nxt_st = mii_tx_nibble_end_st;
                                end
                                end
                 else if (cf_mac_mode & cfg_uni_mac_mode_change)  // Mandar
                 else if (cf_mac_mode & cfg_uni_mac_mode_change)
                                begin
                                begin
                                        tx_en_in = 1'b1;
                                        tx_en_in = 1'b1;
                                        tx_xfr_ack_in = 1'b1;
                                        tx_xfr_ack_in = 1'b1;
                        mii_tx_nxt_st = mii_tx_byte_st;
                        mii_tx_nxt_st = mii_tx_byte_st;
                                end
                                end

powered by: WebSVN 2.1.0

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