module p_pack_data_size #( parameter PipeSpec = `PS_def ) (
        input [`P_DataSize_w(PipeSpec)-1:0] data_size,
        inout [`P_m(PipeSpec):0]          pipe
    );

    generate
        if ( `P_DataSize_w( PipeSpec ) )
            assign pipe[`P_DataSize_m(PipeSpec):`P_DataSize_l(PipeSpec)] = data_size;
    endgenerate

endmodule