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

Subversion Repositories sgmii

[/] [sgmii/] [trunk/] [src/] [mANCtrl.v] - Diff between revs 2 and 15

Show entire file | Details | Blame | View Log

Rev 2 Rev 15
Line 1... Line 1...
/*
/*
Developed By Subtleware Corporation Pte Ltd 2011
        Copyright � 2012 JeffLieu-lieumychuong@gmail.com
 
 
 
        This file is part of SGMII-IP-Core.
 
    SGMII-IP-Core is free software: you can redistribute it and/or modify
 
    it under the terms of the GNU General Public License as published by
 
    the Free Software Foundation, either version 3 of the License, or
 
    (at your option) any later version.
 
 
 
    SGMII-IP-Core is distributed in the hope that it will be useful,
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
    GNU General Public License for more details.
 
 
 
    You should have received a copy of the GNU General Public License
 
    along with SGMII-IP-Core.  If not, see <http://www.gnu.org/licenses/>.
 
 
File            :
File            :
Description     :
Description     :
Remarks         :       No Support for Next Page
Remarks         :       No Support for Next Page
Revision        :
Revision        :
        Date    Author          Description
        Date    Author          Description
Line 95... Line 110...
                                                                        r8_State <= stCMPLT_ACK;
                                                                        r8_State <= stCMPLT_ACK;
                        stCMPLT_ACK             :       if(w_AbiMatch && r16_LpAdvAbility==16'h0000) r8_State <= stAN_ENABLE;
                        stCMPLT_ACK             :       if(w_AbiMatch && r16_LpAdvAbility==16'h0000) r8_State <= stAN_ENABLE;
                                                                else if(w_LinkTimerDone && (~w_AbiMatch||(r16_LpAdvAbility!=16'h0000)))
                                                                else if(w_LinkTimerDone && (~w_AbiMatch||(r16_LpAdvAbility!=16'h0000)))
                                                                                                r8_State <= stIDLE_DTECT;
                                                                                                r8_State <= stIDLE_DTECT;
                        stIDLE_DTECT    :       if(w_IdleMatch && w_LinkTimerDone) r8_State <= stLINK_OK; else
                        stIDLE_DTECT    :       if(w_IdleMatch && w_LinkTimerDone) r8_State <= stLINK_OK; else
                                                                        if(w_IdleMatch && r16_LpAdvAbility==16'h0000) r8_State <= stAN_ENABLE;
                                                                        if(w_AbiMatch && r16_LpAdvAbility==16'h0000) r8_State <= stAN_ENABLE;
 
 
                        stLINK_OK               :       if(w_AbiMatch) r8_State <= stAN_ENABLE;
                        stLINK_OK               :       if(w_AbiMatch) r8_State <= stAN_ENABLE;
                        stAN_DIS_LINKOK :       r8_State <= stAN_DIS_LINKOK;
                        stAN_DIS_LINKOK :       r8_State <= stAN_DIS_LINKOK;
                        endcase
                        endcase
        end
        end
Line 180... Line 195...
                                if(i16_RxConfigReg[15:00] == r16_LpAdvAbility[16:01] && (i16_RxConfigReg[14]==1'b1))
                                if(i16_RxConfigReg[15:00] == r16_LpAdvAbility[16:01] && (i16_RxConfigReg[14]==1'b1))
                                        begin
                                        begin
                                        if(r2_AcknowlMatchCnt!=2'b11) r2_AcknowlMatchCnt<=r2_AcknowlMatchCnt+1;
                                        if(r2_AcknowlMatchCnt!=2'b11) r2_AcknowlMatchCnt<=r2_AcknowlMatchCnt+1;
                                        //Consistency Match
                                        //Consistency Match
                                        //When the flag acknowledge match is about to be set
                                        //When the flag acknowledge match is about to be set
                                        //If the bits are same as r16_AbilityReg , consistent
                                        //If the bits are same as r16_LpAdvAbility , consistent
                                        //Else Not consistent;
                                        //Else Not consistent;
                                        //Consistency match is set at the same time as Acknowledge match
                                        //Consistency match is set at the same time as Acknowledge match
                                        if(r2_AcknowlMatchCnt==2'b10 && (i16_RxConfigReg[13:00] == r16_AbilityReg[13:00] && i16_RxConfigReg[15]==r16_AbilityReg[15]))
                                        if(r2_AcknowlMatchCnt==2'b10 && (i16_RxConfigReg[13:00] == r16_AbilityReg[13:00] && i16_RxConfigReg[15]==r16_AbilityReg[15]))
                                                r_ConsistencyMatch <= 1'b1; else r_ConsistencyMatch<=1'b0;
                                                r_ConsistencyMatch <= 1'b1; else r_ConsistencyMatch<=1'b0;
                                        end
                                        end

powered by: WebSVN 2.1.0

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