- 博客(2)
- 收藏
- 关注
原创 week1:Verilog中function的应用
在Verilog中使用function实现简单的数学函数运算。 eg:实现输出以2为底的对数。 function integer Out_log2; input [31:0] In_data; begin In_data = In_data - 1; for(Out_log2 = 0;In_data > 0;Out_log2 = Out_log2 + 1) In_data = In_data >> 1; end endfunction 这样
2022-12-01 15:36:37 310 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人