私は次のコードを持っています(それは押されたボタンの数をエンコードします):
with buttons select
tmp <= "000" when x"1",
"001" when x"2",
"010" when x"4",
"011" when x"8",
"100" when others;
code <= input(1 downto 0);
error <= input(2);
信号を使わずに書き直そうとしていtmp
ます。出来ますか?以下は機能しません。
with buttons select
error & code <= "000" when x"1",
"001" when x"2",
"010" when x"4",
"011" when x"8",
"100" when others;