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

Subversion Repositories turbo8051

[/] [turbo8051/] [trunk/] [verif/] [testcase/] [gmac_test2.v] - Diff between revs 53 and 56

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

Rev 53 Rev 56
Line 47... Line 47...
   tb_top.u_tb_eth.set_L3_protocol(4); // IPV4
   tb_top.u_tb_eth.set_L3_protocol(4); // IPV4
   tb_top.u_tb_eth.set_crc_option(0,0);
   tb_top.u_tb_eth.set_crc_option(0,0);
 
 
   fork
   fork
     tb_top.u_tb_eth.transmit_packet_sequence(10, 96, 1, 500000);
     tb_top.u_tb_eth.transmit_packet_sequence(10, 96, 1, 500000);
 
     $display("Status: End of Transmission Loop");
     begin
     begin
         tb_top.u_tb_eth.wait_for_event(3, 0);
         tb_top.u_tb_eth.wait_for_event(3, 0);
         tb_top.u_tb_eth.wait_for_event(3, 0);
         tb_top.u_tb_eth.wait_for_event(3, 0);
 
         $display("Status: End of Waiting Event Loop");
     end
     end
     //begin
 
     //   while(iFrmCnt != 10) begin
 
     //     tb_top.cpu_read('h1,8'h30,read_data); // Tx/Rx Counter
 
     //     if(read_data[3:0] != 0) begin // Check the Rx Q Counter
 
     //         // Read the Receive Descriptor
 
     //         tb_top.cpu_read('h4,{desc_rx_qbase,desc_ptr},read_data); 
 
     //         // Write the Tx Descriptor
 
     //         tb_top.cpu_write('h4,{desc_tx_qbase,desc_ptr},read_data); 
 
     //         desc_ptr = desc_ptr+1;
 
     //         iFrmCnt  = iFrmCnt+1;
 
     //     end
 
     //     #1000;
 
     //  end
 
     //end
 
   join
   join
 
 
  #100000;
  #100000;
 
  $display("Status: End of Waiting Delay Loop");
 
 
  `TB_AGENTS_GMAC.full_mii.status; // test status
  `TB_AGENTS_GMAC.full_mii.status; // test status
 
 
  // Check the Transmitted & Received Frame cnt
  // Check the Transmitted & Received Frame cnt
  if(`TB_AGENTS_GMAC.full_mii.transmitted_packet_count != `TB_AGENTS_GMAC.full_mii.receive_packet_count)
  if(`TB_AGENTS_GMAC.full_mii.transmitted_packet_count != `TB_AGENTS_GMAC.full_mii.receive_packet_count)

powered by: WebSVN 2.1.0

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