aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-13 07:17:11 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-13 18:54:24 +0200
commitfcef281d6e3f2bda74c2f75543ea3d7d2927c813 (patch)
tree0d08107977f7a98531d33ab60226cb1092c25a3f
parent15dd6b468d4f1e83ee0948b54b8892ae1502b74f (diff)
downloadghdl-fcef281d6e3f2bda74c2f75543ea3d7d2927c813.tar.gz
ghdl-fcef281d6e3f2bda74c2f75543ea3d7d2927c813.tar.bz2
ghdl-fcef281d6e3f2bda74c2f75543ea3d7d2927c813.zip
synth-inst: minor refactoring.
-rw-r--r--src/synth/synth-insts.adb5
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;