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

Subversion Repositories tv80

[/] [tv80/] [branches/] [restruc1/] [env/] [env_tasks.v] - Blame information for rev 110

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

Line No. Rev Author Line
1 42 ghutchis
reg  dumping;
2
 
3
initial
4
  dumping = 0;
5
 
6 2 ghutchis
task test_pass;
7
    begin
8
      $display ("%t: --- TEST PASSED ---", $time);
9
      #100;
10
      $finish;
11
    end
12
endtask // test_pass
13
 
14
task test_fail;
15
    begin
16
      $display ("%t: !!! TEST FAILED !!!", $time);
17
      #100;
18
      $finish;
19
    end
20
endtask // test_fail
21
 
22
task dumpon;
23
    begin
24 42 ghutchis
      if (!dumping)
25
        begin
26
          $dumpfile (`DUMPFILE_NAME);
27
          $dumpvars;
28
          dumping = 1;
29
        end
30 2 ghutchis
    end
31
endtask // dumpon
32
 
33
task dumpoff;
34
    begin
35
      // ???
36
    end
37
endtask // dumpoff
38
 
39 28 ghutchis
task clear_ram;
40
    integer i;
41
    begin
42
      for (i=0; i<32768; i=i+1)
43
        tb_top.ram.mem[i] = 0;
44
    end
45
endtask
46
 

powered by: WebSVN 2.1.0

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