hwt/hdl/operatorDefs.py
def sensitivityByOp(op):
    """
    get sensitivity type for operator
    """
    if op == AllOps.RISING_EDGE:
        return SENSITIVITY.RISING
    elif op == AllOps.FALLING_EDGE:
        return SENSITIVITY.FALLING
    else:
        raise TypeError()
def sensitivityByOp(op):
    if op == AllOps.RISING_EDGE:
        return SENSITIVITY.RISING
    elif op == AllOps.FALLING_EDGE:
        return SENSITIVITY.FALLING
    else:
        raise TypeError()
def sensitivityByOp ( op ) : if op == AllOps . RISING_EDGE : return SENSITIVITY . RISING elif op == AllOps . FALLING_EDGE : return SENSITIVITY . FALLING else : raise TypeError ( )
get sensitivity type for operator
get sensitivity type for operator