Hi all, I have a problem. I have coded a vhdl module with some generics to parameterized the design based on width bus. In the design I have a counter and I need to stop the counter when it has achieved the half value. So, I've declared a constant but Active HDL gives me an error. I declared the constant in this way :
# Error: COMP96_0597: modular_exponetiantiation.vhd : (42, 72): Aggregate with multiple choices has a non-static or null choice. Use -relax to compile aggregates composed of one non-static or null choice and choice others.
# Error: COMP96_0349: modular_exponetiantiation.vhd : (42, 72): Aggregate with multiple choices has a non-static or null choice.
# Error: COMP96_0349: modular_exponetiantiation.vhd : (42, 95): Aggregate with multiple choices has a non-static or null choice.
As a side note - if all you are doing is checking for a half way value, instead of comparing the whole counter to a specified half value, why not just check the MSB? If the MSB is set, then it must be half way.