hwt/simulator/hdlSimulator.py
def _runCombProcesses(self) -> None:
        """
        Delta step for combinational processes
        """
        for proc in self._combProcsToRun:
            cont = self._outputContainers[proc]
            proc(self, cont)
            for sigName, sig in cont._all_signals:
                newVal = getattr(cont, sigName)
                if newVal is not None:
                    res = self._conflictResolveStrategy(newVal)
                    # prepare update
                    updater, isEvDependent = res
                    self._valuesToApply.append(
                        (sig, updater, isEvDependent, proc))
                    setattr(cont, sigName, None)
                    # else value is latched

        self._combProcsToRun = UniqList()
def _runCombProcesses(self) -> None:
        for proc in self._combProcsToRun:
            cont = self._outputContainers[proc]
            proc(self, cont)
            for sigName, sig in cont._all_signals:
                newVal = getattr(cont, sigName)
                if newVal is not None:
                    res = self._conflictResolveStrategy(newVal)
                    # prepare update
                    updater, isEvDependent = res
                    self._valuesToApply.append(
                        (sig, updater, isEvDependent, proc))
                    setattr(cont, sigName, None)
                    # else value is latched

        self._combProcsToRun = UniqList()
def _runCombProcesses ( self ) -> None : for proc in self . _combProcsToRun : cont = self . _outputContainers [ proc ] proc ( self , cont ) for sigName , sig in cont . _all_signals : newVal = getattr ( cont , sigName ) if newVal is not None : res = self . _conflictResolveStrategy ( newVal ) # prepare update updater , isEvDependent = res self . _valuesToApply . append ( ( sig , updater , isEvDependent , proc ) ) setattr ( cont , sigName , None ) # else value is latched self . _combProcsToRun = UniqList ( )
Delta step for combinational processes
Delta step for combinational processes