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

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [axi4_stream_lib/] [src/] [axis_alias.sv] - Diff between revs 31 and 36

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 31 Rev 36
Line 25... Line 25...
////                                                              ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
 
 
module
module
  axis_alias
  axis_alias
 
  #(
 
    CONNECT_TREADY = 1,
 
    CONNECT_TVALID = 1
 
  )
  (
  (
    axis_if axis_in,
    axis_if axis_in,
    axis_if axis_out
    axis_if axis_out
  );
  );
 
 
  // --------------------------------------------------------------------
  // --------------------------------------------------------------------
  //
  //
 
  generate
 
    if(CONNECT_TREADY == 1)
 
    begin: tready_gen
  assign axis_in.tready = axis_out.tready;
  assign axis_in.tready = axis_out.tready;
 
    end
 
  endgenerate
 
 
 
 
 
  // --------------------------------------------------------------------
 
  //
 
  generate
 
    if(CONNECT_TVALID == 1)
 
    begin: tvalid_gen
  assign axis_out.tvalid = axis_in.tvalid;
  assign axis_out.tvalid = axis_in.tvalid;
 
    end
 
  endgenerate
 
 
 
 
 
  // --------------------------------------------------------------------
 
  //
  assign axis_out.tdata  = axis_in.tdata;
  assign axis_out.tdata  = axis_in.tdata;
  assign axis_out.tstrb  = axis_in.tstrb;
  assign axis_out.tstrb  = axis_in.tstrb;
  assign axis_out.tkeep  = axis_in.tkeep;
  assign axis_out.tkeep  = axis_in.tkeep;
  assign axis_out.tlast  = axis_in.tlast;
  assign axis_out.tlast  = axis_in.tlast;
  assign axis_out.tid    = axis_in.tid;
  assign axis_out.tid    = axis_in.tid;
Line 46... Line 67...
  assign axis_out.tuser  = axis_in.tuser;
  assign axis_out.tuser  = axis_in.tuser;
 
 
 
 
// --------------------------------------------------------------------
// --------------------------------------------------------------------
//
//
 
 
endmodule
endmodule
 
 
 
 

powered by: WebSVN 2.1.0

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