From 0217ca1f26ffc9ead39d10fb5da02bc54f564f1f Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 23 Oct 2020 22:26:50 +0200 Subject: [PATCH] Force VST driver to clear all Vhdl properties after running. * Change: In CRL::vstDriver(), remove all Vhdl properties after running. The properties are not updated if the cell (Entity) change, so the next time it is called, an incomplete or incoherent state was saved (for example, incomplete "port map"). Removing all properties is less efficient but works. * Cleanup: In CRL/helpers/overlay, remove forgotten debug message. --- crlcore/python/helpers/overlay.py | 1 - crlcore/src/ccore/alliance/vst/VstDriver.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crlcore/python/helpers/overlay.py b/crlcore/python/helpers/overlay.py index be320e90..6428bfef 100644 --- a/crlcore/python/helpers/overlay.py +++ b/crlcore/python/helpers/overlay.py @@ -315,7 +315,6 @@ class CfgCache ( object ): def apply ( self, priority=None ): """Apply the parameters values stored in the cache to the ``Cfg`` database.""" if priority is None: priority = self._priority - print( self._path ) if not len(self._path) and priority is not None: Cfg.Configuration.pushDefaultPriority( priority ) for attrName in self._rattr.keys(): diff --git a/crlcore/src/ccore/alliance/vst/VstDriver.cpp b/crlcore/src/ccore/alliance/vst/VstDriver.cpp index 15c718f9..5fe4e4a9 100644 --- a/crlcore/src/ccore/alliance/vst/VstDriver.cpp +++ b/crlcore/src/ccore/alliance/vst/VstDriver.cpp @@ -72,7 +72,8 @@ namespace CRL { cellStream << endl; cellStream.close(); - Vhdl::EntityExtension::destroy( cell ); + //Vhdl::EntityExtension::destroy( cell ); + Vhdl::EntityExtension::destroyAll(); }