Đô Đô
Newbie level 4
I'm trying to write Verilog code to compute a base 2 log value of x, where x is an unsigned 16 bit number. At my teacher's request, I can't use Verilog's built-in function ($clog2) or built-in math operations like *, /, +, -, **. So it gives me a lot of trouble. Please help.