Forum: FPGA, VHDL & Co. 2D Integer- Array VHDL


von Matze (Gast)


Lesenswert?

Hallo.

Ich habe ein 2dimensionales Integer Array erstellt und möchte nun in ihm 
Werte abspeichern. Realisiert habe ich das ganze wie folgt:

architecture beh of LuT is
  LuT: process (Zeile)
     type LU_table is array (1 to 3, 1 to 4) of integer;
     begin
         Look:LU_table:=  (
        (0, 33,   150, 365),
                             (688, 1_124, 1_679, 2_356),
                             (3_161,  4_095, 0, 33)
                            );

meine Compiler meckert rum, dass meine Ziel eine Variable sein muss.
-->Error (10593): VHDL Variable Assignment Statement error at
   LookupTable.vhd(49): target object "LU_table" must be variable or 
Aggregate

Kann mir jemand weiterhelfen?

Vielen Dank im Vorraus

von Matze (Gast)


Lesenswert?

ok, hat sich erledigt.
Habs hinbekommen.

Muss den Typ   Look:LU_table auch einer Variable zuweisen.

Mit
variable Look:LU_table ...

funktionierts!

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.