M
Michael
Guest
Hello,
Does anyone know some optimal Verilog generic function for
convertion one-hot number into binary?
For example,
4'b0001 -> 1
4'b0010 -> 2
4'b0100 -> 3
4'b1000 -> 4
etc
Thanks in advance,
Michael
Does anyone know some optimal Verilog generic function for
convertion one-hot number into binary?
For example,
4'b0001 -> 1
4'b0010 -> 2
4'b0100 -> 3
4'b1000 -> 4
etc
Thanks in advance,
Michael