Question d’entretien chez Apple

How to implement a priority encoder in Verilog?