> ERROR:Xst:769  C:/Almacen/Proyecto/Proyectos/pfc/inc2modl.vhd line 40:
> Operator <INVALID OPERATOR> must have constant operands or first
> operand must be power of 2
>
I think the error message is pretty clear....'v2' is not constant or a power
of 2 (i.e. 2, 4, 8, 16).
From a VHDL language perspective, 'v2' does not need to be a constant or a
power of 2 but the synthesis tool that is giving you the error requires it
to be constant or power of 2....which, by the way, is typical of a synthesis
tool since dividing or getting the remainder when the divisor is an
arbitrary number results in a huge chunk of logic.
If you need to synthesize and have an arbitrary number than you need to
write some code on your own
KJ
