module p_pack_rev_data_size #( parameter PipeSpec = `PS_def ) (
        output [`P_RevDataSize_w(PipeSpec)-1:0] rev_data_size,
        inout [`P_m(PipeSpec):0]          pipe
    );

    if ( `PS_Reverse_v( PipeSpec ) ) begin
        if ( `P_RevDataSize_w( PipeSpec ) )
            assign rev_data_size = pipe[`P_RevDataSize_m(PipeSpec):`P_RevDataSize_l(PipeSpec)];
        else
            assign rev_data_size = 0;
    end

endmodule