The answer is clear. Is it a legit programming way in VHDL? For example;
case (i) is
when 0=>
process() is begin
counter:=0;
end process;
end case;
Thanks in advance for replies.
Edit for Brian Drummond's reply:
I know it can usable selective blocks in cases. But in that blocks, lines are executed in order or simultaneously?
For example;
case (i) is
when 0=>
if reset='1' then
giden_data<='0';
k:=0;
i:=0;
s_clk<='0';
elsif reset='0' and rising_edge(clk) then
giden_data<=CR(k);
if k<7 then
k:=k+1;
elsif k=7 then
giden_data<='0';
end if;
i:=0;
end if;
end case;
Is a synchronous process (like used in 'process'es) usable in the case statements or not? ISE gives an error for the code above which says;
Unexpected embedded clock statement in sequential description for signal <giden_data>.
I wonder the error causes from a synchronous code in case statement or something else in the block.