A
Amit
hi group,
I'm getting an error as "unsupported Clock statement", I'm trying to
write a code for multiplier but the carry_out for the adder messes up
sometimes so I need to store it in a FF. Then all of a sudden I got
this message.
any help is appreciated.
Code is in following:
process(clk, reset)
variable counter :integer;
begin
if (reset = '0') then
ctrl <= '1';
clk_control <= '1'; --was '0'
counter := 0; <<<<<<<<<<<<<< error points to this line!
elsif(clk'event ) then
if (clk = '1') then
ctrl <= '0';
if (counter = (width) + 1 ) then -- was -1
clk_control <= '0';
else
clk_control <= '1';
counter := counter + 1;
end if;
else -- falling edge
carry_out <= carry_in;
end if;
end if;
load_ctrl <= NOT (clk);
end process;
I'm getting an error as "unsupported Clock statement", I'm trying to
write a code for multiplier but the carry_out for the adder messes up
sometimes so I need to store it in a FF. Then all of a sudden I got
this message.
any help is appreciated.
Code is in following:
process(clk, reset)
variable counter :integer;
begin
if (reset = '0') then
ctrl <= '1';
clk_control <= '1'; --was '0'
counter := 0; <<<<<<<<<<<<<< error points to this line!
elsif(clk'event ) then
if (clk = '1') then
ctrl <= '0';
if (counter = (width) + 1 ) then -- was -1
clk_control <= '0';
else
clk_control <= '1';
counter := counter + 1;
end if;
else -- falling edge
carry_out <= carry_in;
end if;
end if;
load_ctrl <= NOT (clk);
end process;