Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- @kaz: a generic is set at compilation time, so it behaves like a constant. It's not a signal that can vary in time... --- Quote End --- Almost, but not quite. A constant is a known value when you compile the code. A generic may not have a default value when you compile the code, so it is only fixed when you isntantiate the entity, so therefore it is not static, and hence the error when you compile the code. --- Quote Start --- @FvM: yes it does (one proof is that 1st version of code compiles) True :) --- Quote End --- See the above comment --- Quote Start --- @kaz This does not change anything... --- Quote End --- yes it does, because generics are not static.