module p_unpack_rev_valid_ready #( parameter PipeSpec = `PS_def ) (
        inout [`P_m(PipeSpec):0] pipe,
        input                    rev_valid,
        output                   rev_ready
    );

    if ( `PS_Reverse_v( PipeSpec ) ) begin
        assign pipe[ `P_RevValid_l(PipeSpec) ] = rev_valid;
        assign rev_ready = pipe[ `P_RevReady_l(PipeSpec) ];
    end

endmodule