module p_unpack_command #( parameter PipeSpec = `PS_def ) (
        inout [`P_m(PipeSpec):0]       pipe,
        output [`P_Command_w(PipeSpec)-1:0] command
    );

    generate
        if ( `P_Command_w( PipeSpec ) )
            assign command  = pipe[ `P_Command_m(PipeSpec):`P_Command_l(PipeSpec) ];
    endgenerate

endmodule