|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
才开始接触学习verilog 遇到了解决不了的问题。
module ttt(out,rst,clk,start);
output [127:0] out;
input rst,clk,start;
reg [127:0] out;
always @(posedge clk or negedge rst)
begin
if(rst==0) out<=128'b0;
else if(start==0)
out<=out+1;
else
out<=out;
end
endmodule
如上的程序是个计数器,现在想提高它的工作频率,只能对程序进行修改,布局布线不能改变。该如何修改?
用case 语句代替if语句?
如果用pipeline 结构的话,该如何实现?怎样分割?
谢谢大家!! |
|