VHDL-2008 quick reference – CASE? statement

CASE? statement

(example of priority encoder implementation)

case? req is
  when "1--"  => gnt <= "100";
  when "01-"  => gnt <= "010";
  when "001"  => gnt <= "001";
  when others => gnt <= "000";
end case?;

See also: Case statement