以下是代码片段: module power3a( output [7:0] XPower, output finished, input[7:0] X, input clk,start);//the duration of start is a single clock reg[7:0] ncount; reg[7:0] XPower; assign finished=(ncount==0); always@(posedge clk) if (start) begin XPower<=X; ncount<=2; end else if (!finished) begin ncount<=ncount-1; XPower<=XPower*X; end endmodule |
图1:三次方迭代原始网表视图
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |