verilog code for encoder
e the 3-bit binary code `out[2:0]` and a `valid` signal. Priority Logic: The `case` statement uses the `1'b1` pattern, which tests each input line in order of priority. The highest priority input (`in[7]`) is checked first. Default Case: When no inputs ar