def logChange(self, nowTime, sig, nextVal):
try:<EOL><INDENT>hwProc = self.registered[sig]<EOL><DEDENT>except KeyError:<EOL><INDENT>return<EOL><DEDENT>if hwProc.actualTime < nowTime:<EOL><INDENT>a = hwProc.actualTime<EOL>if a < <NUM_LIT:0>:<EOL><INDENT>a = <NUM_LIT:0><EOL><DEDENT>delay = int(nowTime - a)<EOL>if delay > <NUM_LIT:0>:<EOL><INDENT>hwProc.statements.append(<EOL>WaitStm(int(delay) // <NUM_LIT:1000>)<EOL>)<EOL>hwProc.actualTime = nowTime<EOL><DEDENT><DEDENT>try:<EOL><INDENT>nextVal._dtype.forceVector = hwProc.driverFor._dtype.forceVector<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>hwProc.statements.extend(<EOL>connect(nextVal, hwProc.driverFor)<EOL>)<EOL>
This method is called for every value change of any signal.