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

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [axi4_stream_lib/] [sim/] [tests/] [tb_axis_to_axi4_basic_dma/] [the_test.sv] - Rev 31

Compare with Previous | Blame | View Log

// --------------------------------------------------------------------
//
// --------------------------------------------------------------------

`timescale 1ps/1ps


module
  the_test(
            input tb_clk,
            input tb_rst
          );

  // --------------------------------------------------------------------
  //
  import tb_axis_to_axi4_basic_dma_pkg::*;


  // --------------------------------------------------------------------
  //
  task run_the_test;

    // --------------------------------------------------------------------
    // insert test below
    // --------------------------------------------------------------------
    $display("^^^---------------------------------");
    $display("^^^ %16.t | Testbench begun.", $time);
    $display("^^^---------------------------------");

    // --------------------------------------------------------------------
    tb_top.tb.timeout_stop(50us);

    // --------------------------------------------------------------------
    wait(tb_top.aresetn);
    #200ns;

    // --------------------------------------------------------------------
    force tb_top.dma_enable = 1;
    #100ns;

    // --------------------------------------------------------------------
    repeat(8)
    begin
      tb_top.a_h.random_transaction(BASE_ADDRESS, BUFFER_SIZE, N * BURST_LENGTH);
      tb_top.a_h.compare(BASE_ADDRESS);
    end

    // --------------------------------------------------------------------
    #200ns;

    // --------------------------------------------------------------------
    // insert test above
    // --------------------------------------------------------------------

  endtask

// --------------------------------------------------------------------
//
endmodule

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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