Hi
Ich suche eine möglichkeit von unsigned nach bit_vector zu wandeln.
Mein Ansatz war:
1 | library IEEE;
|
2 | use IEEE.numeric_bit.ALL;
|
3 | use IEEE.numeric_std.all;
|
4 | -- [...]
|
5 | signal Qout1, Qout2: unsigned(3 downto 0);
|
6 | -- [...]
|
7 | Qout1_bit <= bit_vector(to_bit(Qout1));
|
Aber das gibt eine Fehlermeldung
[quote]
Error 10621: VHDL Use Clause error at bcd_counter.vhd(10): more than one
Use Clause imports a declaration of simple name "unsigned" -- none of
the declarations are dircetly visible
Error 10784: HDL error at numeric_std.vhd(65): see declaration for
object "unsigned"
Error 10609: VHDL error at numeric_bit.vhd(62): another match for
"unsigned"
[/quote]
Ich find nichts wie ich den Typ trotzdem umwandeln soll ... ich nutze
unsigned um den Zahlenwert in einem Counter zu inkrementieren.
Grüße