[elektro] VHDL problem

Bali Zoltan eltexto at freemail.hu
Fri May 28 21:53:31 CEST 2010


Hali!

Egy generic integer alapján vectort akarnák definiálni
de nem nagyon sikerül. Valahogy igy:
Sajna a PPR'high nem jó.

entity QuadEncoder is
   GENERIC
   (
     NumBits   : INTEGER := 6;
     PPR         : INTEGER := 4
   );
   PORT
   (
     xxx;
     Position  : OUT STD_LOGIC_VECTOR((log2(PPR'high)) DOWNTO 0);
     xxx
   );
end entity QuadEncoder;

Van valakinek ötlete?

Köszi

Üdv.  Zoli






More information about the Elektro mailing list