A
Al
Hi guys,
I just had a disappointing problem, my code had something like:
vectorA <= unsigned (vectorB);
where ieee.std_logic_unsigned.all had been included in the library
declaration.
Unfortunately vectorA and vectorB where different in lenght, to be
precise vectorB was shorter than vectorA.
Synplify didn't complain anything, no errors, no warnings related to it
(that I noticed, at least), but what had been implemented was a vector
longer than required which turned out in a counter that will never reach
the vectorA value and will roll forever!
Is there any better way to convert std_logic_vector to unsigned with a
less clever function, but at least more reliable?
Thanks a lot
Al
I just had a disappointing problem, my code had something like:
vectorA <= unsigned (vectorB);
where ieee.std_logic_unsigned.all had been included in the library
declaration.
Unfortunately vectorA and vectorB where different in lenght, to be
precise vectorB was shorter than vectorA.
Synplify didn't complain anything, no errors, no warnings related to it
(that I noticed, at least), but what had been implemented was a vector
longer than required which turned out in a counter that will never reach
the vectorA value and will roll forever!
Is there any better way to convert std_logic_vector to unsigned with a
less clever function, but at least more reliable?
Thanks a lot
Al