diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-08-28 10:14:15 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-08-28 13:22:29 +0200 |
commit | 7f05e691acbf37a5ec8b2cbd30c023368db86505 (patch) | |
tree | 1673431d70b546ed0f3d778f11345b879ef0ef72 /src/vhdl/vhdl-configuration.ads | |
parent | b8b61eb99f0fdd3a04a3c5be53c0892f17c921e9 (diff) | |
download | ghdl-7f05e691acbf37a5ec8b2cbd30c023368db86505.tar.gz ghdl-7f05e691acbf37a5ec8b2cbd30c023368db86505.tar.bz2 ghdl-7f05e691acbf37a5ec8b2cbd30c023368db86505.zip |
vhdl: handle foreign units in libraries and configuration
Diffstat (limited to 'src/vhdl/vhdl-configuration.ads')
-rw-r--r-- | src/vhdl/vhdl-configuration.ads | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-configuration.ads b/src/vhdl/vhdl-configuration.ads index 1abff5057..d272d23e9 100644 --- a/src/vhdl/vhdl-configuration.ads +++ b/src/vhdl/vhdl-configuration.ads @@ -62,6 +62,13 @@ package Vhdl.Configuration is -- LOC is used to report errors. function Find_Top_Entity (From : Iir; Loc : Location_Type) return Iir; + -- Hook for Find_Top_Entity to deal with foreign units. + -- When called for a foreign module N, the procedure must walk N to find + -- all the module instantiations. For each instantiation, it must look + -- for the definition in the VHDL scope table and set the Elab flag. + type Mark_Instantiated_Units_Access is access procedure (N : Int32); + Mark_Foreign_Module : Mark_Instantiated_Units_Access; + -- Add an override for generic ID. procedure Add_Generic_Override (Id : Name_Id; Value : String); |