Hello,

 

how can I pass a package as generic parameter to another package in GHDL?

Currently, GHDL doesn’t support type generics, so I would like to use a package,

to carry a type into another package. How can I do this?

 

 

package P1 is

  subtype MyType is integer;

end package;

 

package P2 is

  generic (

    package Foo

  );

 

  type T_MyArray is array(integer range <>) of Foo.MyType;

end package;

 

GHDL complains, that a “is” is missing after “package Foo”.

 

P.S.

Is there another way to pass a type into a package (which is supported by GHDL)?

 

Regards

    Patrick

 

-----------------------------------

Wissenschaftliche Hilfskraft

 

Technische Universität Dresden

Fakultät Informatik

Institut für Technische Informatik

Lehrstuhl VLSI-Entwurfssysteme, Diagnostik und Architektur

01062 Dresden

Tel.:   +49 351 463-38451

Fax:    +49 351 463-38324

Raum:   APB-1020

E-Mail:  <mailto:patrick.lehm...@tu-dresden.de> patrick.lehm...@tu-dresden.de

WWW:     <http://vlsi-eda.inf.tu-dresden.de/> http://vlsi-eda.inf.tu-dresden.de

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to