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

Subversion Repositories ethmac

[/] [ethmac/] [trunk/] [bench/] [verilog/] [tb_ethernet.v] - Diff between revs 338 and 342

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

Rev 338 Rev 342
Line 14689... Line 14689...
          repeat(15) @(posedge wb_clk);
          repeat(15) @(posedge wb_clk);
          check_frame = 1;
          check_frame = 1;
        end
        end
      join
      join
      // check length of a PACKET
      // check length of a PACKET
      if ( ((data[31:16] != (i_length + 4)) && (num_of_frames >= 3)) ||
       tmp_data = data[31:16];
 
      if ( ((tmp_data != (i_length + 4)) && (num_of_frames >= 3)) ||
           ((data[31:16] != 0) && (num_of_frames < 3)) )
           ((data[31:16] != 0) && (num_of_frames < 3)) )
      begin
      begin
        `TIME; $display("*E Wrong length of the packet out from PHY (%0d instead of %0d)",
        `TIME; $display("*E Wrong length of the packet out from PHY (%0d instead of %0d)",
                        data[31:16], (i_length + 4));
                        data[31:16], (i_length + 4));
        test_fail("Wrong length of the packet out from PHY");
        test_fail("Wrong length of the packet out from PHY");
Line 15221... Line 15222...
          repeat(15) @(posedge wb_clk);
          repeat(15) @(posedge wb_clk);
          check_frame = 1;
          check_frame = 1;
        end
        end
      join
      join
      // check length of a PACKET
      // check length of a PACKET
      if ( ((data[31:16] != (i_length + 4)) && (num_of_frames >= 3)) ||
       tmp_data = data[31:16];
 
      if ( ((tmp_data != (i_length + 4)) && (num_of_frames >= 3)) ||
           ((data[31:16] != 0) && (num_of_frames < 3)) )
           ((data[31:16] != 0) && (num_of_frames < 3)) )
      begin
      begin
        `TIME; $display("*E Wrong length of the packet out from PHY (%0d instead of %0d)",
        `TIME; $display("*E Wrong length of the packet out from PHY (%0d instead of %0d)",
                        data[31:16], (i_length + 4));
                        data[31:16], (i_length + 4));
        test_fail("Wrong length of the packet out from PHY");
        test_fail("Wrong length of the packet out from PHY");

powered by: WebSVN 2.1.0

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