aboutsummaryrefslogtreecommitdiff
path: root/rtl/modular/modular_invertor/modinv_clog2.v
diff options
context:
space:
mode:
Diffstat (limited to 'rtl/modular/modular_invertor/modinv_clog2.v')
-rw-r--r--rtl/modular/modular_invertor/modinv_clog2.v20
1 files changed, 10 insertions, 10 deletions
diff --git a/rtl/modular/modular_invertor/modinv_clog2.v b/rtl/modular/modular_invertor/modinv_clog2.v
index 2f7b64d..04a7739 100644
--- a/rtl/modular/modular_invertor/modinv_clog2.v
+++ b/rtl/modular/modular_invertor/modinv_clog2.v
@@ -1,10 +1,10 @@
-function integer clog2;
- input integer value;
- integer result;
- begin
- value = value - 1;
- for (result = 0; value > 0; result = result + 1)
- value = value >> 1;
- clog2 = result;
- end
-endfunction
+function integer clog2;
+ input integer value;
+ integer result;
+ begin
+ value = value - 1;
+ for (result = 0; value > 0; result = result + 1)
+ value = value >> 1;
+ clog2 = result;
+ end
+endfunction