Betreff: Re: Exponent in VHDL


Antwort(en)   Eine Antwort erstellen   Diskussionsforum


Gesendet von Matthew Lewis am 30. Mai 2003 um 09:26 Uhr.
Als Antwort auf Exponent in VHDL gesendet von Bettina Müller am 29. Mai 2003 um 09:15 Uhr.
 
Hello,

Unfortunately the “**” exponent operation can only be done with integer and floating-point type variables or signals. However this is normally reserved for test bench files (to test code) as most compilers cannot synthesis it. By synthesis I mean it is not possible for the compiler to come up with hardware that will do it. In any case, Altera does not support this feature of vhdl.: Im VDHL Manual finde ich folgendes:

: "Finally, the exponentiation (**) operator can
: have an integer or ...."

: aber leider (trotz korrekter Typ Definition der Ports a und address)

: aber ...
: BEGIN
: PROCESS
: BEGIN
: address <= (2**a)-1;
: END PROCESS;
: ...

: Ergibt die Fehlermeldung, dass der Operator "**" nicht unterstützt wird ?

: Was mache ich falsch ?

: Gruss

: Bettina


Antwort(en)


Eine Antwort erstellen

Name:
EMail:
Betreff:
Nachricht:
 


       Letzte Änderung: März 2003, Tobias Schubert