Hello,
I have a problem with logic of case statement in vhdl. I wonder if the variable that selects the case condition can be changed within the statement. To clarify:
When I tried to synthesize a code with that algorithm, it displays an error. What is the problem here? Can't I change the variable within the case? Or the problem is about the if statements in the case? I know that it looks like a pl code instead of a HDL code, but I'm used to pl's, and getting started to VHDL
I have a problem with logic of case statement in vhdl. I wonder if the variable that selects the case condition can be changed within the statement. To clarify:
Rich (BB code):
process(clk)
variable aaa: std_logic_vector(2 downto 0):="000";
case aaa is
when "000" =>
if () then
something
end if;
aaa := aaa+1;
when "001" =>
if() then
something
elsif() then
something
else
something
end if;
aaa := aaa+1;
when others =>
-- sequential statements
end case ;
end process;