module priority_arbiter #(
    parameter WIDTH = -1
) (
    input  wire [WIDTH-1:0] request,
    output wire [WIDTH-1:0] grant
);

    // Bit hack to get the lowest bit set
    assign grant = request & -request;

endmodule