像这样写:
case state is
when x"0" =>
when x"1" =>
when x"2" =>
a <= '1';
when x"3" =>
a <= '0';
when others =>
a <= '0';
end case;
和下面的是等价的吗?
case state is
when x"0" =>
a <= '1';
when x"1" =>
a <= '1';
when x"2" =>
a <= '1';
when x"3" =>
a <= '0';
when others =>
a <= '0';
end case; |