diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-08-08 07:23:51 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-08-10 09:47:28 +0200 |
commit | cc783ab03cf4b2f52fe68c29053dd4dfee9c5e5f (patch) | |
tree | 6fced3e0d1338c78413db14acefa99ba17c0b2c7 /src/vhdl/translate/ortho_front.adb | |
parent | 258bbf955b78fd9838c23b1d3e36c8ce6f90f6cc (diff) | |
download | ghdl-cc783ab03cf4b2f52fe68c29053dd4dfee9c5e5f.tar.gz ghdl-cc783ab03cf4b2f52fe68c29053dd4dfee9c5e5f.tar.bz2 ghdl-cc783ab03cf4b2f52fe68c29053dd4dfee9c5e5f.zip |
Add support for --time-resolution (jit only). Fix #613
Diffstat (limited to 'src/vhdl/translate/ortho_front.adb')
-rw-r--r-- | src/vhdl/translate/ortho_front.adb | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/vhdl/translate/ortho_front.adb b/src/vhdl/translate/ortho_front.adb index 236c94906..143a6f6f1 100644 --- a/src/vhdl/translate/ortho_front.adb +++ b/src/vhdl/translate/ortho_front.adb @@ -393,6 +393,7 @@ package body Ortho_Front is Res : Iir_Design_File; Design : Iir_Design_Unit; Next_Design : Iir_Design_Unit; + Config : Iir; begin if Nbr_Parse = 0 then -- Initialize only once... @@ -417,9 +418,13 @@ package body Ortho_Front is Error_Msg_Option ("missing -l for --elab"); raise Option_Error; end if; - Translation.Elaborate - (Elab_Entity.all, Elab_Architecture.all, - Elab_Filelist.all, False); + Config := Configuration.Configure + (Elab_Entity.all, Elab_Architecture.all); + if Errorout.Nbr_Errors > 0 then + -- This may happen (bad entity for example). + raise Compilation_Error; + end if; + Translation.Elaborate (Config, Elab_Filelist.all, False); if Errorout.Nbr_Errors > 0 then -- This may happen (bad entity for example). @@ -464,8 +469,9 @@ package body Ortho_Front is Flags.Flag_Elaborate := True; Flags.Flag_Only_Elab_Warnings := False; - Translation.Elaborate - (Elab_Entity.all, Elab_Architecture.all, "", True); + Config := Configuration.Configure + (Elab_Entity.all, Elab_Architecture.all); + Translation.Elaborate (Config, "", True); if Errorout.Nbr_Errors > 0 then -- This may happen (bad entity for example). |