@internal<EOL>def sensitivity(proc: HWProcess, *sensitiveTo):
for s in sensitiveTo:<EOL><INDENT>if isinstance(s, tuple):<EOL><INDENT>sen, s = s<EOL>if sen == SENSITIVITY.ANY:<EOL><INDENT>s.simSensProcs.add(proc)<EOL><DEDENT>elif sen == SENSITIVITY.RISING:<EOL><INDENT>s.simRisingSensProcs.add(proc)<EOL><DEDENT>elif sen == SENSITIVITY.FALLING:<EOL><INDENT>s.simFallingSensProcs.add(proc)<EOL><DEDENT>else:<EOL><INDENT>raise AssertionError(sen)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>s.simSensProcs.add(proc)<EOL><DEDENT><DEDENT>
register sensitivity for process