velu.plg
Member level 5
- Joined
- Jul 30, 2013
- Messages
- 93
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- chennai
- Activity points
- 1,974
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.