Guest
Can you make a finite state machine with a when others clause that has a conditional statement inside? This would be for synthesizing a "safe case" state machine with Synplify Pro.
For example:
when others =>
if (a = ''1') then
next_state <= IDLE;
elsif (b = '1') then
next_state <= READ;
else
next_state <= ERROR;
end if;
I have never actually done this before before and have only seen simple "when others" with only a single state assignment.
For example:
when others =>
if (a = ''1') then
next_state <= IDLE;
elsif (b = '1') then
next_state <= READ;
else
next_state <= ERROR;
end if;
I have never actually done this before before and have only seen simple "when others" with only a single state assignment.