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 36 and 38

Show entire file | Details | Blame | View Log

Rev 36 Rev 38
Line 27... Line 27...
 
 
module
module
  axis_alias
  axis_alias
  #(
  #(
    CONNECT_TREADY = 1,
    CONNECT_TREADY = 1,
    CONNECT_TVALID = 1
    CONNECT_TVALID  = 1,
 
    CONNECT_TLAST   = 1,
 
    CONNECT_TUSER   = 1
  )
  )
  (
  (
    axis_if axis_in,
    axis_if axis_in,
    axis_if axis_out
    axis_if axis_out
  );
  );
Line 56... Line 58...
  endgenerate
  endgenerate
 
 
 
 
  // --------------------------------------------------------------------
  // --------------------------------------------------------------------
  //
  //
 
  generate
 
    if(CONNECT_TLAST == 1)
 
    begin: tlast_gen
 
      assign axis_out.tlast = axis_in.tlast;
 
    end
 
  endgenerate
 
 
 
 
 
  // --------------------------------------------------------------------
 
  //
 
  generate
 
    if(CONNECT_TUSER == 1)
 
    begin: tuser_gen
 
      assign axis_out.tuser = axis_in.tuser;
 
    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.tid    = axis_in.tid;
  assign axis_out.tid    = axis_in.tid;
  assign axis_out.tdest  = axis_in.tdest;
  assign axis_out.tdest  = axis_in.tdest;
  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.