module priority_encoder(x, z, active);
    input [7:0] x;
    output [2:0] z;
    output active;
