velu.plg
Member level 5
this my code.
error :line 49: Operator <DIVIDE> must have constant operands or first operand must be power of 2
how can i solve.
entity test is
Port ( en : in std_logic;
a : inout integer;
c : out integer);
end test;
architecture Behavioral of test is
begin
process(en)
begin
if(en='1')then
a<=a+1;
c<=a/10; ---49
end if;
end process;
end Behavioral;
error :line 49: Operator <DIVIDE> must have constant operands or first operand must be power of 2
how can i solve.