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

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [axi4_stream_lib/] [sim/] [tests/] [legacy/] [tb_axis_to_axi4_basic_dma/] [the_test.sv] - Blame information for rev 50

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 50 qaztronic
// --------------------------------------------------------------------
2
//
3
// --------------------------------------------------------------------
4
 
5
`timescale 1ps/1ps
6
 
7
 
8
module
9
  the_test(
10
            input tb_clk,
11
            input tb_rst
12
          );
13
 
14
  // --------------------------------------------------------------------
15
  //
16
  import tb_axis_to_axi4_basic_dma_pkg::*;
17
 
18
 
19
  // --------------------------------------------------------------------
20
  //
21
  task run_the_test;
22
 
23
    // --------------------------------------------------------------------
24
    // insert test below
25
    // --------------------------------------------------------------------
26
    $display("^^^---------------------------------");
27
    $display("^^^ %16.t | Testbench begun.", $time);
28
    $display("^^^---------------------------------");
29
 
30
    // --------------------------------------------------------------------
31
    tb_top.tb.timeout_stop(50us);
32
 
33
    // --------------------------------------------------------------------
34
    wait(tb_top.aresetn);
35
    #200ns;
36
 
37
    // --------------------------------------------------------------------
38
    force tb_top.dma_enable = 1;
39
    #100ns;
40
 
41
    // --------------------------------------------------------------------
42
    repeat(8)
43
    begin
44
      tb_top.a_h.random_transaction(BASE_ADDRESS, BUFFER_SIZE, N * BURST_LENGTH);
45
      tb_top.a_h.compare(BASE_ADDRESS);
46
    end
47
 
48
    // --------------------------------------------------------------------
49
    #200ns;
50
 
51
    // --------------------------------------------------------------------
52
    // insert test above
53
    // --------------------------------------------------------------------
54
 
55
  endtask
56
 
57
// --------------------------------------------------------------------
58
//
59
endmodule
60
 

powered by: WebSVN 2.1.0

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