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/] [tb_axis_to_axi4_basic_dma_pkg.sv] - Rev 31

Compare with Previous | Blame | View Log

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


package tb_axis_to_axi4_basic_dma_pkg;

  // --------------------------------------------------------------------
  //
  import tb_axis_to_axi4_agent_class_pkg::*;


  // --------------------------------------------------------------------
  //
  localparam BASE_ADDRESS = 32'h0000_0000;  // must be on 4K boundry
  localparam BUFFER_SIZE = 'h800;
  localparam BURST_LENGTH = 8'h08;
  localparam MAX_BURSTS = 4;
  localparam BYTES_PER_TUSER = 2;           // bytes per tuser bit. Set to 0 for transfer based.

  localparam N = 8;                         // data bus width in bytes
  localparam A = 32;                        // address bus width
  localparam I = 1;                         // ID width
  localparam D = 1;                         // TDEST width
  localparam U = N / BYTES_PER_TUSER;       // TUSER width


  // --------------------------------------------------------------------
  //
  class tb_axis_to_axi4_basic_dma_class
    extends tb_axis_to_axi4_agent_class #(N, A, I, D, U);


    //--------------------------------------------------------------------
    //
    function new
      (
        virtual axi4_if #(.A(A), .N(N), .I(I)) axi4_m,
        virtual axis_if #(.N(N), .I(I), .D(D), .U(U)) axis_in
      );

      super.new(.axi4_m(axi4_m), .axis_in(axis_in));

    endfunction: new


  // --------------------------------------------------------------------
  //
  endclass: tb_axis_to_axi4_basic_dma_class

// --------------------------------------------------------------------
//
endpackage: tb_axis_to_axi4_basic_dma_pkg





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.