Forum Discussion
Altera_Forum
Honored Contributor
16 years agoVerilog-2001 Variable Declaration With Initialization Synthesis
I wanted to initialize some registers on power up to a default state. I noticed verilog 2001 permits variable declaration with initialization. Like this:
reg foo = 1'b1; This is similar to an initial statement. My observation is that Quartus does in fact synthesize this to drive a default value on power up. However, my understanding was the initial statement was used for test benches, but ignored during synthesis. Is this just a fluke, or can I rely on this to work correctly in HW. Thanks.1 Reply
- Altera_Forum
Honored Contributor
I wish I could delete my post. It was documented well in the Quartus handbook. It looks like Quartus also handles any synthesizable initial block statements too.