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 ago --- Quote Start --- Do you really have a signal called "time" ? I'm surprised this doesn't conflict with the standard TIME type. --- Quote End --- time is not a reserved keyword, nor are any type names. So you can use it to confuse yourself thoroughly (and it works because VHDL is all context driven) signal time : std_logic; signal std_logic : integer range 0 to 153; signal integer : real range -0.1 to 100.66;