Forum Discussion
Altera_Forum
Honored Contributor
18 years agoCounter Power on Reset only
Is there anyway in Altera or Verilog code such that the counter gets reset to zero only on power ON. Please advise. (I am using EP2C35F672C6 "Cyclone II" within DE2 board)
Altera_Forum
Honored Contributor
18 years agoI think, a power-up condition different from asynchronous reset doesn't make much sense. However, from hardware description, I expect that both options exist independantly. In some cases, the power-up level is ignored during synthesis, but you get a warning then.
It could be that the asynchronous reset input is triggered unintenionally at power-up. You can use an asynchronous input gated somehow with another signal to see, if the power-up level is still ignored. According to Verilog IEEE standard, the variable declaration assignment you used should be equivalent to assignment in an initial block.