Generic Priority Encoder written in VHDL(RTL) for FPGA.