Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

A question about initial value when powering up

Hello everybody!

What is the initial value when I do not give the initial value for a register.For example,the following code :

//////////////////////////////////////////////////////////////

module Reset_Delay(iCLK,oRESET);

input iCLK;

output reg oRESET;

reg [19:0] Cont;

always@(posedge iCLK)

begin

if(Cont!=20'hFFFFF)

begin

Cont <= Cont+1;

oRESET <= 1'b0;

end

else

oRESET <= 1'b1;

end

endmodule

///////////////////////////////////////////////

What is the initial value of "Cont" when the device power up.Is this relative with the category of device or ,can be set in QuartusII?

Thank you for your help!!!