MyFPGA Forum

标题: reset_delay.v [打印本页]

作者: chindji    时间: 2010-8-26 16:20
标题: reset_delay.v
This is module Reset_Delay in DE2_TV project:

module Reset_Delay(iCLK,iRST,oRST_0,oRST_1,oRST_2);
input iCLK;
input iRST;
output reg oRST_0;
output reg oRST_1;
output reg oRST_2;

reg [21:0] Cont;

always@(posedge iCLK or negedge iRST)
begin
if(!iRST)
begin
Cont <= 0;
oRST_0 <= 0;
oRST_1 <= 0;
oRST_2 <= 0;
end
else
begin
if(Cont!=22'h3FFFFF)
Cont <= Cont+1;
if(Cont>=22'h1FFFFF)
oRST_0 <= 1;
if(Cont>=22'h2FFFFF)
oRST_1 <= 1;
if(Cont>=22'h3FFFFF)
oRST_2 <= 1;
end
end
endmodule

I can't understand this module why do they get these numbers? Pls help me. Thanks
作者: wushimin6    时间: 2010-9-17 14:11
我也不理解,高手指点
作者: wzh6328    时间: 2010-10-9 10:51
控制不同模块开始工作的先后顺序
作者: pplin2002    时间: 2011-1-11 15:15
不同模块的复位(0复位)脉冲宽度不一样,
那些数字就是控制脉冲宽度的,




欢迎光临 MyFPGA Forum (http://www.myfpga.org/discuz/) Powered by Discuz! X3