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

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [axi4_stream_lib/] [src/] [axis_catenate.sv] - Diff between revs 36 and 37

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

Rev 36 Rev 37
Line 90... Line 90...
    endcase
    endcase
 
 
 
 
  // --------------------------------------------------------------------
  // --------------------------------------------------------------------
  //
  //
 
  axis_if #(.N(N), .I(I), .D(D), .U(U)) axis_bus[1:0](.*);
 
  genvar j;
 
 
 
  generate
 
    if(U_IS_EOP > -1)
 
    begin: u_is_eop_gen
 
      for(j = 0; j < U; j++)
 
      begin: for_tuser_gen
 
        if(j == U_IS_EOP)
 
        begin: choped_tuser_gen
 
          assign axis_bus[0].tuser[j] = 0;
 
        end
 
        else
 
        begin: tuser_gen
 
          assign axis_bus[0].tuser[j] = axis_in[0].tuser[j];
 
        end
 
      end
 
    end
 
    else
 
    if(U_IS_EOP > -1)
 
    begin: tlast_gen
 
      assign axis_bus[0].tlast = axis_in[0].tlast;
 
    end
 
    else
 
    begin: choped_tlast_gen
 
      assign axis_bus[0].tlast = 0;
 
    end
 
  endgenerate
 
 
 
 
 
  // --------------------------------------------------------------------
 
  //
 
  assign axis_in[0].tready  = axis_bus[0].tready;
 
  assign axis_bus[0].tvalid = axis_in[0].tvalid;
 
  assign axis_bus[0].tdata  = axis_in[0].tdata;
 
  assign axis_bus[0].tstrb  = axis_in[0].tstrb;
 
  assign axis_bus[0].tkeep  = axis_in[0].tkeep;
 
  assign axis_bus[0].tid    = axis_in[0].tid;
 
  assign axis_bus[0].tdest  = axis_in[0].tdest;
 
 
 
 
 
  // --------------------------------------------------------------------
 
  //
 
  axis_alias
 
    axis_alias_i(axis_in[1], axis_bus[1]);
 
 
 
 
 
  // --------------------------------------------------------------------
 
  //
  defparam axis_mux_i.N = N; // why are needed these for recursive modules?
  defparam axis_mux_i.N = N; // why are needed these for recursive modules?
  defparam axis_mux_i.I = I;
  defparam axis_mux_i.I = I;
  defparam axis_mux_i.D = D;
  defparam axis_mux_i.D = D;
  defparam axis_mux_i.U = U;
  defparam axis_mux_i.U = U;
  axis_mux
  axis_mux
  // axis_mux #(.N(N), .I(I), .D(D), .U(U))
  // axis_mux #(.N(N), .I(I), .D(D), .U(U))
    axis_mux_i(.axis_in(axis_in), .*);
    axis_mux_i(.axis_in(axis_bus), .*);
 
 
 
 
  // --------------------------------------------------------------------
  // --------------------------------------------------------------------
  //
  //
  assign select = (state == HEAD) ? 0 : 1;
  assign select = (state == HEAD) ? 0 : 1;

powered by: WebSVN 2.1.0

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