Line 41... |
Line 41... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.5 2002/04/22 14:54:14 mohor
|
|
// FCS should not be included in NibbleMinFl.
|
|
//
|
// Revision 1.4 2002/01/23 10:28:16 mohor
|
// Revision 1.4 2002/01/23 10:28:16 mohor
|
// Link in the header changed.
|
// Link in the header changed.
|
//
|
//
|
// Revision 1.3 2001/10/19 08:43:51 mohor
|
// Revision 1.3 2001/10/19 08:43:51 mohor
|
// eth_timescale.v changed to timescale.v This is done because of the
|
// eth_timescale.v changed to timescale.v This is done because of the
|
Line 136... |
Line 139... |
reg [15:0] ByteCnt;
|
reg [15:0] ByteCnt;
|
reg [2:0] DlyCrcCnt;
|
reg [2:0] DlyCrcCnt;
|
|
|
|
|
|
|
assign IncrementNibCnt = StateIPG | StatePreamble | (|StateData) & ~|DlyCrcCnt[2:0] | StatePAD
|
assign IncrementNibCnt = StateIPG | StatePreamble | (|StateData) | StatePAD
|
| StateFCS | StateJam | StateBackOff | StateDefer & ~ExcessiveDefer & TxStartFrm;
|
| StateFCS | StateJam | StateBackOff | StateDefer & ~ExcessiveDefer & TxStartFrm;
|
|
|
|
|
assign ResetNibCnt = StateDefer & ExcessiveDefer & ~TxStartFrm | StatePreamble & NibCntEq15
|
assign ResetNibCnt = StateDefer & ExcessiveDefer & ~TxStartFrm | StatePreamble & NibCntEq15
|
| StateJam & NibCntEq7 | StateIdle | StartDefer | StartIPG | StartFCS | StartJam;
|
| StateJam & NibCntEq7 | StateIdle | StartDefer | StartIPG | StartFCS | StartJam;
|
Line 168... |
Line 171... |
|
|
assign ExcessiveDeferCnt = NibCnt[13:0] == 16'h17b7;
|
assign ExcessiveDeferCnt = NibCnt[13:0] == 16'h17b7;
|
|
|
assign ExcessiveDefer = NibCnt[13:0] == 16'h17b7 & ~ExDfrEn; // 6071 nibbles
|
assign ExcessiveDefer = NibCnt[13:0] == 16'h17b7 & ~ExDfrEn; // 6071 nibbles
|
|
|
assign IncrementByteCnt = StateData[1] & ~ByteCntMax & ~|DlyCrcCnt[2:0]
|
assign IncrementByteCnt = StateData[1] & ~ByteCntMax
|
| StateBackOff & (&NibCnt[6:0])
|
| StateBackOff & (&NibCnt[6:0])
|
| (StatePAD | StateFCS) & NibCnt[0] & ~ByteCntMax;
|
| (StatePAD | StateFCS) & NibCnt[0] & ~ByteCntMax;
|
|
|
assign ResetByteCnt = StartBackoff | StateIdle & TxStartFrm | PacketFinished_q;
|
assign ResetByteCnt = StartBackoff | StateIdle & TxStartFrm | PacketFinished_q;
|
|
|