⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clogb2.txt

📁 32位单精度浮点加法器
💻 TXT
字号:
  // Generate the ceiling of the log base 2 - i.e. the number of bits  // required to hold N different values - i.e. clogb2(N) will be large  // enough to hold the counts 0 to N-1  function integer clogb2;    input [31:0] value;    reg   [31:0] my_val;    begin      my_val = value - 1;      for (clogb2 = 0; my_val > 0; clogb2 = clogb2 + 1)        my_val = my_val >> 1;    end  endfunction

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -