Altera_Forum
Honored Contributor
15 years agoA 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!!!