Forum Discussion
Altera_Forum
Honored Contributor
16 years agoin verilog you have the initial block after the modul declaration
module mymodul ( myclk , myreg); input myclk; output myreg; initial begin myreg <= myinitvalue; end reg myreg; always @ ( posedge myclk ) myreg <= myreg + 1; endmodule but have a look at the quartus settings about initial values, i am currently unshure which one but i think the is one settings about that. regards michael