Hi;
i'm new with vhdl.
well, i'm facing a problem which i believe that it's very easy, but it's really getting on my nerves :motz: .
To display a value of a STD_LOGIC_VECTOR(7 downto 0); lets say the value
valueBus <= "0010 1101" // Thats 2D
VALUE <= conv_integer(ValueBus); // it will hold 45
what i need is!
VEC0 <= "0101" // 5
VEC1 <= "0100" // 4
SO, HOW CAN I DO SUCH THING?
I tried arithmetic operations.
{
4 = 45/10 ; ---> this makes an error also 4 = 45 * (.1)
5 = 45 - 4 * 10 ;
}
But the division always makes an error. I need a way to do such thing, or just a way to convert a vector into a decimal vector.
i'm new with vhdl.
well, i'm facing a problem which i believe that it's very easy, but it's really getting on my nerves :motz: .
To display a value of a STD_LOGIC_VECTOR(7 downto 0); lets say the value
valueBus <= "0010 1101" // Thats 2D
VALUE <= conv_integer(ValueBus); // it will hold 45
what i need is!
VEC0 <= "0101" // 5
VEC1 <= "0100" // 4
SO, HOW CAN I DO SUCH THING?
I tried arithmetic operations.
{
4 = 45/10 ; ---> this makes an error also 4 = 45 * (.1)
5 = 45 - 4 * 10 ;
}
But the division always makes an error. I need a way to do such thing, or just a way to convert a vector into a decimal vector.