hwt/simulator/hdlSimulator.py
def _addHdlProcToRun(self, trigger: SimSignal, proc) -> None:
        """
        Add hdl process to execution queue

        :param trigger: instance of SimSignal
        :param proc: python generator function representing HDL process
        """
        # first process in time has to plan executing of apply values on the
        # end of this time
        if not self._applyValPlaned:
            # (apply on end of this time to minimalize process reevaluation)
            self._scheduleApplyValues()

        if isEvDependentOn(trigger, proc):
            if self.now == 0:
                return  # pass event dependent on startup
            self._seqProcsToRun.append(proc)
        else:
            self._combProcsToRun.append(proc)
def _addHdlProcToRun(self, trigger: SimSignal, proc) -> None:
        # first process in time has to plan executing of apply values on the
        # end of this time
        if not self._applyValPlaned:
            # (apply on end of this time to minimalize process reevaluation)
            self._scheduleApplyValues()

        if isEvDependentOn(trigger, proc):
            if self.now == 0:
                return  # pass event dependent on startup
            self._seqProcsToRun.append(proc)
        else:
            self._combProcsToRun.append(proc)
def _addHdlProcToRun ( self , trigger : SimSignal , proc ) -> None : # first process in time has to plan executing of apply values on the # end of this time if not self . _applyValPlaned : # (apply on end of this time to minimalize process reevaluation) self . _scheduleApplyValues ( ) if isEvDependentOn ( trigger , proc ) : if self . now == 0 : return # pass event dependent on startup self . _seqProcsToRun . append ( proc ) else : self . _combProcsToRun . append ( proc )
Add hdl process to execution queue

        :param trigger: instance of SimSignal
        :param proc: python generator function representing HDL process
Add hdl process to execution queue