K
krzyg
Guest
Hi,
I have problem with sythesis. It says - division by not-constant signal
is not allowed.
Furthermore, divisor must be a power of 2. The same situation is when
using modulus operator.
How to divide two signals combinationally in below example?
process(clk)
begin
if clk = '1' and clk'event then
if s = '0' then
A <= A + X * Y;
B <= B + Y;
else
A <= X * Y;
B <= Y;
C <= A / B;
end if;
end if;
end process;
I have problem with sythesis. It says - division by not-constant signal
is not allowed.
Furthermore, divisor must be a power of 2. The same situation is when
using modulus operator.
How to divide two signals combinationally in below example?
process(clk)
begin
if clk = '1' and clk'event then
if s = '0' then
A <= A + X * Y;
B <= B + Y;
else
A <= X * Y;
B <= Y;
C <= A / B;
end if;
end if;
end process;