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

Subversion Repositories srdydrdy_lib

[/] [srdydrdy_lib/] [trunk/] [examples/] [bridge/] [env/] [test_tasks.v] - Rev 29

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

 
task get_packet_count;
  output [31:0] pcount;
  integer       p;
  begin
    p = 0;
    p = p + env_top.mon0.rxpkt_num;
    p = p + env_top.mon1.rxpkt_num;
    p = p + env_top.mon2.rxpkt_num;
    p = p + env_top.mon3.rxpkt_num;
    pcount = p;
  end
endtask // get_packet_count
 
task check_expected;
  input [31:0] exp_val, act_val;
  begin
    if (exp_val !== act_val)
      $display ("%t: ERROR:  Expected %x, Actual value %x", $time, exp_val, act_val);
  end
endtask // check_expected
 

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

powered by: WebSVN 2.1.0

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