|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
有一个FPGA,要求工作在100MHZ,但是实际它只工作在90MHZ,在只改变布局布线,保证电路功能的情况下,修改下面代码,使其工作在100MHZ。
module count_64(rst,clk,start,count)
input clk,rst,start;
output count;
reg [63:0] count;
always @(posedge clk or negedge rst)
begin
if(rst==0)
count<=0;
else
if(start==0)
count<=count+1;
else
count<=0;
end
endmodule |
|