Forum Discussion
Altera_Forum
Honored Contributor
14 years agoVHDL integer causing RTL and Gate level simulation difference
I have a general question regarding the use of integers in VHDL. If I have a lot of Array defined, we have to use integer as its index when accessing the arrays. However, when the index is conv...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- In general, we don't want to give an initial value to a variable since it is ignored by the synthesize tools. --- Quote End --- What makes you say that? FPGAs configure from bit-streams, and those bitstreams define the register states at power-on. Most devices power-up with registers set to 0, but if you initialize a signal to 1, the synthesis tool will use 'not gate pushback' to invert the input and output to the register, so as far as your logic is concerned, the register powers up to your initialized value of 1. Cheers, Dave