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

Subversion Repositories ethmac

[/] [ethmac/] [tags/] [rel_17/] [rtl/] [verilog/] [eth_top.v] - Diff between revs 253 and 255

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

Rev 253 Rev 255
Line 39... Line 39...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.41  2002/11/19 18:13:49  mohor
 
// r_MiiMRst is not used for resetting the MIIM module. wb_rst used instead.
 
//
// Revision 1.40  2002/11/19 17:34:25  mohor
// Revision 1.40  2002/11/19 17:34:25  mohor
// AddressMiss status is connecting to the Rx BD. AddressMiss is identifying
// AddressMiss status is connecting to the Rx BD. AddressMiss is identifying
// that a frame was received because of the promiscous mode.
// that a frame was received because of the promiscous mode.
//
//
// Revision 1.39  2002/11/18 17:31:55  mohor
// Revision 1.39  2002/11/18 17:31:55  mohor
Line 337... Line 340...
reg             WillSendControlFrame_sync1;
reg             WillSendControlFrame_sync1;
reg             WillSendControlFrame_sync2;
reg             WillSendControlFrame_sync2;
reg             WillSendControlFrame_sync3;
reg             WillSendControlFrame_sync3;
reg             RstTxPauseRq;
reg             RstTxPauseRq;
 
 
 
reg             TxPauseRq_sync1;
 
reg             TxPauseRq_sync2;
 
reg             TxPauseRq_sync3;
 
reg             TPauseRq;
 
 
 
 
// Connecting Miim module
// Connecting Miim module
eth_miim miim1
eth_miim miim1
(
(
  .Clk(wb_clk_i),                         .Reset(wb_rst_i),                   .Divider(r_ClkDiv),
  .Clk(wb_clk_i),                         .Reset(wb_rst_i),                   .Divider(r_ClkDiv),
Line 513... Line 521...
wire  [1:0] StateData;
wire  [1:0] StateData;
 
 
// Connecting MACControl
// Connecting MACControl
eth_maccontrol maccontrol1
eth_maccontrol maccontrol1
(
(
  .MTxClk(mtx_clk_pad_i),                       .TPauseRq(r_TxPauseRq),
  .MTxClk(mtx_clk_pad_i),                       .TPauseRq(TPauseRq),
  .TxPauseTV(r_TxPauseTV),                      .TxDataIn(TxData),
  .TxPauseTV(r_TxPauseTV),                      .TxDataIn(TxData),
  .TxStartFrmIn(TxStartFrm),                    .TxEndFrmIn(TxEndFrm),
  .TxStartFrmIn(TxStartFrm),                    .TxEndFrmIn(TxEndFrm),
  .TxUsedDataIn(TxUsedDataIn),                  .TxDoneIn(TxDoneIn),
  .TxUsedDataIn(TxUsedDataIn),                  .TxDoneIn(TxDoneIn),
  .TxAbortIn(TxAbortIn),                        .MRxClk(mrx_clk_pad_i),
  .TxAbortIn(TxAbortIn),                        .MRxClk(mrx_clk_pad_i),
  .RxData(RxData),                              .RxValid(RxValid),
  .RxData(RxData),                              .RxValid(RxValid),
Line 731... Line 739...
  else
  else
    RstTxPauseRq <=#Tp WillSendControlFrame_sync2 & ~WillSendControlFrame_sync3;
    RstTxPauseRq <=#Tp WillSendControlFrame_sync2 & ~WillSendControlFrame_sync3;
end
end
 
 
 
 
 
 
 
 
 
// TX Pause request Synchronization
 
always @ (posedge mtx_clk_pad_i or posedge wb_rst_i)
 
begin
 
  if(wb_rst_i)
 
    begin
 
      TxPauseRq_sync1 <= #Tp 1'b0;
 
      TxPauseRq_sync2 <= #Tp 1'b0;
 
      TxPauseRq_sync3 <= #Tp 1'b0;
 
    end
 
  else
 
    begin
 
      TxPauseRq_sync1 <= #Tp (r_TxPauseRq & r_TxFlow);
 
      TxPauseRq_sync2 <= #Tp TxPauseRq_sync1;
 
      TxPauseRq_sync3 <= #Tp TxPauseRq_sync2;
 
    end
 
end
 
 
 
 
 
always @ (posedge mtx_clk_pad_i or posedge wb_rst_i)
 
begin
 
  if(wb_rst_i)
 
    TPauseRq <= #Tp 1'b0;
 
  else
 
    TPauseRq <= #Tp TxPauseRq_sync2 & (~TxPauseRq_sync3);
 
end
 
 
 
 
 
 
 
 
// Connecting Wishbone module
// Connecting Wishbone module
eth_wishbone wishbone
eth_wishbone wishbone
(
(
  .WB_CLK_I(wb_clk_i),                .WB_DAT_I(wb_dat_i),
  .WB_CLK_I(wb_clk_i),                .WB_DAT_I(wb_dat_i),
  .WB_DAT_O(BD_WB_DAT_O),
  .WB_DAT_O(BD_WB_DAT_O),

powered by: WebSVN 2.1.0

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