Moved serv to own tree

This commit is contained in:
2026-02-22 16:03:21 +01:00
parent a261264fda
commit dc946cd793
35 changed files with 4435 additions and 90 deletions

10
rtl/util/clog2.vh Normal file
View File

@@ -0,0 +1,10 @@
function integer clog2;
input integer value;
integer i;
begin
value = value - 1;
for (i = 0; value > 0; i = i + 1)
value = value >> 1;
clog2 = (i < 1) ? 1 : i;
end
endfunction