P
Peter Glar
Guest
Hi
I have a simple problem:
RF_DataOp1 is a unsigned(31 downto 0) type.
RF_DataOp1Out is a std_logic_vector(31 downto 0) type that I read from
memory. Now I wanna make a conversion from the stanard logic to unsigned
type. I tried it as follows:
RF_DataOp1 <= X"0000_0000" when DE_InstrReg_In( 25 downto 21 ) = "00000"
else conv_integer(unsigned(RF_DataOp1Out));
But then I get the error:
Illegal Type Conversion
and no feasible entries for subprogram conv_integer
Any idea how to do this conversion easily?
Thanks!
I have a simple problem:
RF_DataOp1 is a unsigned(31 downto 0) type.
RF_DataOp1Out is a std_logic_vector(31 downto 0) type that I read from
memory. Now I wanna make a conversion from the stanard logic to unsigned
type. I tried it as follows:
RF_DataOp1 <= X"0000_0000" when DE_InstrReg_In( 25 downto 21 ) = "00000"
else conv_integer(unsigned(RF_DataOp1Out));
But then I get the error:
Illegal Type Conversion
and no feasible entries for subprogram conv_integer
Any idea how to do this conversion easily?
Thanks!