module p_monitor_result #( parameter PipeSpec = `PS_def ) (
        inout [`P_m(PipeSpec):0]      pipe,
        output [`P_Result_w(PipeSpec)-1:0] result
    );

    generate
        if ( `P_Result_w( PipeSpec ) )
            assign result  = pipe[ `P_Result_m(PipeSpec):`P_Result_l(PipeSpec) ];
    endgenerate

endmodule