Forum Discussion
Altera_Forum
Honored Contributor
14 years ago@kaz:
--- Quote Start --- The compiler needs to settle what to connect to what i.e. k must be a constant per build --- Quote End --- a generic is set at compilation time, so it behaves like a constant. It's not a signal that can vary in time... @FvM: --- Quote Start --- The VHDL standard doesn't provide the option to connect variable bits or slices of port signal individually --- Quote End --- yes it does (one proof is that 1st version of code compiles) --- Quote Start --- But it's easy to connect s as a whole to a wire signal and individual slices of it as intended. --- Quote End --- True :) @kaz --- Quote Start --- use: generic( k : integer := 15 ); --- Quote End --- This does not change anything...