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

Subversion Repositories ethmac

[/] [ethmac/] [trunk/] [bench/] [verilog/] [tb_ethernet.v] - Diff between revs 179 and 180

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

Rev 179 Rev 180
Line 40... Line 40...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.10  2002/09/13 18:44:29  mohor
 
// Beautiful tests merget together
 
//
// Revision 1.9  2002/09/13 18:41:45  mohor
// Revision 1.9  2002/09/13 18:41:45  mohor
// Rearanged testcases
// Rearanged testcases
//
//
// Revision 1.8  2002/09/13 14:50:15  mohor
// Revision 1.8  2002/09/13 14:50:15  mohor
// Bug in MIIM fixed.
// Bug in MIIM fixed.
Line 390... Line 393...
  wb_slave.cycle_response(`ACK_RESPONSE, wbs_waits, wbs_retries);
  wb_slave.cycle_response(`ACK_RESPONSE, wbs_waits, wbs_retries);
 
 
 
 
  //  Call tests
  //  Call tests
  //  ----------
  //  ----------
    test_access_to_mac_reg(0, 3);          // 0 - 3
//    test_access_to_mac_reg(0, 3);          // 0 - 3
//    test_mii(0, 17);                        // 0 - 17
//    test_mii(0, 17);                        // 0 - 17
    test_mii(0, 1);                        // 0 - 17
 
  test_note("PHY generates ideal Carrier sense and Collision signals for following tests");
  test_note("PHY generates ideal Carrier sense and Collision signals for following tests");
  eth_phy.carrier_sense_real_delay(0);
  eth_phy.carrier_sense_real_delay(0);
    test_mac_full_duplex_transmit(0, 3);   // 0 - (3)
    test_mac_full_duplex_transmit(0, 3);   // 0 - (3)
 
 
  test_note("PHY generates 'real' Carrier sense and Collision signals for following tests");
  test_note("PHY generates 'real' Carrier sense and Collision signals for following tests");
Line 4260... Line 4262...
    // INTERMEDIATE DISPLAYS
    // INTERMEDIATE DISPLAYS
    if (i_length == min_tmp - 4)
    if (i_length == min_tmp - 4)
      tmp_data = min_tmp;
      tmp_data = min_tmp;
    if (i_length == (max_tmp - 4))
    if (i_length == (max_tmp - 4))
    begin
    begin
      $display("    packets with lengths (including FCS) from %d to %d are checked",
      $display("    packets with lengths (including FCS) from %0d to %0d are checked",
               tmp_data, (i_length + 4));
               tmp_data, (i_length + 4));
    end
    end
    else if (i_length[7:0] == 8'h7C) // 8'h7C + 8'h04 = 8'h80 (128), because i_length has length - 4 value
    else if (!((i_length + 4) % 128)) // 8'h7C + 8'h04 = 8'h80 (128), because i_length has length - 4 value
    begin
    begin
      $display("    packets with lengths (including FCS) from %d to %d are checked",
      $display("    packets with lengths (including FCS) from %0d to %0d are checked",
               tmp_data, (i_length + 4));
               tmp_data, (i_length + 4));
      tmp_data = i_length + 4 + 1; // next starting length is for +1 longer
      tmp_data = i_length + 4 + 1; // next starting length is for +1 longer
    end
    end
  end
  end
  // disable TX
  // disable TX

powered by: WebSVN 2.1.0

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