Forum Discussion
Altera_Forum
Honored Contributor
16 years agoThis 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 too, why do they get these numbers? Pls help me. Thanks