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

Subversion Repositories srdydrdy_lib

[/] [srdydrdy_lib/] [trunk/] [examples/] [bridge/] [env/] [tests/] [overflow1.v] - Blame information for rev 24

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 ghutchis
module sample_test;
2
 
3
  integer pcount;
4
`include "test_tasks.v"
5
 
6
  initial
7
    begin
8
      wait (env_top.reset === 1'b0);
9
      #200;
10
 
11
      repeat (`FIB_ENTRIES)
12
        @(posedge env_top.clk);
13
 
14
      fork
15
        begin : drv0
16
          repeat (600)
17
            env_top.driver0.send_packet ($random, $random, 64);
18
        end
19
 
20
        begin : drv1
21
          repeat (300)
22
            env_top.driver1.send_packet ($random, $random, 128);
23
        end
24
 
25
        begin : drv2
26
          repeat (450)
27
            env_top.driver2.send_packet ($random, $random, 96);
28
        end
29
        begin : drv3
30
          repeat (150)
31
            env_top.driver3.send_packet ($random, $random, 256);
32
        end
33
      join
34
 
35
      #10000;
36
 
37
      get_packet_count (pcount);
38 21 ghutchis
      //check_expected (9, pcount);
39
      if (pcount <= 1900)
40
        $display ("ERROR -- Should receive at least 1900 packets");
41 13 ghutchis
      $display ("TEST: Received %d packets", pcount);
42
      $finish;
43
    end
44
 
45
endmodule // sample_test

powered by: WebSVN 2.1.0

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