2 つの std_logic_vector 入力 (Operand1 と Operand2) があり、Operand1 を Operand2 の値だけシフトして std_logic_vector 出力 (Output1) に格納しようとしています。
Output1 <= std_logic_vector(unsigned(Operand1) srl to_integer(unsigned(Operand2)));
Output1 <= std_logic_vector(unsigned(Operand1) sll to_integer(unsigned(Operand2)));
Output1 <= std_logic_vector(unsigned(Operand1) sra to_integer(unsigned(Operand2)));
最初の 2 行を動作させることができますが、sra を含む行は、「sra can not have such operands in this context.」というエラーを返します。私が間違っていることがあるかどうか、誰かに教えてもらえますか。