chindji 发表于 2010-8-25 06:32:27

32'h1FFFFF,32'h2FFFFF,2'h13FFFFF

The following is excerpted from Reset_Delay.v of the project de2-d5m
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!=32'h13FFFFF) Cont <= Cont+1;
if(Cont>=32'h1FFFFF) oRST_0 <= 1;
if(Cont>=32'h2FFFFF) oRST_1 <= 1;
if(Cont>=32'h13FFFFF) oRST_2 <= 1;
end
end
I don't understand why it sets cont as 32'h1FFFFF,32'h2FFFFF,2'h13FFFFF.
Can anybody help me?

pplin2002 发表于 2011-1-11 15:17:25

用来控制复位信号脉冲宽度,0复位。

tuoluofu 发表于 2011-1-19 18:53:05

本帖最后由 tuoluofu 于 2011-1-19 18:55 编辑

回复 1# chindji


    并不是每个模块,要在同一时间复位,根据需要对各个模块依次复位完成。
具体参数的设定,应该是根据不同模块需要的延时复位时间而定的。
页: [1]
查看完整版本: 32'h1FFFFF,32'h2FFFFF,2'h13FFFFF