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

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [axi4_stream_lib/] [src/] [axis_downsizer.sv] - Diff between revs 31 and 35

Show entire file | Details | Blame | View Log

Rev 31 Rev 35
Line 163... Line 163...
    tdata_mux_i(.data_in(mux_in_tdata), .data_out(mux_out_tdata), .*);
    tdata_mux_i(.data_in(mux_in_tdata), .data_out(mux_out_tdata), .*);
 
 
 
 
  // --------------------------------------------------------------------
  // --------------------------------------------------------------------
  //
  //
 
  genvar j;
 
 
  generate
  generate
 
    for(j = 0; j < M_D; j++)
    begin: tdata_gen
    begin: tdata_gen
      for(genvar j = 0; j < M_D; j++)
 
        assign mux_in_tdata[j] = tdata_r[j*M_NW +: M_NW];
        assign mux_in_tdata[j] = tdata_r[j*M_NW +: M_NW];
    end
    end
  endgenerate
  endgenerate
 
 
 
 
  // --------------------------------------------------------------------
  // --------------------------------------------------------------------
  //
  //
  generate
  generate
    begin: tuser_gen
    begin: tuser_gen
      if(BYTES_PER_TUSER != 0)
      if(BYTES_PER_TUSER != 0)
      begin
      begin : tuser_tuser_0_gen
        wire [M_UW-1:0] mux_in_tuser [M_D-1:0];
        wire [M_UW-1:0] mux_in_tuser [M_D-1:0];
 
 
        recursive_mux #(.A(M_A), .W(M_UW))
        recursive_mux #(.A(M_A), .W(M_UW))
          tuser_mux_i(.data_in(mux_in_tuser), .data_out(axis_downsizer_bus.tuser), .*);
          tuser_mux_i(.data_in(mux_in_tuser), .data_out(axis_downsizer_bus.tuser), .*);
 
 
        for(genvar j = 0; j < M_D; j++)
        for(j = 0; j < M_D; j++)
 
        begin : tuser_j_gen
          assign mux_in_tuser[j] = tuser_r[j*M_UW +: M_UW] & {M_UW{axis_downsizer_bus.tvalid}};
          assign mux_in_tuser[j] = tuser_r[j*M_UW +: M_UW] & {M_UW{axis_downsizer_bus.tvalid}};
      end
      end
 
      end
      else
      else
 
      begin : tuser_tuser_gen
        assign axis_downsizer_bus.tuser = tuser_r & {U{axis_downsizer_bus.tvalid}};
        assign axis_downsizer_bus.tuser = tuser_r & {U{axis_downsizer_bus.tvalid}};
    end
    end
 
    end
  endgenerate
  endgenerate
 
 
 
 
  // --------------------------------------------------------------------
  // --------------------------------------------------------------------
  //
  //

powered by: WebSVN 2.1.0

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