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] - Rev 45
Go to most recent revision | Compare with Previous | Blame | View Log
// --------------------------------------------------------------------
//
// --------------------------------------------------------------------
package tb_axi4_to_axis_basic_dma_pkg;
// --------------------------------------------------------------------
//
import tb_axi4_to_axis_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_axi4_to_axis_basic_dma_class
extends tb_axi4_to_axis_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_out
);
super.new(.axi4_m(axi4_m), .axis_out(axis_out));
endfunction: new
// --------------------------------------------------------------------
//
endclass: tb_axi4_to_axis_basic_dma_class
// --------------------------------------------------------------------
//
endpackage: tb_axi4_to_axis_basic_dma_pkg
Go to most recent revision | Compare with Previous | Blame | View Log