blob: 2240ef54b66bf1f0a3c9978bc711c90cf7f935ae [file] [log] [blame]
function integer log2;
input [31:0] value;
for (log2 = 0; value > 0; log2 = log2 + 1)
value = value >> 1;
endfunction