Line 39... |
Line 39... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.6 2002/11/22 01:57:06 mohor
|
|
// Rx Flow control fixed. CF flag added to the RX buffer descriptor. RxAbort
|
|
// synchronized.
|
|
//
|
// Revision 1.5 2002/11/21 00:14:39 mohor
|
// Revision 1.5 2002/11/21 00:14:39 mohor
|
// TxDone and TxAbort changed so they're not propagated to the wishbone
|
// TxDone and TxAbort changed so they're not propagated to the wishbone
|
// module when control frame is transmitted.
|
// module when control frame is transmitted.
|
//
|
//
|
// Revision 1.4 2002/11/19 17:37:32 mohor
|
// Revision 1.4 2002/11/19 17:37:32 mohor
|
Line 84... |
Line 88... |
module eth_maccontrol (MTxClk, MRxClk, TxReset, RxReset, TPauseRq, TxDataIn, TxStartFrmIn, TxUsedDataIn,
|
module eth_maccontrol (MTxClk, MRxClk, TxReset, RxReset, TPauseRq, TxDataIn, TxStartFrmIn, TxUsedDataIn,
|
TxEndFrmIn, TxDoneIn, TxAbortIn, RxData, RxValid, RxStartFrm, RxEndFrm, ReceiveEnd,
|
TxEndFrmIn, TxDoneIn, TxAbortIn, RxData, RxValid, RxStartFrm, RxEndFrm, ReceiveEnd,
|
ReceivedPacketGood, ReceivedLengthOK, TxFlow, RxFlow, DlyCrcEn, TxPauseTV,
|
ReceivedPacketGood, ReceivedLengthOK, TxFlow, RxFlow, DlyCrcEn, TxPauseTV,
|
MAC, PadIn, PadOut, CrcEnIn, CrcEnOut, TxDataOut, TxStartFrmOut, TxEndFrmOut,
|
MAC, PadIn, PadOut, CrcEnIn, CrcEnOut, TxDataOut, TxStartFrmOut, TxEndFrmOut,
|
TxDoneOut, TxAbortOut, TxUsedDataOut, WillSendControlFrame, TxCtrlEndFrm,
|
TxDoneOut, TxAbortOut, TxUsedDataOut, WillSendControlFrame, TxCtrlEndFrm,
|
ReceivedPauseFrm, ControlFrmAddressOK, LoadRxStatus, SetPauseTimer
|
ReceivedPauseFrm, ControlFrmAddressOK, SetPauseTimer, r_PassAll, RxStatusWriteLatched_sync2
|
);
|
);
|
|
|
|
|
parameter Tp = 1;
|
parameter Tp = 1;
|
|
|
Line 116... |
Line 120... |
input TxFlow; // Tx flow control (from registers)
|
input TxFlow; // Tx flow control (from registers)
|
input RxFlow; // Rx flow control (from registers)
|
input RxFlow; // Rx flow control (from registers)
|
input DlyCrcEn; // Delayed CRC enabled (from registers)
|
input DlyCrcEn; // Delayed CRC enabled (from registers)
|
input [15:0] TxPauseTV; // Transmit Pause Timer Value (from registers)
|
input [15:0] TxPauseTV; // Transmit Pause Timer Value (from registers)
|
input [47:0] MAC; // MAC address (from registers)
|
input [47:0] MAC; // MAC address (from registers)
|
input LoadRxStatus;
|
input RxStatusWriteLatched_sync2;
|
|
input r_PassAll;
|
|
|
output [7:0] TxDataOut; // Transmit Packet Data (to TxEthMAC)
|
output [7:0] TxDataOut; // Transmit Packet Data (to TxEthMAC)
|
output TxStartFrmOut; // Transmit packet start frame (output to TxEthMAC)
|
output TxStartFrmOut; // Transmit packet start frame (output to TxEthMAC)
|
output TxEndFrmOut; // Transmit packet end frame (output to TxEthMAC)
|
output TxEndFrmOut; // Transmit packet end frame (output to TxEthMAC)
|
output TxDoneOut; // Transmit packet done (to host)
|
output TxDoneOut; // Transmit packet done (to host)
|
Line 246... |
Line 251... |
.RxValid(RxValid), .RxStartFrm(RxStartFrm), .RxEndFrm(RxEndFrm), .RxFlow(RxFlow),
|
.RxValid(RxValid), .RxStartFrm(RxStartFrm), .RxEndFrm(RxEndFrm), .RxFlow(RxFlow),
|
.ReceiveEnd(ReceiveEnd), .MAC(MAC), .DlyCrcEn(DlyCrcEn), .TxDoneIn(TxDoneIn),
|
.ReceiveEnd(ReceiveEnd), .MAC(MAC), .DlyCrcEn(DlyCrcEn), .TxDoneIn(TxDoneIn),
|
.TxAbortIn(TxAbortIn), .TxStartFrmOut(TxStartFrmOut), .ReceivedLengthOK(ReceivedLengthOK),
|
.TxAbortIn(TxAbortIn), .TxStartFrmOut(TxStartFrmOut), .ReceivedLengthOK(ReceivedLengthOK),
|
.ReceivedPacketGood(ReceivedPacketGood), .TxUsedDataOutDetected(TxUsedDataOutDetected),
|
.ReceivedPacketGood(ReceivedPacketGood), .TxUsedDataOutDetected(TxUsedDataOutDetected),
|
.Pause(Pause), .ReceivedPauseFrm(ReceivedPauseFrm), .AddressOK(ControlFrmAddressOK),
|
.Pause(Pause), .ReceivedPauseFrm(ReceivedPauseFrm), .AddressOK(ControlFrmAddressOK),
|
.LoadRxStatus(LoadRxStatus), .SetPauseTimer(SetPauseTimer)
|
.r_PassAll(r_PassAll), .RxStatusWriteLatched_sync2(RxStatusWriteLatched_sync2), .SetPauseTimer(SetPauseTimer)
|
);
|
);
|
|
|
|
|
eth_transmitcontrol transmitcontrol1
|
eth_transmitcontrol transmitcontrol1
|
(
|
(
|