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

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [axi4_lib/] [sim/] [tests/] [tb_axi4_to_axis_basic_dma/] [tb_axi4_to_axis_basic_dma_pkg.sv] - Blame information for rev 31

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 31 qaztronic
// --------------------------------------------------------------------
2
//
3
// --------------------------------------------------------------------
4
 
5
 
6
package tb_axi4_to_axis_basic_dma_pkg;
7
 
8
  // --------------------------------------------------------------------
9
  //
10
  import tb_axi4_to_axis_agent_class_pkg::*;
11
 
12
 
13
  // --------------------------------------------------------------------
14
  //
15
  localparam BASE_ADDRESS = 32'h0000_0000;  // must be on 4K boundry
16
  localparam BUFFER_SIZE = 'h800;
17
  localparam BURST_LENGTH = 8'h08;
18
  localparam MAX_BURSTS = 4;
19
  localparam BYTES_PER_TUSER = 2;           // bytes per tuser bit. Set to 0 for transfer based.
20
 
21
  localparam N = 8;                         // data bus width in bytes
22
  localparam A = 32;                        // address bus width
23
  localparam I = 1;                         // ID width
24
  localparam D = 1;                         // TDEST width
25
  localparam U = N / BYTES_PER_TUSER;       // TUSER width
26
 
27
 
28
  // --------------------------------------------------------------------
29
  //
30
  class tb_axi4_to_axis_basic_dma_class
31
    extends tb_axi4_to_axis_agent_class #(N, A, I, D, U);
32
 
33
 
34
    //--------------------------------------------------------------------
35
    //
36
    function new
37
      (
38
        virtual axi4_if #(.A(A), .N(N), .I(I)) axi4_m,
39
        virtual axis_if #(.N(N), .I(I), .D(D), .U(U)) axis_out
40
      );
41
 
42
      super.new(.axi4_m(axi4_m), .axis_out(axis_out));
43
 
44
    endfunction: new
45
 
46
 
47
  // --------------------------------------------------------------------
48
  //
49
  endclass: tb_axi4_to_axis_basic_dma_class
50
 
51
// --------------------------------------------------------------------
52
//
53
endpackage: tb_axi4_to_axis_basic_dma_pkg
54
 
55
 
56
 
57
 
58
 

powered by: WebSVN 2.1.0

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