www.pudn.com > DE2_WEB.rar > Reset_Delay.v, change:2005-11-13,size:366b


module	Reset_Delay(iRST,iCLK,oRESET); 
input		iCLK; 
input		iRST; 
output reg	oRESET; 
reg	[23:0]	Cont; 
 
always@(posedge iCLK or negedge iRST) 
begin 
	if(!iRST) 
	begin 
		oRESET	=	1'b0; 
		Cont	=	24'h0000000; 
	end 
	else 
	begin 
		if(Cont!=24'hFFFFFF) 
		begin 
			Cont	=	Cont+1; 
			oRESET	=	1'b0; 
		end 
		else 
		oRESET	=	1'b1; 
	end 
end 
 
endmodule