Forum Discussion
Altera_Forum
Honored Contributor
10 years agoerror: expression is not constant
Hi, My code is as followed: signal cnt_clks : natural range 0 to 300;
...
...
cnt_clks <= conv_integer(unsigned(time)) * 25;
process(clk_50,...
Altera_Forum
Honored Contributor
10 years agoYou could rewrite your assignment with a for loop that goes through each bit of enc_delay and either shifts it or keeps it depending on the value of the index compared to cnt_clks.
Do you really have a signal called "time" ? I'm surprised this doesn't conflict with the standard TIME type.