diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-10-13 07:17:11 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-10-13 18:54:24 +0200 |
commit | fcef281d6e3f2bda74c2f75543ea3d7d2927c813 (patch) | |
tree | 0d08107977f7a98531d33ab60226cb1092c25a3f | |
parent | 15dd6b468d4f1e83ee0948b54b8892ae1502b74f (diff) | |
download | ghdl-fcef281d6e3f2bda74c2f75543ea3d7d2927c813.tar.gz ghdl-fcef281d6e3f2bda74c2f75543ea3d7d2927c813.tar.bz2 ghdl-fcef281d6e3f2bda74c2f75543ea3d7d2927c813.zip |
synth-inst: minor refactoring.
-rw-r--r-- | src/synth/synth-insts.adb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/synth/synth-insts.adb b/src/synth/synth-insts.adb index c636cc497..6c0e65864 100644 --- a/src/synth/synth-insts.adb +++ b/src/synth/synth-insts.adb @@ -915,9 +915,8 @@ package body Synth.Insts is -- Remove unused gates. This is not only an optimization but also -- a correctness point: there might be some unsynthesizable gates, like -- the one created for 'rising_egde (clk) and not rst'. - if not Flags.Flag_Debug_Nocleanup then - Netlists.Cleanup.Remove_Unconnected_Instances - (Get_Instance_Module (Syn_Inst)); + if not Synth.Flags.Flag_Debug_Nocleanup then + Netlists.Cleanup.Remove_Unconnected_Instances (Inst.M); end if; end Synth_Instance; |